arm64: dts: allwinner: h6: orangepi: Disable OTG mode
authorJernej Skrabec <jernej.skrabec@siol.net>
Mon, 13 Apr 2020 06:24:32 +0000 (08:24 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 14 Apr 2020 07:33:23 +0000 (09:33 +0200)
As can be seen from OrangePi Lite 2 and One Plus schematics, VBUS pin on
USB OTG port is directly connected to 5 V power supply. This mean that
OTG port can safely operate only in host mode, even though these two
boards have ID pin connected.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi

index f1be3dd..ebc120a 100644 (file)
 };
 
 &usb2otg {
-       dr_mode = "otg";
+       /*
+        * OrangePi Lite 2 and One Plus, where this DT is used, don't
+        * have a controllable VBUS even though they do have an ID pin.
+        * Using it as anything but a USB host is unsafe.
+        */
+       dr_mode = "host";
        status = "okay";
 };