summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorYang Xiwen <forbidden405@outlook.com>2023-05-05 19:32:51 +0300
committerBjorn Andersson <andersson@kernel.org>2023-05-25 07:50:46 +0300
commit06a9f50c20b5d5fcec9cb0d44b759c4183c7bbd5 (patch)
treed50736846a95b32250df41c44fb8a41fcb947dc0 /arch
parenta5317b23fe6f26307f4c821d56d694c893887675 (diff)
downloadlinux-06a9f50c20b5d5fcec9cb0d44b759c4183c7bbd5.tar.xz
arm64: dts: qcom: msm8916-ufi: make UDC dual mode
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
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi b/arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi
index 50bae6f214f1..08ecd901c1af 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi
@@ -109,7 +109,7 @@
&usb {
extcon = <&pm8916_usbin>;
- dr_mode = "peripheral";
+ usb-role-switch;
status = "okay";
};