]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: sun8i: sina33: Enable USB gadget
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 4 Nov 2016 14:44:39 +0000 (15:44 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 22 Nov 2016 14:34:06 +0000 (15:34 +0100)
The micro-USB on the SinA33 has a somewhat interesting design in the sense
that it has a micro USB connector, but the VBUS is (supposed to be)
controlled through an (unpopulated) jumper.

Obviously, that doesn't work really well, and only the peripheral mode
really works. Still enable it.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts

index fef6abc0a7038001180f8f5bfa3d5afcfdbd3c10..71bb9418c5f9734c502db2408ac3d8d95fad8381 100644 (file)
@@ -213,6 +213,11 @@ &uart0 {
        status = "okay";
 };
 
+&usb_otg {
+       dr_mode = "peripheral";
+       status = "okay";
+};
+
 &usbphy {
        status = "okay";
        usb1_vbus-supply = <&reg_vcc5v0>; /* USB1 VBUS is always on */