rellla 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 - *only registered users can talk*
<smaeul> bjne: you could adapt https://github.com/crust-firmware/crust to do whatever you like with GPIO. you can add new messages to the arm_scpi driver in Linux to control it
<megi> hmm
<megi> those comments don't address the real issue, which is that ATF now breaks power sequencing requirements of the ethernet phy on orange pi boards
lurchi__ is now known as lurchi_
<smaeul> the problem is there's no good existing DT property to use to tell ATF which ones to turn on
<megi> if ATF wants to enable regulators it should follow the DT and enable all of them, even the gpio ones
<smaeul> hmm, that may be possible. ATF already has code to set GPIO outputs
<smaeul> even then it would just be AXP + GPIO, and not any other regulator types
<megi> on a higher level, if ATF tries to enable devices and just blanketly enabling a bunch of regs without any regard for timing requirements of particular devices is broken
<smaeul> well ATF is doing what SPL does on other platforms, only that there's no space to put an AXP driver in SPL on sun50i
<megi> anyway, why would ATF enable ephy by itself if it doesn't have ehternet driver?
<megi> I can understand enabling it on the request of u-boot
<smaeul> apritzel's reasoning (that I don't really agree with) is that u-boot proper expects regulators to already be on
<smaeul> hmm, in u-boot (board/sunxi/board.c) it looks like the choice of which regulators to enable is hardcoded based on the PMIC model
<megi> it's controlled by u-boot config
<smaeul> and even if we did that, it wouldn't help H6, because ALDO2 still needs to be on for ethernet to work
<megi> ideally u-boot ethernet driver would ask atf to enable the regulator, or enable it itself
<smaeul> megi: the voltage is, but not the list of regulators. so sure, you could set ALDO2 to 0, turning it off, but then Ethernet still doesn't work
<megi> ethernet doesn't work now either, so...
<megi> it's just that this can't really be fixed from u-boot
<megi> u-boot would need to disable the aldo2 wait a bit and then re-enable it along with a gpio controled phy-io regulator
<megi> so this needs to be fixed in atf, to have a sensible solution
<smaeul> is there not a reset for the PHY?
<megi> that does not work after invalid power-up sequence
<megi> I tried in Linux
<megi> phy reset gpio is configured in my dts in Linux and phy initialization is still broken whenever phy regulators are enabled with some delay in between
rex_victor has quit [Ping timeout: 252 seconds]
rex_victor has joined #linux-sunxi
<smaeul> megi: I'd be happy to write up a patch and get it merged in ATF, but I really don't know the best way to proceed here. I suggest emailing Andre (and me), since he's not on IRC
<megi> smaeul: thanks, I'll send him an e-mail summarising the issue when I get to mainlining the opi3 ethernet again
<anarsoul> I bet he's out of office :)
skiboy has quit [Quit: Leaving]
florian has quit [Ping timeout: 260 seconds]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
ganbold has joined #linux-sunxi
tllim has joined #linux-sunxi
ChriChri_ has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 260 seconds]
ChriChri has quit [Ping timeout: 258 seconds]
ChriChri_ is now known as ChriChri
cnxsoft has joined #linux-sunxi
megi has quit [Ping timeout: 240 seconds]
bjne has quit [Ping timeout: 240 seconds]
dddddd has quit [Ping timeout: 258 seconds]
NeuroScr has quit [Quit: NeuroScr]
victhor has quit [Ping timeout: 248 seconds]
chewitt has joined #linux-sunxi
hell__ has quit [Ping timeout: 250 seconds]
hellsenberg has joined #linux-sunxi
sunilmohan has quit [Ping timeout: 268 seconds]
sunilmohan has joined #linux-sunxi
sunilmohan has quit [Changing host]
sunilmohan has joined #linux-sunxi
Putti has quit [Ping timeout: 268 seconds]
Xalius_Ph has quit [Quit: Bye]
TheSeven has quit [Ping timeout: 248 seconds]
TheSeven has joined #linux-sunxi
reinforce has joined #linux-sunxi
tl_lim has joined #linux-sunxi
tllim has quit [Ping timeout: 260 seconds]
ganbold has quit [Remote host closed the connection]
ganbold has joined #linux-sunxi
lurchi__ has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
lurchi_ has quit [Ping timeout: 260 seconds]
NeuroScr has joined #linux-sunxi
chewitt has quit [Quit: Zzz..]
nexgen has joined #linux-sunxi
selfbg has joined #linux-sunxi
nexgen has quit [Remote host closed the connection]
nexgen has joined #linux-sunxi
montjoie has quit [Ping timeout: 260 seconds]
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-sunxi
montjoie has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 265 seconds]
JohnDoe_71Rus has joined #linux-sunxi
tl_lim has quit [Read error: Connection reset by peer]
diego_r has joined #linux-sunxi
bjne has joined #linux-sunxi
AneoX has quit [Ping timeout: 265 seconds]
AneoX has joined #linux-sunxi
camh has quit [Ping timeout: 260 seconds]
florian has joined #linux-sunxi
camh has joined #linux-sunxi
Shirasaka-Hazumi has quit [Quit: ZNC - https://znc.in]
Putti has joined #linux-sunxi
huawei has joined #linux-sunxi
suprothunderbolt has quit [Ping timeout: 240 seconds]
abordado has joined #linux-sunxi
Putti has quit [Remote host closed the connection]
selfbg has quit [Remote host closed the connection]
selfbg has joined #linux-sunxi
victhor has joined #linux-sunxi
abordado has quit [Remote host closed the connection]
abordado has joined #linux-sunxi
abordado has quit [Client Quit]
AneoX has quit [Ping timeout: 260 seconds]
AneoX has joined #linux-sunxi
huawei has quit [Quit: ZNC - https://znc.in]
megi has joined #linux-sunxi
NeuroScr has quit [Quit: NeuroScr]
gaston1980 has joined #linux-sunxi
huawei has joined #linux-sunxi
NeuroScr has joined #linux-sunxi
hellsenberg is now known as hell__
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 240 seconds]
barni2000 has joined #linux-sunxi
barni2000 has left #linux-sunxi [#linux-sunxi]
Mangy_Dog has joined #linux-sunxi
abordado has joined #linux-sunxi
NeuroScr has quit [Quit: NeuroScr]
abordado has quit [Quit: ZNC 1.7.5 - https://znc.in]
abordado has joined #linux-sunxi
abordado has quit [Client Quit]
abordado has joined #linux-sunxi
tnovotny has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
suprothunderbolt has joined #linux-sunxi
<bjne> Is there a trick to make serial init faster?
<bjne> [ 0.182842] printk: console [ttyS0] disabled
<bjne> [ 0.203017] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 38, base_baud = 1500000) is a U6_16550A
<bjne> [ 0.843954] printk: console [ttyS0] enabled
<bjne> looks like 650ms ish
bjne has quit [Ping timeout: 260 seconds]
gaston1980 has quit [Quit: Konversation terminated!]
dddddd has joined #linux-sunxi
ldevulder_ has quit [Quit: Leaving]
ldevulder has joined #linux-sunxi
reinforce has joined #linux-sunxi
selfbg has quit [Remote host closed the connection]
cnxsoft has quit [Quit: cnxsoft]
<tuxd3v> faster?
<tuxd3v> Human eyes are not able to follow 115200, and you want 1500000?
<tuxd3v> for a comunication system, faster could mean better but for a serial its nice like it is..
* kilobyte has a scrollback.
<tuxd3v> picocom, minicom, etc doesn't support high baudrates only the stadards ones..
<karlp> I think they're looking for faster boot times.
<karlp> and I'd agree, that looks like it should be an easy half second.
<tuxd3v> termios.h indeed now supports higher baudrates, but the tools around to debug does not
<tuxd3v> only with stty afaik you can do that..
<tuxd3v> without tools to later debug it will serve no purpose..
<tuxd3v> rockchip uses a 24mhz oscilator to get the 1500000 prescaler at 16
<karlp> I'm really not sure where you think they want a higher baudrate
<tuxd3v> but its a s*t to debug later..
<karlp> and yeah, 115200 is still slow.
<karlp> compare catting a big file on a 115200 terminal vs via a shell
<karlp> you can very visibly see the difference.
<karlp> but I think it's very off what bjne wanted :)
<tuxd3v> slow? try fo follow with human eyes, a 115200 serial
<karlp> cat biggger_tahnk_expected_log_file_to_see_the_end.txt..... wait for it all to scroll past
<karlp> it is _much_ slower than you might like, but yeah, totally sufficient for interactive use
<tuxd3v> lool
<karlp> if only bjne was still here to say what they really wanted.
<tuxd3v> at least use a stadard value
<tuxd3v> like
<karlp> but I still heavily suspec it was boot time speedups, nothing to do with baudrates
<kilobyte> karlp: my big desktop spits out 1024 lines about RAM being non-ECC, which at 115200 really slows down boot
<MoeIcenowy> BTW Allwinner SoCs are also capable of 1.5Mbps
<MoeIcenowy> because they also have 24MHz input of the UART block
<tuxd3v> {230400,460800,921600}
<tuxd3v> how to you achieve 115200 then ?
<karlp> just about everything other than actual legacy 8250 compat shit can do arbitrary bauds
camh has quit [Read error: Connection reset by peer]
nazmi has joined #linux-sunxi
<diego71> tuxd3v: gnu screen works with not standard speed
<diego71> most serial usb adapter can go faster
<diego71> btw, bjne it was complaining about 650ms spent in serial initialization, nothing about bauds...
netlynx has joined #linux-sunxi
<karlp> diego71: yeah, I tried saying that a few times :)
bjne has joined #linux-sunxi
<bjne> Does anyone have insight in howto make the serial initialization faster?
<diego_r> tuxd3v: minicom can select up to 4000000 bps: https://raspberrypi.stackexchange.com/a/70008/71218
<martinayotte> tuxd3v: picocom support high rates and even custom rates if compiled from sources with -DUSE_CUSTOM_BAUD
<diego_r> adding "silent" boot parameter often speeds up boot by a couple of seconds, sometimes more, depending on the amount of blah blah
<diego_r> and systemd stays silent as well, when the kernel parameter is set
<diego_r> ups, I meant "quiet"
damex has quit [Quit: damex]
AneoX_ has joined #linux-sunxi
damex has joined #linux-sunxi
mhlavink has joined #linux-sunxi
AneoX has quit [Ping timeout: 268 seconds]
<megi> bjne: I have basically no delay between serial probe and console registration, and I can't immediately see why there would be any delay from the code - as register_console seems to be called right after serial probe
<megi> I have all drivers builtin
<bjne> All drivers builtinn as well..
<bjne> megi: so you dont see this?
<bjne> [ 0.185426] printk: console [ttyS0] disabled
<bjne> [ 0.205614] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 38, base_baud = 1500000) is a U6_16550A
<bjne> [ 0.846339] printk: console [ttyS0] enabled
<megi> no
<megi> I see delay < 100us
<megi> I have console=ttyS0,115200 on command line
damex has quit [Quit: damex]
<bjne> yeah, same
<bjne> this is h2+ opiz
<megi> I looked at H3 and H6
<bjne> What can it be?
<megi> no idea, you'd need to check the Linux code
<megi> maybe some kernel config option, or whatever
tllim has joined #linux-sunxi
damex has joined #linux-sunxi
AneoX_ has quit [Quit: Textual IRC Client: www.textualapp.com]
damex has quit [Quit: damex]
damex has joined #linux-sunxi
chewitt has joined #linux-sunxi
diego_r has quit [Ping timeout: 260 seconds]
tllim has quit [Ping timeout: 260 seconds]
DonkeyHotei has quit [Ping timeout: 268 seconds]
DonkeyHotei has joined #linux-sunxi
DonkeyHotei has quit [Ping timeout: 260 seconds]
chewitt has quit [Quit: Zzz..]
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 5.0.1, revision: 5.0.1+git-7433-0df9f22f2, build type: debug, sources date: 20160102, built on: 2019-12-08 19:19:20 UTC 5.0.1+git-7433-0df9f22f2 http://www.kvirc.net/]
tllim has joined #linux-sunxi
DonkeyHotei has joined #linux-sunxi
DonkeyHotei has quit [Remote host closed the connection]
DonkeyHotei has joined #linux-sunxi
damex has quit [Ping timeout: 240 seconds]
damex has joined #linux-sunxi
jstein has joined #linux-sunxi
NeuroScr has joined #linux-sunxi
mraynal has joined #linux-sunxi
lerc has quit [Quit: No Ping reply in 180 seconds.]
lerc has joined #linux-sunxi
<tuxd3v> the repository: packages.linux-sunxi.org still exists?
<tuxd3v> I would love to get the mackage 'libump-dev'
<tuxd3v> :)
afaerber has quit [Ping timeout: 250 seconds]
afaerber has joined #linux-sunxi
tnovotny has quit [Quit: Leaving]
afaerber has quit [Quit: Leaving]
random_yanek has quit [Ping timeout: 268 seconds]
afaerber has joined #linux-sunxi
camh has joined #linux-sunxi
random_yanek has joined #linux-sunxi
<tuxd3v> I compiled xf86-video-turbo with linump-dev.. but I need some help with it :(
<tuxd3v> livb: can you help me?
<tuxd3v> :)
<tuxd3v> thanks in Advance
aloo_shu has joined #linux-sunxi
NeuroScr has quit [Quit: NeuroScr]
jstein has quit [Quit: quit]
netlynx has quit [Remote host closed the connection]
omnit has joined #linux-sunxi
bjne has quit [Ping timeout: 260 seconds]
tllim has quit [Ping timeout: 260 seconds]
BenG83 has joined #linux-sunxi
Xalius_Ph has joined #linux-sunxi
BenG83 has quit [Ping timeout: 258 seconds]
dzla has joined #linux-sunxi
dzla has quit [Remote host closed the connection]
tllim has joined #linux-sunxi
\\Mr_C\\ has joined #linux-sunxi
jelly-home has quit [Ping timeout: 258 seconds]
jelly-home has joined #linux-sunxi
<suprothunderbolt> is maineline 5.4 MIPI DSI usable now on A64? I'm running Jagen's patches that work well but I'm occasionally getting an issue at boot which I though was a hardware fault at first but seems like an a race condition: sun6i-mipi-dsi 1ca0000.dsi: can't request region for resource [mem 0x01ca1000-0x01ca1fff]
<suprothunderbolt> then it fails with: Couldn't map the DPHY encoder registers
omnit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dev1990 has quit [Remote host closed the connection]
dev1990 has joined #linux-sunxi
Nemo_bis has quit [Read error: Connection reset by peer]