aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2019-04-18 12:18:04 -0400
committerMaxime Ripard <maxime.ripard@bootlin.com>2019-05-20 03:40:16 -0400
commitcc072fb6df848e2c957cf31427c4ca5cb4c38f7e (patch)
tree54ebcfc58ac12f92adda97b953fedfe3f6b5f554
parentd7274dc4b8c7ecc61e529679dfd03d0c03629eaf (diff)
arm64: dts: allwinner: a64: bananapi-m64: Enable PMIC USB power supply
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>
-rw-r--r--arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
index c2a6b73b17cf..208373efee49 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
@@ -392,8 +392,13 @@
392 status = "okay"; 392 status = "okay";
393}; 393};
394 394
395&usb_power_supply {
396 status = "okay";
397};
398
395&usbphy { 399&usbphy {
396 usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */ 400 usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
401 usb0_vbus_power-supply = <&usb_power_supply>;
397 usb0_vbus-supply = <&reg_drivevbus>; 402 usb0_vbus-supply = <&reg_drivevbus>;
398 status = "okay"; 403 status = "okay";
399}; 404};