ARM: dts: imx6q-sabrelite: add usb devices
authorRichard Zhao <richard.zhao@freescale.com>
Thu, 12 Jul 2012 06:21:41 +0000 (14:21 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Thu, 12 Jul 2012 06:54:35 +0000 (14:54 +0800)
- add usbphy devices
- add usb host controller and otg devices
- add usb h1 vbus regulator

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx6q-sabrelite.dts
arch/arm/boot/dts/imx6q.dtsi

index e0ec92973e7e7d253e560cb4f66fb72800be2ad9..46fdfd1d5cd12f2d1b4003497c38aa41594d3bf8 100644 (file)
                                };
                        };
 
+                       iomuxc@020e0000 {
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&pinctrl_gpio_hog>;
+
+                               gpios {
+                                       pinctrl_gpio_hog: gpiohog {
+                                               fsl,pins = <
+                                                          144  0x80000000      /* MX6Q_PAD_EIM_D22__GPIO_3_22 */
+                                                          >;
+                                       };
+                               };
+                       };
                };
 
                aips-bus@02100000 { /* AIPS2 */
+                       usb@02184000 { /* USB OTG */
+                               vbus-supply = <&reg_usb_otg_vbus>;
+                               status = "okay";
+                       };
+
+                       usb@02184200 { /* USB1 */
+                               status = "okay";
+                       };
+
                        ethernet@02188000 {
                                phy-mode = "rgmii";
                                phy-reset-gpios = <&gpio3 23 0>;
                        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;
+               };
        };
 
        sound {
index bf88fb77526a4bc073ea757ba9e01a7dc6b88ba9..693f31f206ddb355ee1673e8603546c1a2cd1610 100644 (file)
                                };
                        };
 
-                       usbphy@020c9000 { /* USBPHY1 */
+                       usbphy1: usbphy@020c9000 {
+                               compatible = "fsl,imx6q-usbphy", "fsl,imx23-usbphy";
                                reg = <0x020c9000 0x1000>;
                                interrupts = <0 44 0x04>;
                        };
 
-                       usbphy@020ca000 { /* USBPHY2 */
+                       usbphy2: usbphy@020ca000 {
+                               compatible = "fsl,imx6q-usbphy", "fsl,imx23-usbphy";
                                reg = <0x020ca000 0x1000>;
                                interrupts = <0 45 0x04>;
                        };
                                reg = <0x0217c000 0x4000>;
                        };
 
+                       usb@02184000 { /* USB OTG */
+                               compatible = "fsl,imx6q-usb", "fsl,imx27-usb";
+                               reg = <0x02184000 0x200>;
+                               interrupts = <0 43 0x04>;
+                               fsl,usbphy = <&usbphy1>;
+                               status = "disabled";
+                       };
+
+                       usb@02184200 { /* USB1 */
+                               compatible = "fsl,imx6q-usb", "fsl,imx27-usb";
+                               reg = <0x02184200 0x200>;
+                               interrupts = <0 40 0x04>;
+                               fsl,usbphy = <&usbphy2>;
+                               status = "disabled";
+                       };
+
+                       usb@02184400 { /* USB2 */
+                               compatible = "fsl,imx6q-usb", "fsl,imx27-usb";
+                               reg = <0x02184400 0x200>;
+                               interrupts = <0 41 0x04>;
+                               status = "disabled";
+                       };
+
+                       usb@02184600 { /* USB3 */
+                               compatible = "fsl,imx6q-usb", "fsl,imx27-usb";
+                               reg = <0x02184600 0x200>;
+                               interrupts = <0 42 0x04>;
+                               status = "disabled";
+                       };
+
                        ethernet@02188000 {
                                compatible = "fsl,imx6q-fec";
                                reg = <0x02188000 0x4000>;