ARM: dts: keystone: specify usb mode explicitly
PATCH 1/1 ARM: dts: keystone: specify usb mode explicitly
The USB OTG mode is not supported by Kestone 2 devices, as result, the USB devices enumeration and detection will not work properly when kernel is built with CONFIG_USB_DWC3_DUAL_ROLE=y (default for multi platform build):
- it's required to load gadget drivers manually to make host mode
work and this confuses current Keystone 2 users
- device mode is not working, because port can't detect and switch to
peripheral/host mode dynamically.
Hence, specify usb mode explicitly in DT: usb0 = "host" for all KS2 devices and usb1 = "peripheral" for K2E.
--- arch/arm/boot/dts/keystone-k2e-evm.dts | 12 ++++++++++-- arch/arm/boot/dts/keystone-k2e.dtsi | 4 ++-- arch/arm/boot/dts/keystone-k2hk-evm.dts | 6 +++++- arch/arm/boot/dts/keystone-k2l-evm.dts | 6 +++++- arch/arm/boot/dts/keystone.dtsi | 4 ++-- 5 files changed, 24 insertions(+), 8 deletions(-)
arch/arm/boot/dts/keystone-k2e-evm.dts +10 -2
@@ -47,18 +47,26 @@ status = "okay"; }; -&usb { +&keystone_usb0 { status = "okay"; }; +&usb0 { + dr_mode = "host"; +}; + &usb1_phy { status = "okay"; }; -&usb1 { +&keystone_usb1 { status = "okay"; }; +&usb1 { + dr_mode = "peripheral"; +}; + &i2c0 { dtt at 50 { compatible = "at,24c1024";
arch/arm/boot/dts/keystone-k2e.dtsi +2 -2
@@ -61,7 +61,7 @@ status = "disabled"; }; - usb1: usb at 25000000 { + keystone_usb1: usb at 25000000 { compatible = "ti,keystone-dwc3"; #address-cells = <1>; #size-cells = <1>;
@@ -74,7 +74,7 @@ dma-ranges; status = "disabled"; - dwc3 at 25010000 { + usb1: dwc3 at 25010000 { compatible = "synopsys,dwc3"; reg = <0x25010000 0x70000>; interrupts = <GIC_SPI 414 IRQ_TYPE_EDGE_RISING>;
arch/arm/boot/dts/keystone-k2hk-evm.dts +5 -1
@@ -83,10 +83,14 @@ status = "okay"; }; -&usb { +&keystone_usb0 { status = "okay"; }; +&usb0 { + dr_mode = "host"; +}; + &aemif { cs0 { #address-cells = <2>;
arch/arm/boot/dts/keystone-k2l-evm.dts +5 -1
@@ -32,10 +32,14 @@ status = "okay"; }; -&usb { +&keystone_usb0 { status = "okay"; }; +&usb0 { + dr_mode = "host"; +}; + &i2c0 { dtt at 50 { compatible = "at,24c1024";
arch/arm/boot/dts/keystone.dtsi +2 -2
@@ -188,7 +188,7 @@ status = "disabled"; }; - usb: usb at 2680000 { + keystone_usb0: usb at 2680000 { compatible = "ti,keystone-dwc3"; #address-cells = <1>; #size-cells = <1>;
@@ -201,7 +201,7 @@ dma-ranges; status = "disabled"; - dwc3 at 2690000 { + usb0: dwc3 at 2690000 { compatible = "synopsys,dwc3"; reg = <0x2690000 0x70000>; interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
Signature · 1 line
2.9.0
PATCH 1/1 ARM: dts: keystone: specify usb mode explicitly
Hi Santosh,
Quoted 9 lines · Grygorii Strashko
The USB OTG mode is not supported by Kestone 2 devices, as result, the USB devices enumeration and detection will not work properly when kernel is built with
CONFIG_USB_DWC3_DUAL_ROLE=y(default for multi platform build):
- it's required to load gadget drivers manually to make host mode
work and this confuses current Keystone 2 users
- device mode is not working, because port can't detect and switch to
peripheral/host mode dynamically.
Quoted 6 lines
Hence, specify usb mode explicitly in DT: usb0 = "host" for all KS2 devices and usb1 = "peripheral" for K2E.
Cc Sekhar Nori <[email protected]>Cc Roger Quadros <[email protected]>Signed-off-by Grygorii Strashko <[email protected]>
Do you expect any additional actions from my side relate to this patch?
Quoted 126 lines
--- arch/arm/boot/dts/keystone-k2e-evm.dts | 12 ++++++++++-- arch/arm/boot/dts/keystone-k2e.dtsi | 4 ++-- arch/arm/boot/dts/keystone-k2hk-evm.dts | 6 +++++- arch/arm/boot/dts/keystone-k2l-evm.dts | 6 +++++- arch/arm/boot/dts/keystone.dtsi | 4 ++-- 5 files changed, 24 insertions(+), 8 deletions(-)arch/arm/boot/dts/keystone-k2e-evm.dts +10
-2@@ -47,18 +47,26 @@ status = "okay"; }; -&usb { +&keystone_usb0 { status = "okay"; }; +&usb0 { + dr_mode = "host"; +}; + &usb1_phy { status = "okay"; }; -&usb1 { +&keystone_usb1 { status = "okay"; }; +&usb1 { + dr_mode = "peripheral"; +}; + &i2c0 { dtt at 50 { compatible = "at,24c1024";arch/arm/boot/dts/keystone-k2e.dtsi +2
-2@@ -61,7 +61,7 @@ status = "disabled"; }; - usb1: usb at 25000000 { + keystone_usb1: usb at 25000000 { compatible = "ti,keystone-dwc3"; #address-cells = <1>; #size-cells = <1>;@@ -74,7 +74,7 @@ dma-ranges; status = "disabled"; - dwc3 at 25010000 { + usb1: dwc3 at 25010000 { compatible = "synopsys,dwc3"; reg = <0x25010000 0x70000>; interrupts = <GIC_SPI 414 IRQ_TYPE_EDGE_RISING>;arch/arm/boot/dts/keystone-k2hk-evm.dts +5
-1@@ -83,10 +83,14 @@ status = "okay"; }; -&usb { +&keystone_usb0 { status = "okay"; }; +&usb0 { + dr_mode = "host"; +}; + &aemif { cs0 { #address-cells = <2>;arch/arm/boot/dts/keystone-k2l-evm.dts +5
-1@@ -32,10 +32,14 @@ status = "okay"; }; -&usb { +&keystone_usb0 { status = "okay"; }; +&usb0 { + dr_mode = "host"; +}; + &i2c0 { dtt at 50 { compatible = "at,24c1024";arch/arm/boot/dts/keystone.dtsi +2
-2@@ -188,7 +188,7 @@ status = "disabled"; }; - usb: usb at 2680000 { + keystone_usb0: usb at 2680000 { compatible = "ti,keystone-dwc3"; #address-cells = <1>; #size-cells = <1>;@@ -201,7 +201,7 @@ dma-ranges; status = "disabled"; - dwc3 at 2690000 { + usb0: dwc3 at 2690000 { compatible = "synopsys,dwc3"; reg = <0x2690000 0x70000>; interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
Signature · 2 lines
regards, -grygorii
PATCH 1/1 ARM: dts: keystone: specify usb mode explicitly
Quoted 11 lines · Grygorii Strashko
Hi Santosh,
Quoted 9 lines · Grygorii Strashko
The USB OTG mode is not supported by Kestone 2 devices, as result, the USB devices enumeration and detection will not work properly when kernel is built with
CONFIG_USB_DWC3_DUAL_ROLE=y(default for multi platform build):
- it's required to load gadget drivers manually to make host mode
work and this confuses current Keystone 2 users
- device mode is not working, because port can't detect and switch to
peripheral/host mode dynamically.
Quoted 9 lines
Quoted 6 lines
Hence, specify usb mode explicitly in DT: usb0 = "host" for all KS2 devices and usb1 = "peripheral" for K2E.
Cc Sekhar Nori <[email protected]>Cc Roger Quadros <[email protected]>Signed-off-by Grygorii Strashko <[email protected]>Do you expect any additional actions from my side relate to this patch?
Nope. I will pick this up though it has to wait for next merge window now.
Regards,
Santosh
PATCH 1/1 ARM: dts: keystone: specify usb mode explicitly
Hi Santosh,
Quoted 15 lines · Santosh Shilimkar
Quoted 14 lines · Grygorii Strashko
Hi Santosh,
Quoted 12 lines · Grygorii Strashko
The USB OTG mode is not supported by Kestone 2 devices, as result, the USB devices enumeration and detection will not work properly when kernel is built with
CONFIG_USB_DWC3_DUAL_ROLE=y(default for multi platform build):
- it's required to load gadget drivers manually to make host mode
work and this confuses current Keystone 2 users
- device mode is not working, because port can't detect and switch to
peripheral/host mode dynamically.Hence, specify usb mode explicitly in DT: usb0 = "host" for all KS2 devices and usb1 = "peripheral" for K2E.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Cc Sekhar Nori <[email protected]>Cc Roger Quadros <[email protected]>Signed-off-by Grygorii Strashko <[email protected]>Do you expect any additional actions from my side relate to this patch?
Nope. I will pick this up though it has to wait for next merge window now.
I'd like to remind you about this patch.
Would you like me to resend it ?
(I've checked - it can be applied as is on top master and next/master without issues)
Signature · 2 lines
regards, -grygorii
PATCH 1/1 ARM: dts: keystone: specify usb mode explicitly
Quoted 22 lines · Grygorii Strashko
Hi Santosh,
Quoted 19 lines · Santosh Shilimkar
Quoted 18 lines · Grygorii Strashko
Hi Santosh,
Quoted 15 lines · Grygorii Strashko
The USB OTG mode is not supported by Kestone 2 devices, as result, the USB devices enumeration and detection will not work properly when kernel is built with
CONFIG_USB_DWC3_DUAL_ROLE=y(default for multi platform build):
- it's required to load gadget drivers manually to make host mode
work and this confuses current Keystone 2 users
- device mode is not working, because port can't detect and switch to
peripheral/host mode dynamically.Hence, specify usb mode explicitly in DT: usb0 = "host" for all KS2 devices and usb1 = "peripheral" for K2E.
Cc Sekhar Nori <[email protected]>Cc Roger Quadros <[email protected]>Signed-off-by Grygorii Strashko <[email protected]>
Quoted 9 lines
Quoted 4 lines
Quoted 2 lines
Do you expect any additional actions from my side relate to this patch?
Nope. I will pick this up though it has to wait for next merge window now.
I'd like to remind you about this patch.
Would you like me to resend it ?
(I've checked - it can be applied as is on top master and next/master without issues)
Merge window has a time ;-)
No need to re-send. As I mentioned, will pick it up.