Skip to contentSkip to conversation

ARM: dts: imx25-pdk: Allow USB OTG to work in host mode

PATCH New Fabio Estevam 1 participant 1 message Feb 9, 2017

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ARM: dts: imx25-pdk: Allow USB OTG to work in host mode

From: Fabio Estevam <[email protected]>

USBOTG_PWR pin is connected to the enable pin of the RT9706 power switch.

Configure the IOMUX of the USBOTG_PWR pin so that it can go to zero when the USB OTG is in host mode, which allows the power switch to provide the USB_5V_VBUS_OTG signal.

This allows the USB OTG port to work in USB host mode.

Also tested USB OTG in gadget functionality via g_ether.

---
 arch/arm/boot/dts/imx25-pdk.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/boot/dts/imx25-pdk.dts +8 -0
index 7029210..aff929a 100644
@@ -248,6 +248,12 @@
 				MX25_PAD_UART1_RXD__UART1_RXD		0xc0
 			>;
 		};
+
+		pinctrl_usbotg: usbotggrp {
+			fsl,pins = <
+				MX25_PAD_GPIO_A__USBOTG_PWR		0xc0
+			>;
+		};
 	};
 };
 
@@ -309,6 +315,8 @@
 };
 
 &usbotg {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usbotg>;
 	phy_type = "utmi";
 	dr_mode = "otg";
 	external-vbus-divider;
Signature · 1 line
2.7.4