Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3131cfb6 authored by Samuel Holland's avatar Samuel Holland Committed by Chen-Yu Tsai
Browse files

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: default avatarSamuel Holland <samuel@sholland.org>
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
Acked-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 09b964af
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -57,6 +57,17 @@
	chosen {
	chosen {
		stdout-path = "serial0:115200n8";
		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 {
&ehci1 {
@@ -204,6 +215,7 @@
};
};


&usbphy {
&usbphy {
	usb1_vbus-supply = <&reg_usb1_vbus>;
	status = "okay";
	status = "okay";
};
};