Skip to contentSkip to conversation

device-tree: nexus7: Set phy mode to otg instead of host

PATCH In review John Stultz 2 participants 3 messages Jul 2, 2016 – Jul 12, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 device-tree: nexus7: Set phy mode to otg instead of host

In order to have the usb phy work in gadget mode, override the default host mode with otg mode.

This allows gadget mode to work w/o any hacks to the dtsi file.

---
 arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts +1 -0
index 7b05f07..94e9cbb 100644
@@ -253,6 +253,7 @@
 			vddcx-supply	= <&pm8921_s3>;
 			v3p3-supply	= <&pm8921_l3>;
 			v1p8-supply	= <&pm8921_l4>;
+			dr_mode		= "otg";
 		};
 
 		gadget@12500000 {
Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines · John Stultz

In order to have the usb phy work in gadget mode, override the default host mode with otg mode.

This allows gadget mode to work w/o any hacks to the dtsi file.

Ping?

thanks
-john

#2 lore raw
In reply to John Stultz
Quoted 21 lines · John Stultz

In order to have the usb phy work in gadget mode, override the default host mode with otg mode.

This allows gadget mode to work w/o any hacks to the dtsi file.

---
 arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts +0 -0
index 7b05f07..94e9cbb 100644

arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts line 256

Quoted 4 lines
arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts +1 -0
@@ -253,6 +253,7 @@
 			vddcx-supply	= <&pm8921_s3>;
 			v3p3-supply	= <&pm8921_l3>;
 			v1p8-supply	= <&pm8921_l4>;
+			dr_mode		= "otg";

Wouldn't this be the standard case for the first/primary USB on most 8064s? Looks like both the ifc6410 and sd600eval has OTG support on the micro-usb.

Andy, how about we just change the dtsi instead?

Regards,
Bjorn