diff mbox

ARM: mx5: dts: Enable USB OTG on M53EVK

Message ID 1461105361-6742-1-git-send-email-marex@denx.de (mailing list archive)
State New, archived
Headers show

Commit Message

Marek Vasut April 19, 2016, 10:36 p.m. UTC
Add USB OTG support to M53EVK instead of just USB gadget.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Shawn Guo <shawn.guo@linaro.org>
---
 arch/arm/boot/dts/imx53-m53evk.dts | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

Comments

Marek Vasut May 3, 2016, 10:44 a.m. UTC | #1
On 04/20/2016 12:36 AM, Marek Vasut wrote:
> Add USB OTG support to M53EVK instead of just USB gadget.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Shawn Guo <shawn.guo@linaro.org>

Bump ?

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

> ---
>  arch/arm/boot/dts/imx53-m53evk.dts | 21 ++++++++++++++++++++-
>  1 file changed, 20 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/boot/dts/imx53-m53evk.dts b/arch/arm/boot/dts/imx53-m53evk.dts
> index 53f4088..dcee1e0f 100644
> --- a/arch/arm/boot/dts/imx53-m53evk.dts
> +++ b/arch/arm/boot/dts/imx53-m53evk.dts
> @@ -84,6 +84,15 @@
>  			regulator-max-microvolt = <5000000>;
>  			gpio = <&gpio1 2 0>;
>  		};
> +
> +		reg_usb_otg_vbus: regulator@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@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";
>  };
>
Shawn Guo May 3, 2016, 1:11 p.m. UTC | #2
On Tue, May 03, 2016 at 12:44:23PM +0200, Marek Vasut wrote:
> On 04/20/2016 12:36 AM, Marek Vasut wrote:
> > Add USB OTG support to M53EVK instead of just USB gadget.
> > 
> > Signed-off-by: Marek Vasut <marex@denx.de>
> > Cc: Shawn Guo <shawn.guo@linaro.org>
> 
> Bump ?

Applied, thanks.

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

Yes.

Shawn
Marek Vasut May 3, 2016, 1:14 p.m. UTC | #3
On 05/03/2016 03:11 PM, Shawn Guo wrote:
> On Tue, May 03, 2016 at 12:44:23PM +0200, Marek Vasut wrote:
>> On 04/20/2016 12:36 AM, Marek Vasut wrote:
>>> Add USB OTG support to M53EVK instead of just USB gadget.
>>>
>>> Signed-off-by: Marek Vasut <marex@denx.de>
>>> Cc: Shawn Guo <shawn.guo@linaro.org>
>>
>> Bump ?
> 
> Applied, thanks.
> 
>>
>> btw. Shawn, is the @k.org the address I should use now ?
> 
> Yes.
> 
> Shawn
> 
OK, will be careful next time. Thanks!
diff mbox

Patch

diff --git a/arch/arm/boot/dts/imx53-m53evk.dts b/arch/arm/boot/dts/imx53-m53evk.dts
index 53f4088..dcee1e0f 100644
--- a/arch/arm/boot/dts/imx53-m53evk.dts
+++ b/arch/arm/boot/dts/imx53-m53evk.dts
@@ -84,6 +84,15 @@ 
 			regulator-max-microvolt = <5000000>;
 			gpio = <&gpio1 2 0>;
 		};
+
+		reg_usb_otg_vbus: regulator@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@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";
 };