Skip to contentSkip to conversation

ARM: dts: dra7x-evm: Enable dual-role mode for USB1

PATCH In review Roger Quadros 2 participants 3 messages Apr 11, 2017 – May 16, 2017 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover ARM: dts: dra7x-evm: Enable dual-role mode for USB1

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(-)
Signature · 6 lines
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

PATCH 1/1 ARM: dts: dra7x-evm: Enable dual-role mode for USB1

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.

---
 arch/arm/boot/dts/dra7-evm.dts          | 3 ++-
 arch/arm/boot/dts/dra72-evm-common.dtsi | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
arch/arm/boot/dts/dra7-evm.dts +2 -1
index 4bc4b57..c408aaa 100644
@@ -527,7 +527,8 @@
 };
 
 &usb1 {
-	dr_mode = "peripheral";
+	dr_mode = "otg";
+	extcon = <&extcon_usb1>;
 };
 
 &usb2 {
arch/arm/boot/dts/dra72-evm-common.dtsi +2 -1
index ad24544..8578054 100644
@@ -392,7 +392,8 @@
 };
 
 &usb1 {
-	dr_mode = "peripheral";
+	dr_mode = "otg";
+	extcon = <&extcon_usb1>;
 };
 
 &usb2 {
Signature · 6 lines
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
Quoted 7 lines · Roger Quadros

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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html