ARM: dts: imx27-phytec-phycore-rdk: Add USBH2 node
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 22 Feb 2014 09:32:34 +0000 (13:32 +0400)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 24 Feb 2014 03:05:05 +0000 (11:05 +0800)
This patch adds USBH2 devicetree node of Phytec PCM970 RDK.
Additionally, adds fixed regulator to provide functionality
without dummy-regulator in the kernel.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi

index 9a0754300685b3f0fb42bf26b1fe7f5d6d5119d0..df3b2e7318358e6dc65cdee4459f4714873bc301 100644 (file)
                        >;
                };
 
+               pinctrl_usbh2: usbh2grp {
+                       fsl,pins = <
+                               MX27_PAD_USBH2_CLK__USBH2_CLK 0x0
+                               MX27_PAD_USBH2_DIR__USBH2_DIR 0x0
+                               MX27_PAD_USBH2_NXT__USBH2_NXT 0x0
+                               MX27_PAD_USBH2_STP__USBH2_STP 0x0
+                               MX27_PAD_CSPI2_SCLK__USBH2_DATA0 0x0
+                               MX27_PAD_CSPI2_MOSI__USBH2_DATA1 0x0
+                               MX27_PAD_CSPI2_MISO__USBH2_DATA2 0x0
+                               MX27_PAD_CSPI2_SS1__USBH2_DATA3 0x0
+                               MX27_PAD_CSPI2_SS2__USBH2_DATA4 0x0
+                               MX27_PAD_CSPI1_SS2__USBH2_DATA5 0x0
+                               MX27_PAD_CSPI2_SS0__USBH2_DATA6 0x0
+                               MX27_PAD_USBH2_DATA7__USBH2_DATA7 0x0
+                       >;
+               };
+
                pinctrl_weim: weimgrp {
                        fsl,pins = <
                                MX27_PAD_CS4_B__CS4_B           0x0 /* CS4 */
        status = "okay";
 };
 
+&usbh2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usbh2>;
+       dr_mode = "host";
+       phy_type = "ulpi";
+       vbus-supply = <&reg_5v0>;
+       disable-over-current;
+       status = "okay";
+};
+
+&usbphy2 {
+       vcc-supply = <&reg_5v0>;
+};
+
 &weim {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_weim>;
index 258eafa722c197277f16ec8cda88bd942b427964..05b0ecd348e0d0601cea6a074269cec54fc27800 100644 (file)
                        regulator-min-microvolt = <3300000>;
                        regulator-max-microvolt = <3300000>;
                };
+
+               reg_5v0: regulator@1 {
+                       compatible = "regulator-fixed";
+                       reg = <1>;
+                       regulator-name = "5V0";
+                       regulator-min-microvolt = <5000000>;
+                       regulator-max-microvolt = <5000000>;
+               };
        };
 };