[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <1418299367-2412-4-git-send-email-gautam.vivek@samsung.com>
Date: Thu, 11 Dec 2014 17:32:46 +0530
From: Vivek Gautam <gautam.vivek@...sung.com>
To: linux-kernel@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
linux-usb@...r.kernel.org, devicetree@...r.kernel.org
Cc: robh+dt@...nel.org, kishon@...com, k.debski@...sung.com,
kgene@...nel.org, jg1.han@...sung.com,
Vivek Gautam <gautam.vivek@...sung.com>
Subject: [PATCH 3/4] arm: dts: exynos5250: Use regulator for USB 2.0 VBUS supply
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@...sung.com>
---
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@...10000 {
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@...10000 {
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists