Skip to content

Commit 3131cfb

Browse files
smaeulwens
authored andcommitted
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>
1 parent 09b964a commit 3131cfb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@
5757
chosen {
5858
stdout-path = "serial0:115200n8";
5959
};
60+
61+
reg_usb1_vbus: usb1-vbus {
62+
compatible = "regulator-fixed";
63+
regulator-name = "usb1-vbus";
64+
regulator-min-microvolt = <5000000>;
65+
regulator-max-microvolt = <5000000>;
66+
regulator-boot-on;
67+
enable-active-high;
68+
gpio = <&pio 3 7 GPIO_ACTIVE_HIGH>; /* PD7 */
69+
status = "okay";
70+
};
6071
};
6172

6273
&ehci1 {
@@ -204,6 +215,7 @@
204215
};
205216

206217
&usbphy {
218+
usb1_vbus-supply = <&reg_usb1_vbus>;
207219
status = "okay";
208220
};
209221

0 commit comments

Comments
 (0)