]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: allwinner: a64: Orange Pi Win: Enable USB hub regulator
authorSamuel Holland <samuel@sholland.org>
Mon, 30 Jul 2018 12:31:22 +0000 (13:31 +0100)
committerChen-Yu Tsai <wens@csie.org>
Mon, 27 Aug 2018 07:42:53 +0000 (15:42 +0800)
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>
arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts

index 667016815cf32081d44efb139f5f1c8e94bbefd6..a73489850d88c3c37c03abea397c1cb53247a795 100644 (file)
        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 {
 };
 
 &usbphy {
+       usb1_vbus-supply = <&reg_usb1_vbus>;
        status = "okay";
 };