diff mbox

[v2,2/2] ARM: dts: sun8i: a711: Enable USB OTG

Message ID 819a4ac0ceae513a5ba0df8fa0a3516edfcaa144.1508790064.git-series.maxime.ripard@free-electrons.com (mailing list archive)
State New, archived
Headers show

Commit Message

Maxime Ripard Oct. 23, 2017, 8:21 p.m. UTC
The TBS A711 has a micro-USB connector that can be used in OTG mode. Enable
it.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Chen-Yu Tsai Oct. 25, 2017, 7:17 a.m. UTC | #1
On Tue, Oct 24, 2017 at 4:21 AM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:
> The TBS A711 has a micro-USB connector that can be used in OTG mode. Enable
> it.
>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Acked-by: Chen-Yu Tsai <wens@csie.org>
diff mbox

Patch

diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
index 786937a3af78..94fb01564304 100644
--- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
@@ -337,7 +337,14 @@ 
 	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";