ARM: mx5: dts: Enable USB OTG on M53EVK
authorMarek Vasut <marex@denx.de>
Tue, 19 Apr 2016 22:36:01 +0000 (00:36 +0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 3 May 2016 13:10:11 +0000 (21:10 +0800)
Add USB OTG support to M53EVK instead of just USB gadget.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx53-m53evk.dts

index 53f40885c530637c1776dc6172764cf6669f918d..dcee1e0f968fced3944ee2b6693bf22c61449ec0 100644 (file)
                        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 {
                        >;
                };
 
+               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
 };
 
 &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";
 };
This page took 0.027414 seconds and 5 git commands to generate.