Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2024.04 is OUT / Merge Window is OPEN, next branch is CLOSED / Release v2024.07 is scheduled for 01 July 2024 / Channel archives at https://libera.irclog.whitequark.org/u-boot
thopiekar has quit [Ping timeout: 252 seconds]
goliath has quit [Quit: SIGSEGV]
KREYREN_ has quit [Remote host closed the connection]
KREYREN_ has joined #u-boot
KREYREN_ has quit [Remote host closed the connection]
KREYREN_ has joined #u-boot
mmu_man has quit [Ping timeout: 268 seconds]
vagrantc has quit [Ping timeout: 246 seconds]
naoki has joined #u-boot
KREYREN_ has quit [Remote host closed the connection]
KREYREN_ has joined #u-boot
Clamor has joined #u-boot
vagrantc has joined #u-boot
vagrantc has quit [Quit: leaving]
KREYREN__ has joined #u-boot
KREYREN_ has quit [Remote host closed the connection]
sakman has quit [Quit: Leaving]
naoki has quit [Quit: naoki]
naoki has joined #u-boot
enok has joined #u-boot
sicelo_ has joined #u-boot
qsx has quit [Read error: Connection reset by peer]
sicelo has quit [Read error: Connection reset by peer]
sicelo_ is now known as sicelo
qsx has joined #u-boot
alperak has joined #u-boot
wak has quit [Quit: ZNC - https://znc.in]
wak has joined #u-boot
thopiekar has joined #u-boot
thopiekar has quit [Ping timeout: 256 seconds]
xypron has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
warpme has joined #u-boot
thopiekar has joined #u-boot
xypron has joined #u-boot
xypron has quit [Client Quit]
xypron has joined #u-boot
stefanro has joined #u-boot
monstr has joined #u-boot
KREYREN_ has joined #u-boot
KREYREN__ has quit [Ping timeout: 260 seconds]
linfax has joined #u-boot
cambrian_invader has quit [Ping timeout: 256 seconds]
mckoan|away is now known as mckoan
prabhakalad has quit [Ping timeout: 260 seconds]
prabhakalad has joined #u-boot
cambrian_invader has joined #u-boot
slobodan has joined #u-boot
mmu_man has joined #u-boot
Clamor has quit [Read error: Connection reset by peer]
Clamor has joined #u-boot
joeskb7 has quit [Ping timeout: 268 seconds]
mmu_man has quit [Ping timeout: 252 seconds]
jfsimon1981 has joined #u-boot
frieder has joined #u-boot
jfsimon1981_b has quit [Ping timeout: 268 seconds]
joeskb7 has joined #u-boot
Clamor has quit [Ping timeout: 252 seconds]
Clamor has joined #u-boot
sszy has joined #u-boot
Clamor has quit [Ping timeout: 260 seconds]
Clamor has joined #u-boot
slobodan has quit [Ping timeout: 240 seconds]
enok has quit [Ping timeout: 255 seconds]
enok has joined #u-boot
f_ has joined #u-boot
prabhakalad has quit [Quit: Konversation terminated!]
naoki has quit [Quit: naoki]
prabhakalad has joined #u-boot
kveremitz has quit [Quit: ZNC - http://znc.in]
kveremitz has joined #u-boot
thopiekar has quit [Ping timeout: 268 seconds]
slobodan has joined #u-boot
enok has quit [Remote host closed the connection]
slobodan_ has joined #u-boot
slobodan_ has quit [Read error: Connection reset by peer]
slobodan has quit [Ping timeout: 252 seconds]
slobodan_ has joined #u-boot
f_ has quit [Remote host closed the connection]
f_ has joined #u-boot
f_ has quit [Ping timeout: 260 seconds]
ikarso has joined #u-boot
thopiekar has joined #u-boot
mripard has joined #u-boot
KREYREN_ has quit [Remote host closed the connection]
dsimic has quit [Ping timeout: 252 seconds]
KREYREN_ has joined #u-boot
dsimic has joined #u-boot
wooosaiiii has quit [Quit: wooosaiiii]
wooosaiiii has joined #u-boot
thopiekar has quit [Ping timeout: 255 seconds]
<calebccff> marex: can I pick your brains about dwc3 role switching?
<calebccff> I have this board with just a single USB controller, and a DIP switch which muxes it to either a type-c port, or to an internal USB hub.
<calebccff> in Linux we have proper role detection working (well, when switching to host mode you have to unplug your type-c cable cuz vbus, but yeah) and the DT is thus modelled around this
<calebccff> the dr_mode property is entirely unspecified (this is valid and Linux falls back to OTG mode, which works correctly https://www.kernel.org/doc/Documentation/devicetree/bindings/usb/usb-drd.yaml)
<calebccff> however this totally breaks U-Boot, as the dwc3-generic driver just nopes out if you don't tell it what mode to be in
<calebccff> I could probably argue the case that we should set the mode to OTG instead, this would be correct to the bindings. But dwc3-generic treats OTG mode as peripheral mode
<calebccff> and on this particular board, it's much more useful to default to host mode instead, so that we can boot from USB or via TFTP (usb ethernet), etc...
<calebccff> on other qualcomm devices (like phones) we also may have just one USB controller, but in that case we really want it to be in peripheral mode (if DRD is unsupported) as that's the more useful option
<calebccff> so my question is: what do?
<calebccff> I think the "ideal" solution would be that the dwc3-generic driver can handle OTG properly, and do role switching either via hw detection or "on demand" (so "usb start" would trigger a role switch if there is only one controller and it's DRD capable)
<calebccff> but that is a substantial effort to undertake (though definitely something I'm up for), and something that will take a lot of time... I'd like to find some kind of bandaid solution to get us through
<calebccff> oh right, the problem with just modifying DT to set "dr_mode = host" is that if we hand that DT over to Linux then the type-c stack totally falls apart and we get no working USB (this is definitely something Linux should handle better)
<calebccff> so far the best idea I've come up with is to set dr_mode = host in the DT and then use the DT fixup callback that runs just before the OS boots to remove the property or set it to OTG.
jclsn has joined #u-boot
thopiekar has joined #u-boot
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 264 seconds]
Stat_headcrabed has joined #u-boot
mmu_man has joined #u-boot
thopiekar has quit [Ping timeout: 264 seconds]
mmu_man has quit [Ping timeout: 260 seconds]
mmu_man has joined #u-boot
thopiekar has joined #u-boot
mmu_man has quit [Ping timeout: 272 seconds]
mmu_man has joined #u-boot
KREYREN__ has joined #u-boot
KREYREN_ has quit [Remote host closed the connection]
mmu_man has quit [Ping timeout: 255 seconds]
mmu_man has joined #u-boot
KREYREN__ has quit [Remote host closed the connection]
mmu_man has quit [Ping timeout: 252 seconds]
monstr has quit [Remote host closed the connection]
<Tartarus> Kwiboo: around? Can you confirm that commit ab3453e7b12d does work in your case please?
<pivi> calebccff: why not just over-riding the property in $board-u-boot.dtsi ?
<pivi> calebccff: bandaid solution, of course, at least it's trivial to implement.
<calebccff> pivi: see my second to last message
f_ has joined #u-boot
schroes has quit [Ping timeout: 255 seconds]
Forty-Bot has quit [Ping timeout: 268 seconds]
<Kwiboo> Tartarus: my local dev tree is based on top of ab3453e7b12d so that should work, will test with your WIP/18Apr2024 branch as soon as I get home
vagrantc has joined #u-boot
mckoan is now known as mckoan|away
schroes has joined #u-boot
enok has joined #u-boot
enok71 has joined #u-boot
enok71 has quit [Remote host closed the connection]
alperak has quit [Quit: Connection closed for inactivity]
<Tartarus> Kwiboo: OK, thanks!
f_ has quit [Remote host closed the connection]
f_ has joined #u-boot
frieder has quit [Ping timeout: 256 seconds]
Clamor has quit [Read error: Connection reset by peer]
Clamor has joined #u-boot
enok has quit [Quit: enok]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
alperak has joined #u-boot
<Kwiboo> Tartarus: I just confirmed that the boot issue is resolved after rebasing on top of your WIP/18Apr2024 branch, thanks!
goliath has joined #u-boot
f_ has quit [Remote host closed the connection]
f_ has joined #u-boot
yann-kaelig has joined #u-boot
ldevulder has quit [Quit: Leaving]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
mmu_man has joined #u-boot
<pivi> calebccff: I assumed you were not handling the internal/built-in device tree from U-Boot to the OS
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
<calebccff> pivi: well it depends how you boot... But if you don't explicitly load a new FDT (either in U-Boot or via systemd-boot/grub/whatever) then the FDT built into U-Boot will be used
<calebccff> for SystemReady IR this is a requirement even, you have to be able to boot generic distro images and those don't load a DT
<calebccff> in other words, DT is part of the board firmware
<marex> calebccff: I didnt ignore you btw, I was just ... sigh
enok has joined #u-boot
<calebccff> marex: no pressure, sorry for the big wall of text... I've been sitting on this for the last week or so and I'm not quite sure how to progress
<calebccff> this was the motivation behind my OF_FIXUP event, so I could set dr_mode before bind
<calebccff> but as Tartarus rightly pointed out that's not really a solution
yann-kaelig has quit []
<calebccff> marex: fyi this is the fix I've come up with for now, I think it'll do just fine https://lore.kernel.org/u-boot/20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org/
Clamor has quit [Read error: Connection reset by peer]
Clamor has joined #u-boot
Clamor has quit [Read error: Connection reset by peer]
___nick___ has joined #u-boot
___nick___ has joined #u-boot
<Tartarus> calebccff: Did you throw v4 of that dt-binding series at CI?
<Tartarus> and/or build all imx platforms?
<calebccff> Tartarus: yes, sorry i should have mentioned that in the cover. https://source.denx.de/u-boot/custodians/u-boot-snapdragon/-/pipelines/20420
<Tartarus> OK thanks
f_ has quit [Ping timeout: 260 seconds]
___nick___ has quit [Ping timeout: 264 seconds]
schmendrick3312 has joined #u-boot
prabhakalad has quit [Ping timeout: 264 seconds]
prabhakalad has joined #u-boot
prabhakalad has quit [Ping timeout: 268 seconds]
prabhakalad has joined #u-boot
schmendrick3312 has quit [Quit: Client closed]
enok has quit [Quit: enok]
enok has joined #u-boot
prabhakalad has quit [Ping timeout: 240 seconds]
prabhakalad has joined #u-boot
linfax has quit [Remote host closed the connection]
linfax has joined #u-boot
enok has quit [Ping timeout: 255 seconds]
sauce has quit [Remote host closed the connection]
sauce has joined #u-boot
qqq has quit [Remote host closed the connection]
slobodan_ has quit [Ping timeout: 256 seconds]
prabhakalad has quit [Ping timeout: 268 seconds]
prabhakalad has joined #u-boot
prabhakalad has quit [Ping timeout: 268 seconds]
prabhakalad has joined #u-boot
sally_ has quit [Remote host closed the connection]
naoki has joined #u-boot
alperak has quit [Quit: Connection closed for inactivity]
vagrantc has quit [Quit: leaving]
sally_ has joined #u-boot
indy has quit [Ping timeout: 260 seconds]
indy_ has joined #u-boot
schroes has quit [Ping timeout: 264 seconds]