diff mbox

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

Message ID 1418299367-2412-4-git-send-email-gautam.vivek@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Vivek Gautam Dec. 11, 2014, 12:02 p.m. UTC
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@samsung.com>
---
 arch/arm/boot/dts/exynos5250-smdk5250.dts |   22 ++++++++++++++++++++++
 arch/arm/boot/dts/exynos5250-snow.dts     |   22 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)
diff mbox

Patch

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"