Commit 06a9f50c authored by Yang Xiwen's avatar Yang Xiwen Committed by Bjorn Andersson
Browse files

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: default avatarYang Xiwen <forbidden405@outlook.com>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/TYZPR04MB632102315884225B7343533B96729@TYZPR04MB6321.apcprd04.prod.outlook.com
parent a5317b23
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ &sdhc_1 {

&usb {
	extcon = <&pm8916_usbin>;
	dr_mode = "peripheral";
	usb-role-switch;

	status = "okay";
};