Skip to contentSkip to conversation

ARM: dts: imx28-evk: Add pinctrl for USB OTG ID pin

PATCH New Peter Chen 3 participants 3 messages Aug 23, 2013

Subsystems (2)
lore
Share & tools
lore

Peter Chen

author
#0 lore raw

PATCH 1/1 ARM: dts: imx28-evk: Add pinctrl for USB OTG ID pin

After that, the dual-role switch can be used at imx28-evk.

Due to hardware limitations, it needs to switch VDD 5V SOURCE SELECT to "USB 5V" if the user wants to use OTG dual-role switch function. it needs to switch VDD 5V SOURCE SELECT to "WALL 5V" if the user wants to Host 1.

---
 arch/arm/boot/dts/imx28-evk.dts |    2 ++
 arch/arm/boot/dts/imx28.dtsi    |   11 +++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
arch/arm/boot/dts/imx28-evk.dts +2 -0
index 15715d9..fa48bd5 100644
@@ -243,6 +243,8 @@
 	ahb at 80080000 {
 		usb0: usb at 80080000 {
 			vbus-supply = <&reg_usb0_vbus>;
+			pinctrl-names = "default";
+  			pinctrl-0 = <&usb0_pins_a>;
 			status = "okay";
 		};
 
arch/arm/boot/dts/imx28.dtsi +11 -0
index 7363fde..54bd17c 100644
@@ -731,6 +731,17 @@
 					fsl,pull-up = <0>;
 				};
 
+				usb0_pins_a: usb0 at 0 {
+					reg = <0>;
+					fsl,pinmux-ids = <
+						0x3071 /* MX28_PAD_AUART1_RTS__USB0_ID */
+					>;
+					fsl,drive-strength = <2>;
+					fsl,voltage = <1>;
+					fsl,pull-up = <1>;
+				};
+
+
 				usbphy1_pins_a: usbphy1 at 0 {
 					reg = <0>;
 					fsl,pinmux-ids = <
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 ARM: dts: imx28-evk: Add pinctrl for USB OTG ID pin

Dear Peter Chen,

Quoted 7 lines

After that, the dual-role switch can be used at imx28-evk.

Due to hardware limitations, it needs to switch VDD 5V SOURCE SELECT to "USB 5V" if the user wants to use OTG dual-role switch function. it needs to switch VDD 5V SOURCE SELECT to "WALL 5V" if the user wants to Host 1.

Quoted 5 lines
---
 arch/arm/boot/dts/imx28-evk.dts |    2 ++
 arch/arm/boot/dts/imx28.dtsi    |   11 +++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

Thanks.

Best regards,
Marek Vasut

reviewer
#2 lore raw

PATCH 1/1 ARM: dts: imx28-evk: Add pinctrl for USB OTG ID pin

In reply to Peter Chen

Hi Peter,

Quoted 8 lines · Peter Chen

After that, the dual-role switch can be used at imx28-evk.

Due to hardware limitations, it needs to switch VDD 5V SOURCE SELECT to "USB 5V" if the user wants to use OTG dual-role switch function. it needs to switch VDD 5V SOURCE SELECT to "WALL 5V" if the user wants to Host 1.

I have already sent this:
http://www.spinics.net/lists/arm-kernel/msg268746.html