@@ -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>;
};
@@ -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"
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(+)