mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
naoki has joined #linux-rockchip
stikonas has quit [Ping timeout: 260 seconds]
vagrantc has quit [Quit: leaving]
crabbedhaloablut has joined #linux-rockchip
s1b1 has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
hanetzer has quit [Ping timeout: 258 seconds]
s1b1 has joined #linux-rockchip
hanetzer has joined #linux-rockchip
hanetzer has quit [Ping timeout: 240 seconds]
hanetzer has joined #linux-rockchip
unkraut has quit [Quit: leaving]
unkraut has joined #linux-rockchip
sL1pKn07 has quit [Read error: Connection reset by peer]
sL1pKn07 has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 246 seconds]
kevery1 is now known as kevery
psydroid1 has joined #linux-rockchip
stikonas has joined #linux-rockchip
<naoki> hmm...about u-boot, USB3 on ROCK 5B is not working on my v2023.07-based branch. I'm missing something...
amstan has joined #linux-rockchip
LinuxHackerman has joined #linux-rockchip
vulpes2[m] has joined #linux-rockchip
shoragan[m] has joined #linux-rockchip
eballetbo has joined #linux-rockchip
<naoki> Kwiboo: I saw your mail. thank you for your hard work! :)
stikonas has quit [Ping timeout: 260 seconds]
<Kwiboo> naoki: Thanks!, I got my ROCK 5A delivered today so will play with it later :-)
<Kwiboo> for USB on 2023.07 you may have to pick the regulator basic reference counter patches from master: https://github.com/Kwiboo/u-boot-rockchip/compare/v2023.07.02...9598f9001013e25bbc6b253cbbbb68c86f4ab7af
dlan has quit [Server closed connection]
dlan has joined #linux-rockchip
<naoki> thanks for the pointer!
mx08_ has quit [Quit: WeeChat 3.0]
mx08 has joined #linux-rockchip
<naoki> oh I forgot to check how emmc works with sfc enabled binary
<naoki> they share pins
<naoki> oh...? -spi.bin boots from SPI, but SPL doesn't load u-boot from SPI...
<Kwiboo> correct, U-Boot proper is loaded from "same-as-spl", i.e. same media that TPL+SPL was started from as first option, I did not add any fallback node for spi, if you cannot boot from TPL in spi, you probably have some issue and should not try to load U-Boot proper from spi
<Kwiboo> or do you have a case there you boot TPL+SPL from SPI but U-Boot proper is not loaded from SPI even with "same-as-spl" as first boot order option?
<naoki> TPL+SPL is booted from spi, I can see ddr thing and SPL output
<naoki> U-Boot SPL 2023.07.02-00058-g6e4637cd7a (Aug 01 2023 - 19:56:22 +0900)
<naoki> then
psydroid1 has quit [Quit: Reconnecting]
<naoki> Trying to boot from SPI
psydroid1 has joined #linux-rockchip
<naoki> then
<naoki> Trying to boot from MMC2
kevery1 has joined #linux-rockchip
<naoki> there is no output between SPI and MMC2
kevery has quit [Read error: Connection reset by peer]
kevery1 is now known as kevery
<naoki> I think CONFIG_SPL_* are enough... my source tree may have a problem, I'll check what happen on 5B
<naoki> boot from SPI is working on 5B. both TPL+SPL and u-boot(FIT) are loaded from SPI
<Kwiboo> also with CONFIG_SF_DEFAULT_BUS=5 you have to have patched that sets spi5 = &sfc alias, is included in master branch as of yesterday
<naoki> rk3588s-u-boot.dtsi:spi5 = &sfc;
<naoki> CONFIG_SF_DEFAULT_BUS=5
<naoki> hmm...
<Kwiboo> maybe bootrom is writing another boot BROM_BOOTSOURCE for spi on rk3588s
<Kwiboo> or sfc flash node is not named /spi@fe2b0000/flash@0
<naoki> SPL says "Trying to boot from SPI", so I guess BROM_BOOTSOURCE is correct
<Kwiboo> ahh, so it finds it, maybe you have sdhci node still endabled?, I think pinctrl from sdhci will be applied and overwrite fspi pinconf
<Kwiboo> there is no logic that will re-configure the pins, u-boot is lazy loading, so as soon as the sdhci node is probed its pinctrl will be appied
<Kwiboo> at least try with the sdhci node disabled and see if that makes it work
<naoki> I see
<naoki> Kwiboo: you are right. adding status = "disabled"; make load from SPI works
<naoki> but...
<naoki> I want sdhci enabled for u-boot-rockchip.bin, disabled for u-boot-rockchip-spi.bin...
<naoki> where is pinctrl applied...
<Kwiboo> it is done by driver core, one possible way could be to have some code that disables emmc if device was booted from spi flash, not sure how that could be done
<Kwiboo> or without code, create special spi device config that only enable spi node instead of emmc node
<naoki> btw
<naoki> boot from emmc works fine with spi enabled u-boot-rockchip.bin
<naoki> okay, I understand it's difficult for me ;)
<naoki> hmm... I got
<naoki> Bus usb@fc400000: probe failed, error -22
<naoki> during "usb start"
naoki has quit [Remote host closed the connection]
macromorgan has joined #linux-rockchip
macromorgan is now known as Guest1484
Guest1484 has quit [Killed (sodium.libera.chat (Nickname regained by services))]
macromorgan has joined #linux-rockchip
macromorgan has quit [Ping timeout: 252 seconds]
vagrantc has joined #linux-rockchip
kevery has quit [Remote host closed the connection]
kevery1 has joined #linux-rockchip
kevery1 is now known as kevery
macromorgan has joined #linux-rockchip
Stat_headcrabed has joined #linux-rockchip
Stat_headcrabed has quit [Client Quit]
Daanct12 has quit [Quit: A-lined: User has been AVIVA lined]
Danct12 has joined #linux-rockchip
stikonas has joined #linux-rockchip
naoki has joined #linux-rockchip
sally has joined #linux-rockchip
naoki has quit [Quit: naoki]
alpernebbi has quit [Ping timeout: 246 seconds]
alpernebbi has joined #linux-rockchip
naoki has joined #linux-rockchip
crabbedhaloablut has quit []
vagrantc has quit [Quit: leaving]