Turl changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi
swiftgeek has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
Andy-D has quit [Ping timeout: 245 seconds]
dddddd has quit [Remote host closed the connection]
anarsoul|2 has quit [Ping timeout: 240 seconds]
VargaD has quit [Ping timeout: 255 seconds]
VargaD has joined #linux-sunxi
mingcongbai has joined #linux-sunxi
<mingcongbai> anasroul: I heard that you were looking for me, via Icenowy...
<mingcongbai> I'm having some issues with my Pinebook 14, which refuses to display U-Boot if the power adapter was plugged in before powering on.
<anarsoul> hi mingcongbai
<anarsoul> mingcongbai: do you have serial cable?
cnxsoft has joined #linux-sunxi
night199uk has joined #linux-sunxi
<mingcongbai> anarsoul: Yes
<anarsoul> mingcongbai: can you share u-boot output then?
<mingcongbai> One sec.
<anarsoul> mingcongbai: please use pastebin or gist.github.com
night199uk has quit [Quit: ZNC 1.6.6+deb1 - http://znc.in]
aalm has joined #linux-sunxi
lurchi_ is now known as lurchi__
<anarsoul> mingcongbai: did you start seeing this issue recently?
<mingcongbai> Well I've just got the laptop yesterday and it's been acting like that since I replaced the BSP distro from eMMC.
<mingcongbai> The issue could be temporarily mitigated with a quick resitting of the eMMC module. The issue also occurs with the eMMC module removed, while booting from the SD card.
<anarsoul> oh, I see
<anarsoul> mingcongbai: can you recompile ATF and u-boot?
<mingcongbai> MoeIcenowy: Mind giving a hand?
<anarsoul> mingcongbai: it's OK if you can't. But I suppose you can flash u-boot onto spare SD card?
<mingcongbai> Yep
<anarsoul> good.
<anarsoul> 1 min
<mingcongbai> Thanks
<ElBarto> anarsoul: so same problem as me for mingcongbai ?
<ElBarto> anarsoul: which ATF are you suppose to use btw ?
<anarsoul> ElBarto: maybe
Pineicenowy has joined #linux-sunxi
<Pineicenowy> what's the bug report of ElBarto?
<Pineicenowy> (oh my god the keyboard layout of PB12" is a real disaster
<ElBarto> Pineicenowy: most of the time can't read/write to anx chip
<ElBarto> so no screen
<Pineicenowy> ElBarto: interesting... seems the same
<ElBarto> boot from sdcard
<ElBarto> with serial cable
<ElBarto> but unplug/plug the serial cable after each poweroff to avoid power leakage issue
Pineicenowy has quit [Client Quit]
<ElBarto> anarsoul: ah I see you have some atf fork too where you set some axp regulators
Pineicenowy has joined #linux-sunxi
<ElBarto> I'm still using Andre's atf
<ElBarto> guess I should try with this one
<anarsoul> ElBarto: Andre merged my change
<Pineicenowy> I also use Andre
<ElBarto> ok
<Pineicenowy> 's
<Pineicenowy> (when I try to type the ' , i pressed Enter :-(
<Pineicenowy> anarsoul: are you trying the pre-enable way?
<anarsoul> Pineicenowy: I'm trying delay in atf and extra reset flip
<Pineicenowy> when to delay?
<anarsoul> ElBarto: mingcongbai: try this build: https://www.dropbox.com/sh/x6p16tox4wxvxiy/AACJCMKv38hEoIOhHr_GjDfYa?dl=0
<Pineicenowy> follow TERES-I process?
<mingcongbai> anarsoul: just dd that straight to the SD card right? (sorry I don't get to work with ARM devices that much)
Pineicenowy has quit [Client Quit]
wwilly_ has quit [Ping timeout: 248 seconds]
<anarsoul> MoeIcenowy: atf diff: https://gist.github.com/9e4eaa59964f9669a090cec9cddaddc9 (pine64 change is not related)
<anarsoul> mingcongbai: not really
<mingcongbai> anarsoul: please do enlighten me
<mingcongbai> Thanks
<anarsoul> use correct file names for input and for output
<ElBarto> anarsoul: ok, I can test in ~20 mins
<anarsoul> OK
<anarsoul> I'm AFK, be back in ~1h
<mingcongbai> First reboot returns success, will give several trys
<mingcongbai> tries *
<mingcongbai> Sorry brain dead
Pineicenowy has joined #linux-sunxi
<mingcongbai> Well after the second poweroff, it reverted to the old broken state
<anarsoul> mingcongbai: :(
<anarsoul> what if you power it off using power key?
<anarsoul> i.e. hold it for couple seconds
<mingcongbai> One sec, let me provide you with another boot log
<mingcongbai> By the way, powering it off while holding the power button for several seconds did not change anything
<ElBarto> mingcongbai: how long do you wait between poweroff/poweron ?
<ElBarto> mingcongbai: when I did my test it seems to matter
<anarsoul> I see.
<ElBarto> even if that don't really make sense
<ElBarto> like waiting ~10 seconds I had better results
<anarsoul> ElBarto: did it work better with earlier version of u-boot?
<ElBarto> anarsoul: couldn't say I never really bother with my pinebook until recently (as in 1 or 2 month ago)
Pineicenowy has quit [Quit: Leaving.]
Quark234 has joined #linux-sunxi
Pineicenowy has joined #linux-sunxi
<Pineicenowy> mysterious
<Pineicenowy> maybe we should re-inspect BSP driver?
<ElBarto> anarsoul: second power on and no anx
<ElBarto> mhm, it was detected this time
LargePrime has quit [Remote host closed the connection]
<ElBarto> even when it works I have some time out regarding anx : http://dpaste.com/0YPD2RM
<ElBarto> so, delay problems ?
Pineicenowy has quit [Quit: Leaving.]
Pineicenowy has joined #linux-sunxi
<Pineicenowy> anarsoul: BSP doesn
<Pineicenowy> doesn't have double flip of RST
<Pineicenowy> anarsoul: bsp inits anx pwr by dldo2 -> sleep 5ms -> fldo1 -> sleep 10ms -> dc1sw -> sleep 5ms
<Pineicenowy> reset = 0 before dldo2
<Pineicenowy> and reset = 1 after dc1sw
<Pineicenowy> (after the 5ms
<ElBarto> so reset asserted, apply power and de-assert reset ?
Pineicenowy has quit [Quit: Leaving.]
TheSeven has quit [Ping timeout: 265 seconds]
Pineicenowy has joined #linux-sunxi
Pineicenowy has quit [Remote host closed the connection]
TheSeven has joined #linux-sunxi
jbrown has quit [Ping timeout: 240 seconds]
lurchi_ has joined #linux-sunxi
hlauer has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 260 seconds]
<hlauer> 4.18-rc2 did not start on Banana Pro and Ultra, tried already earlyprintk=console - no output. Howto debug ?
VargaD has quit [Ping timeout: 255 seconds]
VargaD has joined #linux-sunxi
<anarsoul> ElBarto: 1 min
<ElBarto> anarsoul: no EGON header here
<anarsoul> ?
<anarsoul> oops, sorry
<ElBarto> :)
<anarsoul> ElBarto: refresh
<ElBarto> mmc_load_image_raw_sector: mmc block read error
<ElBarto> SPL: failed to boot from all boot devices
<ElBarto> how am I supposed to contat those files ?
<ElBarto> btw did try that http://dpaste.com/32NWY40 based on what icenowy[m] said
<ElBarto> didn't helped
<ElBarto> and I can't seem to have atf compiled with DEBUG=1
<ElBarto> crash at boot
<mingcongbai> Thanks, just a sec.
hanetzer has quit [Quit: WeeChat 2.1]
<mingcongbai> anarsoul: Should I use sunxi-spl.bin or u-boot-spi.bin?
<anarsoul> sunxi-spl.bin
<anarsoul> ElBarto: OK, hold on
<mingcongbai> Thanks
<ElBarto> anarsoul: cat sunxi-spl.bin u-boot.itb > u-boot-pinebook-anarsoul.bin right ?
<ElBarto> anarsoul: it's with atf DEBUG ?
hanetzer has joined #linux-sunxi
<ElBarto> same thing when I tested
<mingcongbai> anarsoul: no change
<anarsoul> ElBarto: found a bug
<anarsoul> 1 min
<ElBarto> sure
montjoie has joined #linux-sunxi
<montjoie> MoeIcenowy: for r40 i didnt understand what you mean
<montjoie> what can i do for leeping regulators up
<ElBarto> anarsoul: 4th time display wasn't here
<ElBarto> but the number is better :P
vagrantc has joined #linux-sunxi
<ElBarto> nothing in the log useful
<ElBarto> INFO: PMIC: setup successful
<ElBarto> anarsoul: http://dpaste.com/230FHBK
<ElBarto> note the vidconsole
<ElBarto> anarsoul: could you compile with some debug in the anx u-boot code ?
<anarsoul> ElBarto: can you compile u-boot?
<ElBarto> anarsoul: or give me your atf with your changes ?
<ElBarto> yeah sure no worrries on that
<mingcongbai> anarsoul: it worked before I invoked `poweroff` from Linux. Then when I powered it on again, the screen problem came back.
<anarsoul> ElBarto: I just pushed latest changes to pinebook-wip-20180623
<anarsoul> ElBarto: you don't need any ATF changes
<ElBarto> anarsoul: ok
<anarsoul> ElBarto: worked 20 out of 20 times for me
<anarsoul> mingcongbai: can you try powering it off from u-boot shell several times and then power it on?
<anarsoul> I mean try it in u-boot only to see if it comes up properly
<anarsoul> icenowy[m]: are you here?
<ElBarto> anarsoul: first boot same symptoms, anx detected but timed out after
<ElBarto> second boot worked
<mingcongbai> No dice after three tries (I have to wait for a bit till it decides to boot normally again)
<anarsoul> mingcongbai: you mean even in u-boot?
<mingcongbai> Yep
<mingcongbai> But at the moment when you requested me to try that, the display already failed
<mingcongbai> Did you mean that I should try it when the screen works?
<anarsoul> yes
<mingcongbai> Ah okay.
<anarsoul> I wonder if linux breaks it for you somehow.
<mingcongbai> I will get back to you soon, it's close to 1 AM here.
<anarsoul> mingcongbai: OK
<mingcongbai> Thanks for your help today
<anarsoul> it's 10:42pm here :)
<mingcongbai> West Coast?
<anarsoul> mingcongbai: thanks for testing
<anarsoul> mingcongbai: yep, Vancouver
<mingcongbai> Oh I see, I'm located in Madison, WI.
<anarsoul> ElBarto: can you share the log?
Pineicenowy has joined #linux-sunxi
<ElBarto> anarsoul: http://dpaste.com/0FE19TT
<ElBarto> anarsoul: can't seems to have a working setup with a debug atf ...
<Pineicenowy> anarsoul: I
<Pineicenowy> m just back now
<anarsoul> ElBarto: it looks like anx is up, but panel isn't
<anarsoul> is there panel reset?
<anarsoul> let me check schematics...
<Pineicenowy> montjoie: I remember someone mentioned that the misc regulator powering should be generic
<Pineicenowy> and refused my special driver patch for sunxi
<ElBarto> can't see any thing about panel reset on the schematics
<Pineicenowy> ElBarto: maybe dc1sw is shutdown?
<anarsoul> Pineicenowy: atf turns it on
<ElBarto> yup
<anarsoul> well, it should
<Pineicenowy> anarsoul: ok I forgot that U-Boot now doesn
<Pineicenowy> 't control power rails
<anarsoul> yeah
<anarsoul> that's not convenient...
<Pineicenowy> and I think the DE2&TCON won't be activated if something failed
<Pineicenowy> e.g. ANX doesn't get probed when trying to probe the whole pipeline
<anarsoul> Pineicenowy: IIRC it probes ANX first
<Pineicenowy> oh
<anarsoul> but I wonder why ANX would fail to read EDID
<anarsoul> edid eeprom is stupid chip, it doesn't have reset...
<Pineicenowy> but eDP EDID is not raw I2C
<anarsoul> true
<Pineicenowy> it's included in AUX
<anarsoul> does it need to train edp link first?
<Pineicenowy> and EEPROM should be, although stupid, error prone
<Pineicenowy> anarsoul: I think yes
<anarsoul> probably no, it needs to know link params first
<anarsoul> so it needs to read i2c
<anarsoul> s/i2c/edid
<Pineicenowy> link params is not in EDID
<Pineicenowy> it's DPCD
<anarsoul> right
<anarsoul> still aux
<Pineicenowy> yes
<Pineicenowy> but aux is not edid
<Pineicenowy> s/edid/i2c/
<anarsoul> yeah, it's not
Pineicenowy has quit [Quit: Leaving.]
<montjoie> MoeIcenowy: so you already have sent a patch for it ?
JohnDoe_71Rus has joined #linux-sunxi
<montjoie> found them
xerpi has joined #linux-sunxi
mic-e[m] has quit [Ping timeout: 255 seconds]
yann_soubeyrand has quit [Ping timeout: 245 seconds]
GuLinux[m] has quit [Ping timeout: 245 seconds]
t4h4 has quit [Ping timeout: 240 seconds]
icenowy[m] has quit [Ping timeout: 255 seconds]
ch40s[m] has quit [Ping timeout: 260 seconds]
kuhn has quit [Ping timeout: 260 seconds]
oliv3r has quit [Ping timeout: 255 seconds]
romainmahoux[m] has quit [Ping timeout: 276 seconds]
fevv8[m] has quit [Ping timeout: 276 seconds]
<KotCzarny> that matrixirc thing is worse than my adsl
vagrantc has quit [Quit: leaving]
Pineicenowy has joined #linux-sunxi
AneoX has quit [Ping timeout: 255 seconds]
AneoX_ has joined #linux-sunxi
<Pineicenowy> KotCzaeny: so icenowy[m] won
<Pineicenowy> 't response
<Pineicenowy> at all
<Pineicenowy> any more
<KotCzarny> :)
<KotCzarny> ['] icenowy[m]
<KotCzarny> ^ that's a candle burning
Pineicenowy has quit [Client Quit]
tl_lim has joined #linux-sunxi
IgorPec has joined #linux-sunxi
phdeswer has joined #linux-sunxi
tllim has quit [Ping timeout: 245 seconds]
AneoX_ has quit [Ping timeout: 245 seconds]
tl_lim has quit [Ping timeout: 255 seconds]
tl_lim has joined #linux-sunxi
<montjoie> MoeIcenowy: ahci only accept one regulator, so some code modification will be necessary
AneoX has joined #linux-sunxi
<montjoie> and the target-supply is for sending power to drives I think
AneoX has quit [Ping timeout: 245 seconds]
Pineicenowy has joined #linux-sunxi
phdeswer has quit [Ping timeout: 256 seconds]
AneoX has joined #linux-sunxi
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 255 seconds]
liqsquid has quit [Ping timeout: 256 seconds]
chewitt has quit [Ping timeout: 248 seconds]
AneoX has joined #linux-sunxi
AneoX_ has quit [Ping timeout: 256 seconds]
AneoX has quit [Ping timeout: 256 seconds]
<anarsoul> Pineicenowy: ElBarto: mingcongbai: I'm not sure what can be wrong here. If any of you can experiment a bit with LCD power-on delays in ATF it would be nice
<anarsoul> if no - I can prepare several images to test next week
<ElBarto> anarsoul: yeah I will today
<ElBarto> anarsoul: the fact the I can't have DEBUG build to work is a bit hard though ...
<ElBarto> but I'll just add some printfs here and there to verify regulators values
<anarsoul> ok
<anarsoul> ElBarto: to get debug ATF build working just do distclean in your u-boot dir
<anarsoul> i.e. 'make distclean'
<ElBarto> I did
Quark234 has quit [Ping timeout: 276 seconds]
<anarsoul> hm
<anarsoul> I'm actually using debug ATF build :)
<ElBarto> I saw that using your u-boot :)
<ElBarto> I did in the past so I don't know what's happening
<anarsoul> make clean build of ATF as well?
<ElBarto> yup
<anarsoul> not sure if it has distclean or not
<anarsoul> but it's worth a try
<ElBarto> it does
<ElBarto> and I did distclean
<anarsoul> ElBarto: try fresh clone?
AneoX has joined #linux-sunxi
<ElBarto> I could try that
<Pineicenowy> anarsoul: I slightly tried, to apply TERES-I sequence on PInebook
<Pineicenowy> (of course, "try" here means send the binary to mingcongbai and let him flash it to the card
Pineicenowy has quit [Remote host closed the connection]
oliv3r has joined #linux-sunxi
IgorPec has quit [Ping timeout: 255 seconds]
tl_lim has quit [Read error: Connection reset by peer]
tl_lim has joined #linux-sunxi
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 256 seconds]
<anarsoul> ElBarto: I'd suggest trying what BSP does, i.e. dldo2 -> sleep 5ms -> fldo1 -> sleep 10ms -> dc1sw -> sleep 5ms
megi has quit [Ping timeout: 240 seconds]
<ElBarto> anarsoul: yeah adding some register dump helpers right now to check everything
AneoX_ has quit [Ping timeout: 256 seconds]
AneoX has joined #linux-sunxi
hlauer has quit [Ping timeout: 268 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 5.0.0, revision: git-7326-85ef2059c, build type: debug, sources date: 20160102, built on: 2018-06-01 10:18:08 UTC git-7326-85ef2059c http://www.kvirc.net/]
dddddd has joined #linux-sunxi
AneoX has quit [Ping timeout: 245 seconds]
AneoX has joined #linux-sunxi
ch40s[m] has joined #linux-sunxi
yann_soubeyrand has joined #linux-sunxi
t4h4 has joined #linux-sunxi
mic-e[m] has joined #linux-sunxi
kuhn has joined #linux-sunxi
romainmahoux[m] has joined #linux-sunxi
icenowy[m] has joined #linux-sunxi
GuLinux[m] has joined #linux-sunxi
fevv8[m] has joined #linux-sunxi
<ElBarto> anarsoul: icenowy[m]: do you have ANX6345 datasheet by any chance ?
indy has quit [Ping timeout: 240 seconds]
<MoeIcenowy> no
<MoeIcenowy> we are playing with some commentless code :-(
<MoeIcenowy> forgive us
<ElBarto> awesome
<ElBarto> voltage seems to be ok
<ElBarto> but I don't where in u-boot we reset the chip via the reset line
razorfishsl has joined #linux-sunxi
reinforce has joined #linux-sunxi
<tl_lim> here is the ANX6345 datasheet: https://app.box.com/s/75w0uvvsx3hh3rmulkdw0bbkrdqqu2qu
tl_lim has quit [Read error: Connection reset by peer]
<KotCzarny> 'confidential'
<KotCzarny> ;)
<KotCzarny> i always wonder what is the point of those confidential marks, you don't want people to use your product or what?
<ElBarto> yeah want you to pay for the datasheets :)
popolon has joined #linux-sunxi
<ElBarto> s/yeah/they/
<KotCzarny> makes (a bit of) sense
chewitt has joined #linux-sunxi
<MoeIcenowy> anarsoul: this DS indicates the initialization sequence used by AW BSP
<ElBarto> and one thing we don't do is assert the reset line
<ElBarto> what the default state of gpios on A64 ? I forgot
<MoeIcenowy> ElBarto: In
<MoeIcenowy> meaning High-R
<MoeIcenowy> then it's pulled high
<MoeIcenowy> which is against the DS
<MoeIcenowy> TERES is ok because the reset is pulled low
<ElBarto> yeah so the pull up is active at bootup
<ElBarto> this is wrong yes
<MoeIcenowy> ok ElBarto do an experiment?
<ElBarto> reset also need to be low when clocks are setup
<MoeIcenowy> ElBarto: no problem
<ElBarto> tell me what you're thinking ?
<MoeIcenowy> as it's a dedicated XTAL
<ElBarto> not LCD-CLK ?
clemens3_ has joined #linux-sunxi
<MoeIcenowy> yes
<ElBarto> pin J4 (CLKP)
<ElBarto> ok
<MoeIcenowy> J4 of what?
<MoeIcenowy> ANX?
<ElBarto> 'If external system clock input as XTAL, RESETN need be also held low until the clock stable'
<ElBarto> ok
<MoeIcenowy> the clock input of ANX is 27M
<MoeIcenowy> which is difficult to feed from AW chips
<MoeIcenowy> as their base clock is 24M
<ElBarto> so should we deal with pmic in u-boot for this ?
<ElBarto> or gpio in ATF ?
<MoeIcenowy> gpio in ATF
BenG83 has quit [Ping timeout: 240 seconds]
<MoeIcenowy> in this case the time between clock and reset is very very long, many longer than the time required ;-)
<MoeIcenowy> (leave it as low in ATF, and let U-Boot set it to high
<ElBarto> I'll have a look later today
<ElBarto> there is no gpio stuff in atf right now right ?
razorfishsl has quit []
popolon has quit [Quit: WeeChat 1.9.1]
<MoeIcenowy> ElBarto: you have mmio_write_32()
<ElBarto> that's good enough
<ElBarto> will work on it in early afternoon
SP7RT has joined #linux-sunxi
icenowy[m] has left #linux-sunxi ["User left"]
phdeswer has joined #linux-sunxi
dev1990_ has joined #linux-sunxi
indy has joined #linux-sunxi
SP7RT_ has joined #linux-sunxi
SP7RT has quit [Ping timeout: 260 seconds]
kloczek has quit [Remote host closed the connection]
victhor has quit [Ping timeout: 276 seconds]
kloczek has joined #linux-sunxi
Putti has joined #linux-sunxi
elros has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
Andy-D has joined #linux-sunxi
phdeswer has quit [Remote host closed the connection]
phdeswer has joined #linux-sunxi
Putti has quit [Remote host closed the connection]
Putti has joined #linux-sunxi
igraltist has quit [Remote host closed the connection]
Putti has quit [Ping timeout: 260 seconds]
phdeswer has quit [Remote host closed the connection]
phdeswer has joined #linux-sunxi
phdeswer has quit [Remote host closed the connection]
phdeswer has joined #linux-sunxi
SP7RT has joined #linux-sunxi
SP7RT_ has quit [Ping timeout: 256 seconds]
phdeswer has quit [Ping timeout: 240 seconds]
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
elros has quit [Ping timeout: 256 seconds]
elros has joined #linux-sunxi
diego_r has joined #linux-sunxi
dddddd has quit [Remote host closed the connection]
diego_r has quit [Ping timeout: 265 seconds]
Andy-D_ has joined #linux-sunxi
Andy-D__ has joined #linux-sunxi
Andy-D has quit [Ping timeout: 248 seconds]
Andy-D_ has quit [Ping timeout: 256 seconds]
aalm has quit [Ping timeout: 248 seconds]
dev1990_ has quit [Quit: Konversation terminated!]
SP7RT_ has joined #linux-sunxi
SP7RT has quit [Ping timeout: 248 seconds]
dev1990_ has joined #linux-sunxi
LargePrime has joined #linux-sunxi
[7] has quit [Ping timeout: 255 seconds]
TheSeven has joined #linux-sunxi
chewitt has quit [Ping timeout: 240 seconds]
Gerwin_J has joined #linux-sunxi
tlwoerner has quit [Quit: Leaving]
cnxsoft has quit [Quit: cnxsoft]
liqsquid has joined #linux-sunxi
lurchi_ is now known as lurchi__
[O`clock] has quit [Quit: The numbers represents only what you allow them to represent.]
Andy-D_ has joined #linux-sunxi
chewitt has joined #linux-sunxi
SP7RT_ has quit [Ping timeout: 256 seconds]
Andy-D__ has quit [Ping timeout: 256 seconds]
lurchi__ is now known as lurchi_
Putti has joined #linux-sunxi
SP7RT has joined #linux-sunxi
akaizen has quit [Ping timeout: 265 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 5.0.0, revision: git-7326-85ef2059c, build type: debug, sources date: 20160102, built on: 2018-06-01 10:18:08 UTC git-7326-85ef2059c http://www.kvirc.net/]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
victhor has joined #linux-sunxi
elros has quit [Remote host closed the connection]
SP7RT has quit [Ping timeout: 260 seconds]
lurchi_ has quit [Quit: Konversation terminated!]
lurchi_ has joined #linux-sunxi
jbrown has joined #linux-sunxi
SP7RT has joined #linux-sunxi
lurchi_ is now known as lurchi__
dddddd has joined #linux-sunxi
Ultrasauce has joined #linux-sunxi
LargePrime has quit [Ping timeout: 260 seconds]
<mingcongbai> anarsoul: MoeIcenowy: We might be onto something, I have been repeatedly powering off from the U-Boot command line, also used `reset` a couple of times while plugged in - the issue could not be reproduced.
<mingcongbai> I will try to see if only `poweroff` causes the issue when booted to Linux.
<MoeIcenowy> I think on sunxi "reset" only resets the SoC
<MoeIcenowy> but not the PMIC
<MoeIcenowy> (as it uses the on-chip watchdog of the SoC
<mingcongbai> MoeIcenowy: Well I have used `poweroff` a couple of times.
<KotCzarny> unless pmic is controlled by gpio?
<KotCzarny> or some part of it
<MoeIcenowy> KotCzarny: yes, and it's manually set to a mode rather than the default
<MoeIcenowy> s/and/& when/
tllim has joined #linux-sunxi
LargePrime has joined #linux-sunxi
<ElBarto> MoeIcenowy: no psci call from u-boot for poweroff ? (haven't looked)
<ElBarto> mingcongbai: you issue does happen more when running only on battery ?
<mingcongbai> Only happens when plugged in.
<ElBarto> I've personally unplugged the battery to be sure it is not a pmic problem
<ElBarto> tllim: thanks for the datasheet, it's not complete but at least show some problem for the chip power sequence
<tllim> welcome.
<ElBarto> now if only we could have the registers description ...
reinforce has quit [Quit: Leaving.]
SP7RT_ has joined #linux-sunxi
SP7RT has quit [Ping timeout: 268 seconds]
Mr__Anderson has joined #linux-sunxi
Mr__Anderson has quit [Client Quit]
<mingcongbai> anarsoul: MoeIcenowy: The issue could also happen with `reboot`, just not as likely. On the other hand it's pretty much guaranteed to be reproduced with `poweroff`.
<mingcongbai> Note: from Linux
<ElBarto> mingcongbai: could you test with https://people.freebsd.org/~manu/u-boot-pinebook.bin please ?
<ElBarto> just dd if=u-boot-pinebook.bin of=/path/to/dev bs=1k seek=8 conv=sync
juri_ has quit [Ping timeout: 255 seconds]
<MoeIcenowy> ElBarto: this fixes your unit?
<ElBarto> MoeIcenowy: no :) hence why I'm interested in result :)
<MoeIcenowy> ElBarto: not tested or not success?
<ElBarto> MoeIcenowy: it just seems to "work a bit more"
<MoeIcenowy> ah-oh
<MoeIcenowy> delay?
<ElBarto> gpio line asserted in atf, regulator disabled and then re-enabled etc ...
<ElBarto> and they delay based on the chip doc
<ElBarto> then*
<MoeIcenowy> try to delay based on the BSP?
<MoeIcenowy> (as I extracted the delay number you are now not forced to read (maybe) GPLed code
<ElBarto> where is the BSP source for u-boot ?
IgorPec has joined #linux-sunxi
<ElBarto> let me check but I think I used the numbers you gave me
<ElBarto> 5 ms after DLDO2, 10ms after FLDO1 and 5ms after DC1SW
<MoeIcenowy> ok
<ElBarto> and I don't have a problem reading GPLed code when it's the only solution
<ElBarto> if the chip need register to be setup a certain way GPL or not you need to do it this way so ...
<ElBarto> and since I'm not working on a driver for this for FreeBSD it's no problem anyway
<ElBarto> I think the chip is properly power now
<ElBarto> as I can always read the lane number and bandwidth
<ElBarto> it's just reading the edid that is problematic
diego_r has joined #linux-sunxi
LargePrime has quit [Remote host closed the connection]
diego_r has quit [Ping timeout: 256 seconds]
LargePrime has joined #linux-sunxi
clemens3_ has quit [Remote host closed the connection]
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
<mingcongbai> ElBarto: will test later, currently AFK
juri_ has joined #linux-sunxi
<ElBarto> mingcongbai: thanks
SP7RT has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
SP7RT_ has quit [Ping timeout: 264 seconds]
megi has joined #linux-sunxi
<anarsoul> ElBarto: mingcongbai: so I believe we need to keep reset low while powering on ANX, we don't do it currently
<ElBarto> anarsoul: I do currently but doesn't fix my problem ...
<anarsoul> ElBarto: can you show ATF diff?
<ElBarto> anarsoul: and as I said talking to the ANX isn't a problem, it's just reading aux channel that is ...
<anarsoul> ElBarto: you don't enable DC1SW with this code
<anarsoul> because pmic 0x12 reg value != 0xc8
<anarsoul> the explains why you can't read EDID - panel isn't powered
<ElBarto> ?
<ElBarto> if ((ret & 0xc8) != 0xc8)
<ElBarto> this statement is true
<anarsoul> is it?
<anarsoul> OK then
<ElBarto> well yes it is since MSB is the DC1SW enable bit and is it's not 1 it will enabled it
<anarsoul> ElBarto: try adding retry for reading EDID?
Putti has quit [Remote host closed the connection]
Putti has joined #linux-sunxi
<MoeIcenowy> ElBarto: this kind of check is now dropped from sunxi ATF
<ElBarto> anarsoul: doesn't seems to help
<ElBarto> MoeIcenowy: which ones ?
<anarsoul> ElBarto: 1 min
<MoeIcenowy> (ret & 0xc8) != 0xc8
<ElBarto> what do you mean ?
<MoeIcenowy> oh this still remains
<MoeIcenowy> as it's not sanity check
<MoeIcenowy> ElBarto: and I don't think it's needed to deassert the chip directly
<MoeIcenowy> after powering on
<ElBarto> MoeIcenowy: possibly, I've just tried both this way and u-boot deassert the signal
<MoeIcenowy> and have you tried to change the code to r then w?
<MoeIcenowy> (not dumb w
<ElBarto> MoeIcenowy: which part ?
<MoeIcenowy> GPIO
<ElBarto> yeah
<MoeIcenowy> I mean r and modify
<ElBarto> yeah
<MoeIcenowy> oh it doesn't seem to be so necessary...
<ElBarto> doesn't really matter as PD24 is the only pin on this register
<MoeIcenowy> as 24 is 4x8
<MoeIcenowy> oops for 0x7c you did nothing
<MoeIcenowy> but changed the GPIO value of PD0
<ElBarto> anarsoul: survived two reset
<ElBarto> anarsoul: then
<ElBarto> Failed to read DPCD
<ElBarto> anx6345_enable: Failed to read DP_MAX_LANE_COUNT
<ElBarto> MoeIcenowy: crap this is for all the pins ...
tl_lim has joined #linux-sunxi
<anarsoul> ElBarto: well, you can hardcode these as well
<MoeIcenowy> seems no many effect
<MoeIcenowy> except you failed to deassert it in ATF
<MoeIcenowy> interesting
<MoeIcenowy> Pinebook pulled up RESETN
<MoeIcenowy> but TERES-I pulled down
<anarsoul> so if it's not driven, it'll be high?
<MoeIcenowy> yes
<MoeIcenowy> and mysteriously the VCC-PD is 3.3V on Pinebook
<MoeIcenowy> 2.5V on TERES-I
xerpi has quit [Quit: Leaving]
<MoeIcenowy> (although this seems no problem
tllim has quit [Ping timeout: 276 seconds]
<ElBarto> is PD used for something else on TERES ? like CSI or something ?
<anarsoul> MoeIcenowy: what is VCC-PD?
<MoeIcenowy> ElBarto: also an ANX6345
<MoeIcenowy> anarsoul: the GPIO voltage level reference power input of PD bank
<KotCzarny> input or output?
<MoeIcenowy> should be both
<KotCzarny> might be more important as output
<MoeIcenowy> the pull up to 2.5V seems to be done on Pinebook because the voltage is 3.3V
<anarsoul> hm
<MoeIcenowy> and this is used for restricting the voltage to 2.5V
<anarsoul> should we set it to 2.5v? IIRC most PD pins are used for RGB output
<MoeIcenowy> anarsoul: cannot set
<MoeIcenowy> it's dcdc1
<ElBarto> so most of the time it fallback to use the hardcoded edid and doesn't work
<anarsoul> ElBarto: try using hardcoded values for data_rate and lanes number
<ElBarto> sometimes it fallback and works ...
<ElBarto> no I mean it manage to get the lanes and data rates
<ElBarto> but all I see is backlight being enabled
<ElBarto> but nothing on the screen
<anarsoul> so panel is off
<ElBarto> something like that yeah
<anarsoul> ElBarto: try toggling DC1SW
<MoeIcenowy> BTW ElBarto: do your board come with a force UART switch?
<anarsoul> i.e. switch it off, wait, switch it on
<ElBarto> anarsoul: yup
<ElBarto> MoeIcenowy: yeah
<MoeIcenowy> ElBarto: maybe new batch issue?
<anarsoul> MoeIcenowy: I believe all pinebooks come with it
<MoeIcenowy> anarsoul: sorry my PB doesn't come with it...
<MoeIcenowy> and there's only the GPIO switch
<anarsoul> MoeIcenowy: yours is probably pre-production
<ElBarto> MoeIcenowy: I got mine like a year ago
<MoeIcenowy> anarsoul: maybe it's pre-production...
<ElBarto> MoeIcenowy: but I would rule out HW issue
<ElBarto> wouldn't
<anarsoul> but BSP works
<anarsoul> ElBarto: try playing with DC1SW
<MoeIcenowy> anarsoul: I think BSP hardcodes many things
<ElBarto> anarsoul: oh I already do : sunxi_pmic_write(0x12, ret & ~0x90);
<MoeIcenowy> at least display timing
clemens3 has joined #linux-sunxi
<MoeIcenowy> (it doesn't care about EDID at all)
<anarsoul> ElBarto: wait some time, I'd say 100-200ms
<anarsoul> I'd drop hardcoded EDID
<anarsoul> ElBarto: you can also add some delay after powering on panel
<MoeIcenowy> ElBarto: with a force hardcode can the screen work?
<MoeIcenowy> if no maybe the panel is really not powered?
<anarsoul> maybe it's too fast and panel hasn't come up yet
<ElBarto> MoeIcenowy: not always, but works "more"
<ElBarto> anarsoul: I do wait some time, but I can bump the values
<anarsoul> yeah, sounds like timing related...
* ElBarto aggree
<anarsoul> ElBarto: add a delay between retries
<ElBarto> damn
<ElBarto> even with 500ms delay second reset and no lanes ...
<anarsoul> what do you mean?
<ElBarto> I added 500ms delay after each regulator enabled and between edid retries
<ElBarto> first boot was ok
<ElBarto> second wasn't
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 276 seconds]
SP7RT has quit [Ping timeout: 265 seconds]
AneoX_ has quit [Ping timeout: 240 seconds]
AneoX has joined #linux-sunxi
paulliu has quit [Quit: Leaving.]
megi has quit [Quit: WeeChat 2.1]
<anarsoul> ElBarto: does it work fine with BSP?
<ElBarto> anarsoul: 8 time out of 10 it does
<anarsoul> of, so it fails with BSP as well?
<anarsoul> s/of/oh
phdeswer has joined #linux-sunxi
<ElBarto> most of the time I don't have the splashscreen
<ElBarto> but linux does display stuff
<ElBarto> sometimes linux doesn't display anything
<anarsoul> ElBarto: sounds like faulty panel to me
<ElBarto> could be sure
<ElBarto> but it's way more reliable with BSP than mainline
Gerwin_J has quit [Ping timeout: 265 seconds]
<anarsoul> well, mainline Linux could do better with powercycling panel before using it
<anarsoul> but that's probably it...
<ElBarto> thing is I'm not that interested in mainline Linux as I'm a FreeBSD developper :)
<anarsoul> then you have to develop a driver for it :)
<anarsoul> simplefb won't work for you
tl_lim has quit [Read error: Connection reset by peer]
<ElBarto> when it works it works (not simplefb but efifb)
tl_lim has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
<ElBarto> why do you say that simplefb won't work ?
<anarsoul> ElBarto: because init is done in u-boot and u-boot fails
<ElBarto> well that's why I said "when it works it works" :)
<ElBarto> and why I want to fix u-boot
<ElBarto> does linux mainline have a driver for anx6345 ? ?
<anarsoul> I have a patch in my branch
<anarsoul> it's not mainlined yet
<ElBarto> ok
<MoeIcenowy> anarsoul: let me mainline it ;-)
<anarsoul> MoeIcenowy: go for it! :) you'll probably have to wait for A64 display to land it first
SP7RT has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
jstein__ has joined #linux-sunxi
jstein__ is now known as jstein
montjoie has quit [Quit: leaving]
dev1990__ has joined #linux-sunxi
dev1990_ has quit [Ping timeout: 264 seconds]
LargePrime has quit [Remote host closed the connection]
phdeswer has quit [Ping timeout: 264 seconds]
<anarsoul> ElBarto: you could probably try porting u-boot DE2 driver into FreeBSD
hlauer has joined #linux-sunxi
<anarsoul> not sure if there's linux-like DRM infrastructure, so porting linux driver could be more challenging...
<ElBarto> anarsoul: I've started DE2 stuff for FreeBSD
<ElBarto> anarsoul: we have DRM have I've started to fix it for arm64
<ElBarto> but porting gpl driver is out of the question
akaizen has joined #linux-sunxi
SP7RT has quit [Ping timeout: 268 seconds]
Gerwin_J has quit [Quit: Gerwin_J]
SP7RT has joined #linux-sunxi
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 260 seconds]
vagrantc has joined #linux-sunxi
<anarsoul> oh
<anarsoul> I forgot that GPL isn't good enough for BSD folks :)
<ElBarto> not the phrase that I would used but yeah :)
<ElBarto> important thing is we all want the same thing, software works correctly with hardware :P
rexxster has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 5.0.0, revision: git-7326-85ef2059c, build type: debug, sources date: 20160102, built on: 2018-06-01 10:18:08 UTC git-7326-85ef2059c http://www.kvirc.net/]
lurchi__ is now known as lurchi_
SP7RT has quit [Ping timeout: 245 seconds]
tl_lim has quit [Ping timeout: 276 seconds]
tl_lim has joined #linux-sunxi
IgorPec has quit [Ping timeout: 256 seconds]
aalm has joined #linux-sunxi
Putti has quit [Ping timeout: 255 seconds]
Putti has joined #linux-sunxi
Putti has quit [Remote host closed the connection]
Putti has joined #linux-sunxi
phdeswer has joined #linux-sunxi
hlauer has quit [Ping timeout: 276 seconds]
clemens3 has quit [Ping timeout: 240 seconds]
Putti has quit [Ping timeout: 240 seconds]
jstein has quit [Quit: quit]
Wizzup has quit [Remote host closed the connection]
Wizzup has joined #linux-sunxi
Wizzup has quit [Remote host closed the connection]
Wizzup has joined #linux-sunxi
Mandragor has joined #linux-sunxi
aballier has quit [Ping timeout: 268 seconds]
<Mandragor> Hi, after 5 days fiddling around with a Nanopi A64 i have got network running (tftp, dhcp) on uboot. however if i use the same dtb file which is use for u-boot with a linux kernel (fedora aarch64) the kernel 4.16 doesn't detect the ethernet at all. i am puzzled.
aballier has joined #linux-sunxi
<Mandragor> is there any way to force the stmmac driver to find the phy device?
<Mandragor> relevant snippet of dts (ethernet enabling on Nanopi a64) is here: https://pastebin.com/5PZ1qe11
tl_lim has quit [Ping timeout: 265 seconds]
tl_lim has joined #linux-sunxi
phdeswer has quit [Ping timeout: 264 seconds]
igraltist has joined #linux-sunxi