All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: DTS: OMAP5: enable OTG role for DWC3 controller
@ 2018-09-28 15:54 H. Nikolaus Schaller
  2018-09-28 17:34 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: H. Nikolaus Schaller @ 2018-09-28 15:54 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren, Rob Herring, Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, kernel, letux-kernel,
	H. Nikolaus Schaller

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>
---
 arch/arm/boot/dts/omap5-board-common.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi b/arch/arm/boot/dts/omap5-board-common.dtsi
index da5d9a86a1f1..ce524f239e84 100644
--- a/arch/arm/boot/dts/omap5-board-common.dtsi
+++ b/arch/arm/boot/dts/omap5-board-common.dtsi
@@ -708,6 +708,10 @@
 	vbus-supply = <&smps10_out1_reg>;
 };
 
+&dwc3 {
+	dr_mode = "otg";
+};
+
 &mcspi1 {
 
 };
-- 
2.12.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: DTS: OMAP5: enable OTG role for DWC3 controller
  2018-09-28 15:54 [PATCH] ARM: DTS: OMAP5: enable OTG role for DWC3 controller H. Nikolaus Schaller
@ 2018-09-28 17:34 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2018-09-28 17:34 UTC (permalink / raw)
  To: H. Nikolaus Schaller
  Cc: Benoît Cousson, Rob Herring, Mark Rutland, linux-omap,
	devicetree, linux-kernel, kernel, letux-kernel

* H. Nikolaus Schaller <hns@goldelico.com> [180928 08:58]:
> 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>

Thanks applying into omap-for-v4.20/dt.

Regards,

Tony

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-28 17:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-28 15:54 [PATCH] ARM: DTS: OMAP5: enable OTG role for DWC3 controller H. Nikolaus Schaller
2018-09-28 17:34 ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.