aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-07-30 13:31:22 +0100
committerChen-Yu Tsai <wens@csie.org>2018-08-27 15:42:53 +0800
commit3131cfb68480aed0025ea5d3840f82d291144d79 (patch)
tree2da4012c07803b509f9d17bfda16dd2797d24549 /arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts
parent09b964afca14d0594b2b2f265df3d987e2f43867 (diff)
downloadlinux-3131cfb68480aed0025ea5d3840f82d291144d79.tar.gz
arm64: dts: allwinner: a64: Orange Pi Win: Enable USB hub regulator
The Orange Pi Win has four standard USB-A sockets, connected to an on-board USB hub. The hub's and socket's power regulators are enabled by GPIO PD7. Add the regulator to the DT to enable the power supply. Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts')
-rw-r--r--arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts
index 667016815cf3..a73489850d88 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts
@@ -57,6 +57,17 @@
chosen {
stdout-path = "serial0:115200n8";
};
+
+ reg_usb1_vbus: usb1-vbus {
+ compatible = "regulator-fixed";
+ regulator-name = "usb1-vbus";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ regulator-boot-on;
+ enable-active-high;
+ gpio = <&pio 3 7 GPIO_ACTIVE_HIGH>; /* PD7 */
+ status = "okay";
+ };
};
&ehci1 {
@@ -204,6 +215,7 @@
};
&usbphy {
+ usb1_vbus-supply = <&reg_usb1_vbus>;
status = "okay";
};