Elektrine lite

← Feed

@elly@donotsta.re

Post #2932252

2026-02-23 05:47 UTC

@juliangro@social.linux.pizza Fun fact: USB host mode (partially) works as well even though I heard it’s broken on SDM845. I was wondering why because it’s just a DWC3 controller… diff --git a/arch/arm64/boot/dts/qcom/sdm710-xiaomi-pyxis.dts b/arch/arm64/boot/dts/qcom/sdm710-xiaomi-pyxis.dts index 6bf3962f55cc..3d3a5d51a07e 100644 --- a/arch/arm64/boot/dts/qcom/sdm710-xiaomi-pyxis.dts +++ b/arch/arm64/boot/dts/qcom/sdm710-xiaomi-pyxis.dts @@ -1238,10 +1238,11 @@ &usb_1 { }; &usb_1_dwc3 { - dr_mode = "peripheral"; + dr_mode = "dual"; phys = ; phy-names = "usb2-phy"; maximum-speed = "high-speed"; + usb-role-switch; }; &usb_1_hsphy { Sadly automatic role-switch doesn’t work (probably lacking notification from PHY?). Device also doesn’t supply power to connected device, so only powered devices work (such as a dock): /home/elly # echo host > /sys/kernel/debug/usb/a600000.usb/mode

Replies (1)

  • @elly@donotsta.re @juliangro@social.linux.pizza wow, so much trouble with dual-role there? o.0 for me role switching Just Worked on both sdm632-motorola-river and sm6115-motorola-guamp… (both PMI632) with the only caveat that (at least on guamp) right now having power supplied to the dock seems to actually put it into gadget mode o.0 without powering the dock it really Just Works, see the xonotic video i posted recently :D

    Open ##2932253