linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] ARM: dts: dra7x-evm: Enable dual-role mode for USB1
@ 2017-04-11 13:16 Roger Quadros
  2017-04-11 13:16 ` [PATCH 1/1] " Roger Quadros
  0 siblings, 1 reply; 3+ messages in thread
From: Roger Quadros @ 2017-04-11 13:16 UTC (permalink / raw)
  To: tony; +Cc: linux-omap, devicetree, linux-kernel, Roger Quadros

Hi Tony,

Dual role support for DWC3 is now in usb/next. With this patch we can
utilize dual-role mode on dra7x boards. Please queue for -next. Thanks.

cheers,
-roger

Roger Quadros (1):
  ARM: dts: dra7x-evm: Enable dual-role mode for USB1

 arch/arm/boot/dts/dra7-evm.dts          | 3 ++-
 arch/arm/boot/dts/dra72-evm-common.dtsi | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

-- 
2.7.4

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

* [PATCH 1/1] ARM: dts: dra7x-evm: Enable dual-role mode for USB1
  2017-04-11 13:16 [PATCH 0/1] ARM: dts: dra7x-evm: Enable dual-role mode for USB1 Roger Quadros
@ 2017-04-11 13:16 ` Roger Quadros
  2017-05-16 16:24   ` Tony Lindgren
  0 siblings, 1 reply; 3+ messages in thread
From: Roger Quadros @ 2017-04-11 13:16 UTC (permalink / raw)
  To: tony; +Cc: linux-omap, devicetree, linux-kernel, Roger Quadros, Sekhar Nori

USB1 port is micro-AB type and can function as peripheral
as well as host. Enable dual-role mode for USB1.

We don't want to use the OTG controller block on this
platform as it limits host mode to high-speed. Instead
we rely on extcon framework to give us ID events for
dual-role mode detection.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
---
 arch/arm/boot/dts/dra7-evm.dts          | 3 ++-
 arch/arm/boot/dts/dra72-evm-common.dtsi | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts
index 4bc4b57..c408aaa 100644
--- a/arch/arm/boot/dts/dra7-evm.dts
+++ b/arch/arm/boot/dts/dra7-evm.dts
@@ -527,7 +527,8 @@
 };
 
 &usb1 {
-	dr_mode = "peripheral";
+	dr_mode = "otg";
+	extcon = <&extcon_usb1>;
 };
 
 &usb2 {
diff --git a/arch/arm/boot/dts/dra72-evm-common.dtsi b/arch/arm/boot/dts/dra72-evm-common.dtsi
index ad24544..8578054 100644
--- a/arch/arm/boot/dts/dra72-evm-common.dtsi
+++ b/arch/arm/boot/dts/dra72-evm-common.dtsi
@@ -392,7 +392,8 @@
 };
 
 &usb1 {
-	dr_mode = "peripheral";
+	dr_mode = "otg";
+	extcon = <&extcon_usb1>;
 };
 
 &usb2 {
-- 
2.7.4

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

* Re: [PATCH 1/1] ARM: dts: dra7x-evm: Enable dual-role mode for USB1
  2017-04-11 13:16 ` [PATCH 1/1] " Roger Quadros
@ 2017-05-16 16:24   ` Tony Lindgren
  0 siblings, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2017-05-16 16:24 UTC (permalink / raw)
  To: Roger Quadros; +Cc: linux-omap, devicetree, linux-kernel, Sekhar Nori

* Roger Quadros <rogerq@ti.com> [170411 06:19]:
> USB1 port is micro-AB type and can function as peripheral
> as well as host. Enable dual-role mode for USB1.
> 
> We don't want to use the OTG controller block on this
> platform as it limits host mode to high-speed. Instead
> we rely on extcon framework to give us ID events for
> dual-role mode detection.

Applying into omap-for-v4.13/dt thanks.

Tony

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

end of thread, other threads:[~2017-05-16 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 13:16 [PATCH 0/1] ARM: dts: dra7x-evm: Enable dual-role mode for USB1 Roger Quadros
2017-04-11 13:16 ` [PATCH 1/1] " Roger Quadros
2017-05-16 16:24   ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).