summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2019-04-16 14:40:24 +0800
committerMaxime Ripard <maxime.ripard@bootlin.com>2019-04-18 17:49:43 +0200
commit6e0c67e34ffced703abb573d6266104b08bc95d4 (patch)
tree8d4cc5fd09c9f25b8f638ae1e5391ff45ae1f00a /arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
parent6cb6cfd61ec55690497115b9c08d30ff3c40e74a (diff)
ARM: dts: sun8i: a83t: Enable USB OTG controller on some boards
The Bananapi M3 and Cubietruck Plus both have USB OTG ports wired to the SoC and PMIC in the same way, with the N_VBUSEN pin on the PMIC controlling VBUS output, the PMIC's VBUS input for sensing VBUS, and PH11 on the SoC for sensing the ID pin. Enable OTG on both boards. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts')
-rw-r--r--arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
index 838be7b3715f..9d34eabba121 100644
--- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
@@ -389,7 +389,19 @@
};
};
+&usb_otg {
+ dr_mode = "otg";
+ status = "okay";
+};
+
+&usb_power_supply {
+ status = "okay";
+};
+
&usbphy {
+ usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
+ usb0_vbus_power-supply = <&usb_power_supply>;
+ usb0_vbus-supply = <&reg_drivevbus>;
usb1_vbus-supply = <&reg_usb1_vbus>;
status = "okay";
};