]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: omap5: enable OTG role for DWC3 controller
authorH. Nikolaus Schaller <hns@goldelico.com>
Fri, 28 Sep 2018 15:54:00 +0000 (17:54 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 28 Sep 2018 17:33:30 +0000 (10:33 -0700)
Since SMPS10 and OTG cable detection extcon are described here, and
work to enable OTG power when an OTG cable is plugged in, we can
define OTG mode in the controller (which is disabled by default in
omap5.dtsi).

Tested on OMAP5EVM and Pyra.

Suggested-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap5-board-common.dtsi

index ab6f640b282bfc903f115bdb56796447b862b8f8..bf7ca00f4c214af57787e0c31332388f0c576115 100644 (file)
@@ -700,6 +700,10 @@ &usb3 {
        vbus-supply = <&smps10_out1_reg>;
 };
 
+&dwc3 {
+       dr_mode = "otg";
+};
+
 &mcspi1 {
 
 };