ARM: dts: Add Vbus regulator for USB 3.0 on exynos5420-smdk5420
authorVivek Gautam <gautam.vivek@samsung.com>
Mon, 19 May 2014 13:30:48 +0000 (22:30 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Mon, 19 May 2014 14:14:01 +0000 (23:14 +0900)
Add required fixed-regulator for VBUS supply for USB 3.0
controller phy.

Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/boot/dts/exynos5420-smdk5420.dts

index 69104850eb5ec172b6dcc5bd5256b0f759202abf..6053c9f5afcb4c31e34581e240180a7478aa3a56 100644 (file)
                };
        };
 
+       pinctrl@14000000 {
+               usb300_vbus_en: usb300-vbus-en {
+                       samsung,pins = "gpg0-5";
+                       samsung,pin-function = <1>;
+                       samsung,pin-pud = <0>;
+                       samsung,pin-drv = <0>;
+               };
+
+               usb301_vbus_en: usb301-vbus-en {
+                       samsung,pins = "gpg1-4";
+                       samsung,pin-function = <1>;
+                       samsung,pin-pud = <0>;
+                       samsung,pin-drv = <0>;
+               };
+       };
+
        hdmi@14530000 {
                status = "okay";
                hpd-gpio = <&gpx3 7 0>;
                pinctrl-0 = <&hdmi_hpd_irq>;
        };
 
+       usb300_vbus_reg: regulator-usb300 {
+               compatible = "regulator-fixed";
+               regulator-name = "VBUS0";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&gpg0 5 0>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&usb300_vbus_en>;
+               enable-active-high;
+       };
+
+       usb301_vbus_reg: regulator-usb301 {
+               compatible = "regulator-fixed";
+               regulator-name = "VBUS1";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&gpg1 4 0>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&usb301_vbus_en>;
+               enable-active-high;
+       };
+
+       phy@12100000 {
+               vbus-supply = <&usb300_vbus_reg>;
+       };
+
+       phy@12500000 {
+               vbus-supply = <&usb301_vbus_reg>;
+       };
+
        i2c_2: i2c@12C80000 {
                samsung,i2c-sda-delay = <100>;
                samsung,i2c-max-bus-freq = <66000>;