arm64: dts: qcom: msm8916-ufi: make UDC dual mode
authorYang Xiwen <forbidden405@outlook.com>
Fri, 5 May 2023 16:32:51 +0000 (00:32 +0800)
committerBjorn Andersson <andersson@kernel.org>
Thu, 25 May 2023 04:50:46 +0000 (21:50 -0700)
It's possible to use this device with a (non-standard) hub to get USB
working in host mode, but dr_mode="peripheral" prevents the UDC to
do so.
Remove dr_mode="peripheral" and add usb-role-switch so that it defaults
to otg mode and can be switched to host mode in userspace.

Signed-off-by: Yang Xiwen <forbidden405@outlook.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/TYZPR04MB632102315884225B7343533B96729@TYZPR04MB6321.apcprd04.prod.outlook.com
arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi

index 50bae6f214f1fbabd7a405252579b7a6001955e7..08ecd901c1af65f779ee1444336367636104ca37 100644 (file)
 
 &usb {
        extcon = <&pm8916_usbin>;
-       dr_mode = "peripheral";
+       usb-role-switch;
 
        status = "okay";
 };