[PATCH 3/4] arm: dts: exynos5250: Use regulator for USB 2.0 VBUS supply

From: Vivek Gautam
Date: Thu Dec 11 2014 - 07:12:51 EST


Start using VBUS regulator for USB 2.0 phy, so that we can
remove the gpio property from host's node later.

Signed-off-by: Vivek Gautam <gautam.vivek@xxxxxxxxxxx>
---
arch/arm/boot/dts/exynos5250-smdk5250.dts | 22 ++++++++++++++++++++++
arch/arm/boot/dts/exynos5250-snow.dts | 22 ++++++++++++++++++++++
2 files changed, 44 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts
index a759100..85e74df 100644
--- a/arch/arm/boot/dts/exynos5250-smdk5250.dts
+++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts
@@ -361,6 +361,17 @@
samsung,audio-codec = <&wm8994>;
};

+ usb2_vbus_reg: regulator-usb2 {
+ compatible = "regulator-fixed";
+ regulator-name = "P5.0V_USB2";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&gpx2 6 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb2_vbus_en>;
+ enable-active-high;
+ };
+
usb@12110000 {
samsung,vbus-gpio = <&gpx2 6 0>;
};
@@ -418,4 +429,15 @@
samsung,pin-pud = <0>;
samsung,pin-drv = <0>;
};
+
+ usb2_vbus_en: usb2-vbus-en {
+ samsung,pins = "gpx2-6";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <0>;
+ samsung,pin-drv = <0>;
+ };
+};
+
+&usb2_phy_gen {
+ vbus-supply = <&usb2_vbus_reg>;
};
diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts
index 60429ad..8085750 100644
--- a/arch/arm/boot/dts/exynos5250-snow.dts
+++ b/arch/arm/boot/dts/exynos5250-snow.dts
@@ -285,6 +285,17 @@
vbus-supply = <&usb3_vbus_reg>;
};

+ usb2_vbus_reg: regulator-usb2 {
+ compatible = "regulator-fixed";
+ regulator-name = "P5.0V_USB2";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&gpx1 1 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb2_vbus_en>;
+ enable-active-high;
+ };
+
usb@12110000 {
samsung,vbus-gpio = <&gpx1 1 0>;
};
@@ -616,6 +627,13 @@
samsung,pin-pud = <0>;
samsung,pin-drv = <0>;
};
+
+ usb2_vbus_en: usb2-vbus-en {
+ samsung,pins = "gpx1-1";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <0>;
+ samsung,pin-drv = <0>;
+ };
};

&spi_1 {
@@ -628,4 +646,8 @@
dr_mode = "host";
};

+&usb2_phy_gen {
+ vbus-supply = <&usb2_vbus_reg>;
+};
+
#include "cros-ec-keyboard.dtsi"
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/