]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: imx6q-arm2: enable USB OTG
authorPeter Chen <peter.chen@freescale.com>
Mon, 28 Oct 2013 06:05:02 +0000 (14:05 +0800)
committerPeter Chen <peter.chen@freescale.com>
Wed, 6 Nov 2013 03:05:00 +0000 (11:05 +0800)
Enable USB OTG controller at imx6q-arm2 board

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx6q-arm2.dts

index e3509421bbe7f0493608b230d2867a234084e254..e6ad9546e852b9cfb39223568ffc80d60c03e031 100644 (file)
                        regulator-max-microvolt = <3300000>;
                        regulator-always-on;
                };
+
+               reg_usb_otg_vbus: usb_otg_vbus {
+                       compatible = "regulator-fixed";
+                       regulator-name = "usb_otg_vbus";
+                       regulator-min-microvolt = <5000000>;
+                       regulator-max-microvolt = <5000000>;
+                       gpio = <&gpio3 22 0>;
+                       enable-active-high;
+               };
        };
 
        leds {
        status = "okay";
 };
 
+&usbotg {
+       vbus-supply = <&reg_usb_otg_vbus>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usbotg_1>;
+       disable-over-current;
+       status = "okay";
+};
+
 &usdhc3 {
        cd-gpios = <&gpio6 11 0>;
        wp-gpios = <&gpio6 14 0>;