ARM: dts: imx6q-sabresd: Add USB support
authorPeter Chen <peter.chen@freescale.com>
Mon, 18 Feb 2013 02:06:44 +0000 (10:06 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 9 Apr 2013 14:52:49 +0000 (22:52 +0800)
Add USB support for imx6q sabresd board

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

index 2dea304..bafaccd 100644 (file)
                reg = <0x10000000 0x40000000>;
        };
 
+       regulators {
+               compatible = "simple-bus";
+
+               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;
+               };
+       };
+
        gpio-keys {
                compatible = "gpio-keys";
 
        };
 };
 
+&usbotg {
+       vbus-supply = <&reg_usb_otg_vbus>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usbotg_2>;
+       disable-over-current;
+       status = "okay";
+};
+
+&usbh1 {
+       status = "okay";
+};
+
 &fec {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet_1>;
index cba021e..0125250 100644 (file)
                                                        1592 0x17059    /* MX6Q_PAD_GPIO_1__ANATOP_USBOTG_ID */
                                                >;
                                        };
+
+                                       pinctrl_usbotg_2: usbotggrp-2 {
+                                       fsl,pins = <
+                                                       1591 0x17059    /* MX6Q_PAD_ENET_RX_ER__ANATOP_USBOTG_ID */
+                                               >;
+                                       };
                                };
 
                                usdhc2 {