<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
<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]