Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2023.04, v2023.07-rc6 are OUT / Merge Window is CLOSED, next branch is OPEN / Release v2023.07 is scheduled for 10 July 2023 / Channel archives at https://libera.irclog.whitequark.org/u-boot
qschulz has quit [Remote host closed the connection]
qschulz has joined #u-boot
mmu_man has quit [Ping timeout: 246 seconds]
sbach has quit [Remote host closed the connection]
sbach has joined #u-boot
sakman has quit [Ping timeout: 246 seconds]
rburkholder has quit [Quit: Leaving]
alpernebbi has quit [Ping timeout: 246 seconds]
alpernebbi has joined #u-boot
sakman has joined #u-boot
jclsn has quit [Ping timeout: 245 seconds]
jclsn has joined #u-boot
hanetzer has quit [Ping timeout: 246 seconds]
hanetzer has joined #u-boot
<lvrp16> marex:
<lvrp16> i'm just hazarding a guess since I haven't had too much time to debug the issue. the sequence is led gpio bind, led post bind, gpio set, probe after bind, gpio probe
<lvrp16> led post probe never occurs
<marex> lvrp16: what is this about ?
<lvrp16> led default-state never applies after 2022.10
<marex> 2022.10 ?
<marex> can you bisect the source of this ?
<lvrp16> doing it now, it might not be 2022.10, I'll debug more. the led post bind happens but the led probe does not until you run the led command. I'll go through the docs and code.
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
<marex> lvrp16: thanks
vagrantc has quit [Quit: leaving]
zkrx has quit [Server closed connection]
zkrx has joined #u-boot
cyrozap has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
cyrozap has joined #u-boot
cyrozap has quit [Client Quit]
cyrozap has joined #u-boot
cyrozap has quit [Client Quit]
cyrozap has joined #u-boot
<lvrp16> marex: i'm on amlogic platform without spl, the stacktrace is dm_priv_to_rw, dev_get_uclass_plat, led_post_probe. dm_priv_to_rw does not exist since there's no SPL or TPL.
<lvrp16> so the probe never finished. I guess only platforms with SPL/TPL are tested
<lvrp16> so the latter parts of led_post_probe never gets called to set the LEDs
PhoenixMage has left #u-boot [#u-boot]
<lvrp16> I added a print before and after dev_get_uclass_plat. The after print never runs: https://elixir.bootlin.com/u-boot/latest/source/drivers/led/led-uclass.c#L102
<lvrp16> sorry about the noise, lack of sleep and misread led_gpio_probe as led_post_probe, errors out on uclass_get_dev_by_ofnode -19. stack is uclass_get_dev_by_ofnode, gpio_request_tail, gpio_request_by_name, dev_get_priv, led_gpio_probe. gpio probe is not called before led_gpio_probe. not sure how to create a dependency in DM for led_gpio to depend on gpio.
goliath has joined #u-boot
apritzel has joined #u-boot
sbach has quit [Ping timeout: 246 seconds]
sbach has joined #u-boot
apritzel has quit [Ping timeout: 250 seconds]
mckoan_ is now known as mckoan
<mckoan> good morning
persmule has quit [Remote host closed the connection]
sng has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
rainbyte_ is now known as rainbyte
rainbyte has quit [Remote host closed the connection]
rainbyte has joined #u-boot
jpanisbl has joined #u-boot
ikarso has joined #u-boot
sszy has joined #u-boot
jpanisbl has quit [Ping timeout: 246 seconds]
WoC` has joined #u-boot
WoC has quit [Ping timeout: 246 seconds]
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
naoki has quit [Quit: naoki]
mmu_man has joined #u-boot
LeSpocky has joined #u-boot
<LeSpocky> hello
jpanisbl has joined #u-boot
jpanisbl has quit [Ping timeout: 240 seconds]
mmu_man has quit [Ping timeout: 245 seconds]
sng has quit [Remote host closed the connection]
sng has joined #u-boot
jpanisbl has joined #u-boot
apritzel has joined #u-boot
wooosaiiii has quit [Quit: wooosaiiii]
wooosaiiii has joined #u-boot
<LeSpocky> anyone got eeprom access on sam9x60-curiosity board to work?
<LeSpocky> i2c md always gives "Error reading the chip: -19"
<LeSpocky> works fine with linux v6.4
rockosov has quit [Ping timeout: 240 seconds]
rockosov has joined #u-boot
apritzel has quit [Ping timeout: 252 seconds]
Gravis has quit [Ping timeout: 252 seconds]
Gravis has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
sng_ has joined #u-boot
sng has quit [Read error: Connection reset by peer]
haritz has quit [Ping timeout: 260 seconds]
haritz has joined #u-boot
haritz has quit [Changing host]
haritz has joined #u-boot
apalos- has quit [Quit: ZNC 1.7.2 - https://znc.in]
apalos- has joined #u-boot
matthias_bgg has joined #u-boot
sng_ has quit [Remote host closed the connection]
sng has joined #u-boot
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 245 seconds]
jpanisbl has quit [Ping timeout: 260 seconds]
jpanisbl has joined #u-boot
apalos- has quit [Quit: ZNC 1.7.2 - https://znc.in]
apalos- has joined #u-boot
goliath has quit [Quit: SIGSEGV]
sng has quit [Remote host closed the connection]
sng has joined #u-boot
davlefou has quit [Ping timeout: 245 seconds]
torez has joined #u-boot
srk- has joined #u-boot
srk has quit [Ping timeout: 240 seconds]
srk- is now known as srk
davlefou has joined #u-boot
mckoan is now known as mckoan|away
vagrantc has joined #u-boot
apalos- has quit [Quit: ZNC 1.7.2 - https://znc.in]
apalos- has joined #u-boot
sng_ has joined #u-boot
sng has quit [Read error: Connection reset by peer]
rburkholder has joined #u-boot
Gravis has quit [Ping timeout: 245 seconds]
Gravis has joined #u-boot
sng_ has quit [Remote host closed the connection]
ikarso has quit [Quit: Connection closed for inactivity]
goliath has joined #u-boot
apalos- has quit [Quit: ZNC 1.7.2 - https://znc.in]
goliath has quit [Ping timeout: 245 seconds]
jpanisbl has quit [Quit: Konversation terminated!]
apalos- has joined #u-boot
sng has joined #u-boot
apalos- has quit [Quit: ZNC 1.7.2 - https://znc.in]
pgreco has quit [Ping timeout: 250 seconds]
pgreco has joined #u-boot
___nick___ has joined #u-boot
apalos- has joined #u-boot
sbach has quit [Remote host closed the connection]
sbach has joined #u-boot
apalos- has quit [Quit: ZNC 1.7.2 - https://znc.in]
apalos- has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
sng has quit [Remote host closed the connection]
matthias_bgg has quit [Quit: Leaving]
sng has joined #u-boot
sng has quit [Read error: Connection reset by peer]
Leopold has quit [Ping timeout: 246 seconds]
<lvrp16> uclass_get_dev_by_ofnode returns -19, bind order problem? https://www.irccloud.com/pastebin/7PnQCi3v/led-gpio-default-state-no-probe
Leopold has joined #u-boot
sng has joined #u-boot
<lvrp16> when the board inits and tries to set the LED state, it cannot find the device. however running the command manually works. I read the docs but couldn't get the heads or tails on how to create a dependency in DM for led-gpios to pinctrl and gpio.
sng has quit [Remote host closed the connection]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<marex> lvrp16: I dont think DM does deps
<marex> at least not in the "probe defer" sense
<marex> lvrp16: youre probing leds before GPIO controller ?
<lvrp16> marex: That is what the code seems to be doing. Pinctrl and gpio do not seem to be up when gpio_led probes. I don't know how or why it sets that order. Hence I am wondering how it is suppose to work.
<lvrp16> marex: Is there some dts entries that need to be set on the nodes?
<lvrp16> marex: as you can see from the logs, gpio_led is not probed since it failed with enodev
<lvrp16> marex: I would imagine this affect default-state for gpio-leds for all boards, not just mine.
apritzel has joined #u-boot
<marex> lvrp16: try and add bootph-* tag for one or the other
<marex> bootph-all I think
<marex> used to be u-boot,dm-pre-reloc ?
<lvrp16> marex: I added both to pinctrl and gpio-leds as well as just to pinctrl. same result.
<lvrp16> marex: do you need the dm debug logs?
<marex> lvrp16: do those drivers actually get probed ?
<marex> use dm_dump_all()
<marex> maybe they just dont get probed at all
<marex> or dm tree on command line
<marex> they should have [+] if probed in the list
<lvrp16> it's not probed since the probe fails
<marex> lvrp16: lets use paste.debian.net or something which isn't cesspool of ads
<marex> probe of pinctrl driver ?
aak-rookie has joined #u-boot
<Kwiboo> lvrp16: marex: looks like meson pinctrl driver bind gpio driver at pinctrl probe time, should probably do that at pinctrl bind so that gpio driver can probe by led
<lvrp16> Kwiboo: gotcha, I didn't know the dependencies were setup in the driver. thanks for the tip.
<marex> btw renesas clock driver is also combo clock/reset driver, the approach there is to bind two drivers and probe them early
<marex> similar approach might work there too
<marex> there is a superdriver which does that ^
alan_o has quit [Remote host closed the connection]
alan_o has joined #u-boot
<lvrp16> marex: my expertise is limited, going to hack this and then hand upstream off to someone who knows what they're doing :D
aak-rookie has quit [Quit: Client closed]
qqq has quit [Quit: leaving]
rockosov has quit [Quit: WeeChat 3.4-dev]
___nick___ has quit [Ping timeout: 245 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
torez has quit [Quit: torez]
jasonk_ has joined #u-boot
rainbyte has quit [Ping timeout: 240 seconds]
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 260 seconds]
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
sng has joined #u-boot
stipa_ has joined #u-boot
stipa has quit [Read error: Connection reset by peer]
stipa_ is now known as stipa
sng has quit [Remote host closed the connection]
sng has joined #u-boot
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 240 seconds]
mmu_man has joined #u-boot
Leopold_ has joined #u-boot
Leopold has quit [Ping timeout: 240 seconds]
fionera has quit [Quit: fionera]
mmu_man has quit [Ping timeout: 245 seconds]
fionera has joined #u-boot
fionera has quit [Client Quit]
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 240 seconds]
fionera has joined #u-boot
<marex> sjg1: hey, where did you say you pushed that flash.bin binman patchset ?
vagrantc has quit [Quit: leaving]
apritzel has quit [Ping timeout: 250 seconds]
<sjg1> marex: dm/mkim-working and I also sent patches
<sjg1> marex: I'll be around for the next 2-3 hours
sng_ has joined #u-boot
sng has quit [Read error: Connection reset by peer]