Adding fixed voltage regulators for Vbus and Vbus-boost required
by USB 3.0 DRD controller on Exynos7-espresso board.

Signed-off-by: Vivek Gautam <gautam.vi...@samsung.com>
---
 arch/arm64/boot/dts/exynos/exynos7-espresso.dts |   43 +++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts 
b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts
index 5424cc4..2dedd5e 100644
--- a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts
+++ b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts
@@ -30,6 +30,28 @@
                device_type = "memory";
                reg = <0x0 0x40000000 0x0 0xC0000000>;
        };
+
+       usb30_vbus_reg: regulator-usb30 {
+               compatible = "regulator-fixed";
+               regulator-name = "VBUS_5V";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&gph1 1 0>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&usb30_vbus_en>;
+               enable-active-high;
+       };
+
+       usb3drd_vboost_5v: regulator-usb3drd-vboost {
+               compatible = "regulator-fixed";
+               regulator-name = "VUSB_VBUS_5V";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&gpf4 1 0>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&usb3drd_vboost_en>;
+               enable-active-high;
+       };
 };
 
 &fin_pll {
@@ -40,6 +62,22 @@
        status = "okay";
 };
 
+&pinctrl_bus1 {
+       usb30_vbus_en: usb30-vbus-en {
+               samsung,pins = "gph1-1";
+               samsung,pin-function = <1>;
+               samsung,pin-pud = <0>;
+               samsung,pin-drv = <0>;
+       };
+
+       usb3drd_vboost_en: usb3drd-vboost-en {
+               samsung,pins = "gpf4-1";
+               samsung,pin-function = <1>;
+               samsung,pin-pud = <0>;
+               samsung,pin-drv = <0>;
+       };
+};
+
 &rtc {
        status = "okay";
 };
@@ -82,3 +120,8 @@
        bus-width = <4>;
        disable-wp;
 };
+
+&usbdrd_phy {
+       vbus-supply = <&usb30_vbus_reg>;
+       vbus-boost-supply = <&usb3drd_vboost_5v>;
+};
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to