Skip to contentSkip to conversation

ARM: mx5: dts: Enable USB OTG on M53EVK

PATCH New Marek Vasut 2 participants 4 messages Apr 19, 2016 – May 3, 2016

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

PATCH 1/1 ARM: mx5: dts: Enable USB OTG on M53EVK

Add USB OTG support to M53EVK instead of just USB gadget.

---
 arch/arm/boot/dts/imx53-m53evk.dts | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx53-m53evk.dts +20 -1
index 53f4088..dcee1e0f 100644
@@ -84,6 +84,15 @@
 			regulator-max-microvolt = <5000000>;
 			gpio = <&gpio1 2 0>;
 		};
+
+		reg_usb_otg_vbus: regulator at 4 {
+			compatible = "regulator-fixed";
+			reg = <4>;
+			regulator-name = "usb_otg_vbus";
+			regulator-min-microvolt = <5000000>;
+			regulator-max-microvolt = <5000000>;
+			gpio = <&gpio1 4 0>;
+		};
 	};
 
 	sound {
@@ -168,6 +177,12 @@
 			>;
 		};
 
+		pinctrl_usbotg: usbotggrp {
+			fsl,pins = <
+				MX53_PAD_GPIO_4__GPIO1_4		0x000b0
+			>;
+		};
+
 		led_pin_gpio: led_gpio at 0 {
 			fsl,pins = <
 				MX53_PAD_PATA_DATA8__GPIO2_8		0x80000000
@@ -351,6 +366,10 @@
 };
 
 &usbotg {
-	dr_mode = "peripheral";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usbotg>;
+	dr_mode = "otg";
+	vbus-supply = <&reg_usb_otg_vbus>;
+	disable-over-current;
 	status = "okay";
 };
Signature · 1 line
2.7.0
#1 lore raw

PATCH 1/1 ARM: mx5: dts: Enable USB OTG on M53EVK

Quoted 4 lines · Marek Vasut

Add USB OTG support to M53EVK instead of just USB gadget.

Bump ?

btw. Shawn, is the @k.org the address I should use now ?

Quoted 50 lines
---
 arch/arm/boot/dts/imx53-m53evk.dts | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx53-m53evk.dts +20 -1
index 53f4088..dcee1e0f 100644
@@ -84,6 +84,15 @@
 			regulator-max-microvolt = <5000000>;
 			gpio = <&gpio1 2 0>;
 		};
+
+		reg_usb_otg_vbus: regulator at 4 {
+			compatible = "regulator-fixed";
+			reg = <4>;
+			regulator-name = "usb_otg_vbus";
+			regulator-min-microvolt = <5000000>;
+			regulator-max-microvolt = <5000000>;
+			gpio = <&gpio1 4 0>;
+		};
 	};
 
 	sound {
@@ -168,6 +177,12 @@
 			>;
 		};
 
+		pinctrl_usbotg: usbotggrp {
+			fsl,pins = <
+				MX53_PAD_GPIO_4__GPIO1_4		0x000b0
+			>;
+		};
+
 		led_pin_gpio: led_gpio at 0 {
 			fsl,pins = <
 				MX53_PAD_PATA_DATA8__GPIO2_8		0x80000000
@@ -351,6 +366,10 @@
 };
 
 &usbotg {
-	dr_mode = "peripheral";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usbotg>;
+	dr_mode = "otg";
+	vbus-supply = <&reg_usb_otg_vbus>;
+	disable-over-current;
 	status = "okay";
 };
Signature · 2 lines
Best regards,
Marek Vasut
Applied
#2 lore raw

PATCH 1/1 ARM: mx5: dts: Enable USB OTG on M53EVK

Quoted 7 lines · Marek Vasut
Quoted 4 lines · Marek Vasut

Add USB OTG support to M53EVK instead of just USB gadget.

Bump ?

Applied, thanks.

Quoted 2 lines

btw. Shawn, is the @k.org the address I should use now ?

Yes.

Shawn

#3 lore raw

PATCH 1/1 ARM: mx5: dts: Enable USB OTG on M53EVK

Quoted 9 lines · Shawn Guo
Quoted 7 lines · Marek Vasut
Quoted 4 lines · Marek Vasut

Add USB OTG support to M53EVK instead of just USB gadget.

Bump ?

Quoted 9 lines

Applied, thanks.

Quoted 2 lines

btw. Shawn, is the @k.org the address I should use now ?

Yes.

Shawn

OK, will be careful next time. Thanks!

Signature · 2 lines
Best regards,
Marek Vasut