]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: sun6i: sina31s: Enable USB OTG controller in peripheral mode
authorChen-Yu Tsai <wens@csie.org>
Wed, 18 Jan 2017 01:01:05 +0000 (09:01 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 18 Jan 2017 07:10:44 +0000 (08:10 +0100)
While the SinA31s does have a proper 5-pin mini USB OTG port, the ID
pin does not seem to work. The pin used in the schematics is always low,
regardless of the attached OTG cable or SoC internal pin bias settings.

The v1.5 board is missing bias resistors shown in the schematics for
earlier revisions, and the connections of the remaining one does not
match the schematics either.

In addition, VBUS for this port is disconnected from the board's 5V
power rail. The board features a pad to solder jumper pins to connect
VBUS to 5V manually.

Given the above and the fact that the board has 5 more USB host ports,
it makes more sense to have the OTG port work in peripheral mode.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun6i-a31s-sina31s.dts

index 8743aeed127521a0e6e7a5cdd909591cca5ac09f..7ff68bdd71098afcbc65f713b457d5e9b9744eed 100644 (file)
        regulator-name = "vcc-gmac-phy";
 };
 
+&usb_otg {
+       dr_mode = "peripheral";
+       status = "okay";
+};
+
 &usbphy {
        status = "okay";
 };