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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2019 08:53:17 +0000 (09:53 +0100)
[ Upstream commit 656c1a65ab555ee5c7cd0d6aee8ab82ca3c1795f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/boot/dts/omap5-board-common.dtsi

index 4caadb25324977e67c40d4ebde2929cd6782cbf8..3e9e3d90f2b4fe538beb39d3d93ca0a3a180de43 100644 (file)
        vbus-supply = <&smps10_out1_reg>;
 };
 
+&dwc3 {
+       dr_mode = "otg";
+};
+
 &mcspi1 {
 
 };