arm64: dts: allwinner: a64: bananapi-m64: Enable PMIC USB power supply
authorChen-Yu Tsai <wens@csie.org>
Thu, 18 Apr 2019 16:18:04 +0000 (00:18 +0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 20 May 2019 07:40:16 +0000 (09:40 +0200)
The Bananapi M64 has a micro-USB connector with USB OTG support (that
is already enabled). VBUS from this connector is wired to the PMIC's
VBUS input.

Enable the PMIC's USB power supply on this board, and also hook it up
to the USB PHY.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts

index c2a6b73b17cfa51d0925d94617c4da7fb023a9b0..208373efee494d1a8258f12d7c6a7f4dd31b650a 100644 (file)
        status = "okay";
 };
 
+&usb_power_supply {
+       status = "okay";
+};
+
 &usbphy {
        usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
+       usb0_vbus_power-supply = <&usb_power_supply>;
        usb0_vbus-supply = <&reg_drivevbus>;
        status = "okay";
 };