ARM: dts: sun8i: a711: Enable USB OTG
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 24 Jul 2017 16:31:36 +0000 (18:31 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 2 Nov 2017 08:09:32 +0000 (09:09 +0100)
The TBS A711 has a micro-USB connector that can be used in OTG mode. Enable
it.

Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts

index 1dc935b..9871553 100644 (file)
        status = "okay";
 };
 
+&usb_otg {
+       dr_mode = "otg";
+       status = "okay";
+};
+
 &usbphy {
+       usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
+       usb0_vbus-supply = <&reg_drivevbus>;
        usb1_vbus_supply = <&reg_vmain>;
        usb2_vbus_supply = <&reg_vmain>;
        status = "okay";