* [PATCH] ARM: dts: keystone: specify usb mode explicitly
@ 2016-06-28 9:42 Grygorii Strashko
[not found] ` <20160628094245.9521-1-grygorii.strashko-l0cyMroinI0@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Grygorii Strashko @ 2016-06-28 9:42 UTC (permalink / raw)
To: Santosh Shilimkar
Cc: devicetree, Grygorii Strashko, Sekhar Nori, Rob Herring,
linux-arm-kernel, Roger Quadros
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 <nsekhar@ti.com>
Cc: Roger Quadros <rogerq@ti.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
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(-)
diff --git a/arch/arm/boot/dts/keystone-k2e-evm.dts b/arch/arm/boot/dts/keystone-k2e-evm.dts
index 4c32ebc..ae1ebe7 100644
--- a/arch/arm/boot/dts/keystone-k2e-evm.dts
+++ b/arch/arm/boot/dts/keystone-k2e-evm.dts
@@ -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@50 {
compatible = "at,24c1024";
diff --git a/arch/arm/boot/dts/keystone-k2e.dtsi b/arch/arm/boot/dts/keystone-k2e.dtsi
index 96b349f..3540a1d 100644
--- a/arch/arm/boot/dts/keystone-k2e.dtsi
+++ b/arch/arm/boot/dts/keystone-k2e.dtsi
@@ -61,7 +61,7 @@
status = "disabled";
};
- usb1: usb@25000000 {
+ keystone_usb1: usb@25000000 {
compatible = "ti,keystone-dwc3";
#address-cells = <1>;
#size-cells = <1>;
@@ -74,7 +74,7 @@
dma-ranges;
status = "disabled";
- dwc3@25010000 {
+ usb1: dwc3@25010000 {
compatible = "synopsys,dwc3";
reg = <0x25010000 0x70000>;
interrupts = <GIC_SPI 414 IRQ_TYPE_EDGE_RISING>;
diff --git a/arch/arm/boot/dts/keystone-k2hk-evm.dts b/arch/arm/boot/dts/keystone-k2hk-evm.dts
index b38b344..2156ff9 100644
--- a/arch/arm/boot/dts/keystone-k2hk-evm.dts
+++ b/arch/arm/boot/dts/keystone-k2hk-evm.dts
@@ -83,10 +83,14 @@
status = "okay";
};
-&usb {
+&keystone_usb0 {
status = "okay";
};
+&usb0 {
+ dr_mode = "host";
+};
+
&aemif {
cs0 {
#address-cells = <2>;
diff --git a/arch/arm/boot/dts/keystone-k2l-evm.dts b/arch/arm/boot/dts/keystone-k2l-evm.dts
index 7f9c2e9..056b42f 100644
--- a/arch/arm/boot/dts/keystone-k2l-evm.dts
+++ b/arch/arm/boot/dts/keystone-k2l-evm.dts
@@ -32,10 +32,14 @@
status = "okay";
};
-&usb {
+&keystone_usb0 {
status = "okay";
};
+&usb0 {
+ dr_mode = "host";
+};
+
&i2c0 {
dtt@50 {
compatible = "at,24c1024";
diff --git a/arch/arm/boot/dts/keystone.dtsi b/arch/arm/boot/dts/keystone.dtsi
index e34b226..96c9943 100644
--- a/arch/arm/boot/dts/keystone.dtsi
+++ b/arch/arm/boot/dts/keystone.dtsi
@@ -188,7 +188,7 @@
status = "disabled";
};
- usb: usb@2680000 {
+ keystone_usb0: usb@2680000 {
compatible = "ti,keystone-dwc3";
#address-cells = <1>;
#size-cells = <1>;
@@ -201,7 +201,7 @@
dma-ranges;
status = "disabled";
- dwc3@2690000 {
+ usb0: dwc3@2690000 {
compatible = "synopsys,dwc3";
reg = <0x2690000 0x70000>;
interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
--
2.9.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: dts: keystone: specify usb mode explicitly
[not found] ` <20160628094245.9521-1-grygorii.strashko-l0cyMroinI0@public.gmane.org>
@ 2016-07-18 17:45 ` Grygorii Strashko
2016-07-18 17:49 ` Santosh Shilimkar
0 siblings, 1 reply; 5+ messages in thread
From: Grygorii Strashko @ 2016-07-18 17:45 UTC (permalink / raw)
To: Santosh Shilimkar
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
Sekhar Nori, Roger Quadros
Hi Santosh,
On 06/28/2016 12:42 PM, Grygorii Strashko wrote:
> 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 <nsekhar-l0cyMroinI0@public.gmane.org>
> Cc: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org>
> Signed-off-by: Grygorii Strashko <grygorii.strashko-l0cyMroinI0@public.gmane.org>
Do you expect any additional actions from my side relate to this patch?
> ---
> 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(-)
>
> diff --git a/arch/arm/boot/dts/keystone-k2e-evm.dts b/arch/arm/boot/dts/keystone-k2e-evm.dts
> index 4c32ebc..ae1ebe7 100644
> --- a/arch/arm/boot/dts/keystone-k2e-evm.dts
> +++ b/arch/arm/boot/dts/keystone-k2e-evm.dts
> @@ -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@50 {
> compatible = "at,24c1024";
> diff --git a/arch/arm/boot/dts/keystone-k2e.dtsi b/arch/arm/boot/dts/keystone-k2e.dtsi
> index 96b349f..3540a1d 100644
> --- a/arch/arm/boot/dts/keystone-k2e.dtsi
> +++ b/arch/arm/boot/dts/keystone-k2e.dtsi
> @@ -61,7 +61,7 @@
> status = "disabled";
> };
>
> - usb1: usb@25000000 {
> + keystone_usb1: usb@25000000 {
> compatible = "ti,keystone-dwc3";
> #address-cells = <1>;
> #size-cells = <1>;
> @@ -74,7 +74,7 @@
> dma-ranges;
> status = "disabled";
>
> - dwc3@25010000 {
> + usb1: dwc3@25010000 {
> compatible = "synopsys,dwc3";
> reg = <0x25010000 0x70000>;
> interrupts = <GIC_SPI 414 IRQ_TYPE_EDGE_RISING>;
> diff --git a/arch/arm/boot/dts/keystone-k2hk-evm.dts b/arch/arm/boot/dts/keystone-k2hk-evm.dts
> index b38b344..2156ff9 100644
> --- a/arch/arm/boot/dts/keystone-k2hk-evm.dts
> +++ b/arch/arm/boot/dts/keystone-k2hk-evm.dts
> @@ -83,10 +83,14 @@
> status = "okay";
> };
>
> -&usb {
> +&keystone_usb0 {
> status = "okay";
> };
>
> +&usb0 {
> + dr_mode = "host";
> +};
> +
> &aemif {
> cs0 {
> #address-cells = <2>;
> diff --git a/arch/arm/boot/dts/keystone-k2l-evm.dts b/arch/arm/boot/dts/keystone-k2l-evm.dts
> index 7f9c2e9..056b42f 100644
> --- a/arch/arm/boot/dts/keystone-k2l-evm.dts
> +++ b/arch/arm/boot/dts/keystone-k2l-evm.dts
> @@ -32,10 +32,14 @@
> status = "okay";
> };
>
> -&usb {
> +&keystone_usb0 {
> status = "okay";
> };
>
> +&usb0 {
> + dr_mode = "host";
> +};
> +
> &i2c0 {
> dtt@50 {
> compatible = "at,24c1024";
> diff --git a/arch/arm/boot/dts/keystone.dtsi b/arch/arm/boot/dts/keystone.dtsi
> index e34b226..96c9943 100644
> --- a/arch/arm/boot/dts/keystone.dtsi
> +++ b/arch/arm/boot/dts/keystone.dtsi
> @@ -188,7 +188,7 @@
> status = "disabled";
> };
>
> - usb: usb@2680000 {
> + keystone_usb0: usb@2680000 {
> compatible = "ti,keystone-dwc3";
> #address-cells = <1>;
> #size-cells = <1>;
> @@ -201,7 +201,7 @@
> dma-ranges;
> status = "disabled";
>
> - dwc3@2690000 {
> + usb0: dwc3@2690000 {
> compatible = "synopsys,dwc3";
> reg = <0x2690000 0x70000>;
> interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
>
--
regards,
-grygorii
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: dts: keystone: specify usb mode explicitly
2016-07-18 17:45 ` Grygorii Strashko
@ 2016-07-18 17:49 ` Santosh Shilimkar
2016-08-25 14:11 ` Grygorii Strashko
0 siblings, 1 reply; 5+ messages in thread
From: Santosh Shilimkar @ 2016-07-18 17:49 UTC (permalink / raw)
To: Grygorii Strashko, Santosh Shilimkar
Cc: devicetree, Rob Herring, Sekhar Nori, linux-arm-kernel,
Roger Quadros
On 7/18/2016 10:45 AM, Grygorii Strashko wrote:
> Hi Santosh,
> On 06/28/2016 12:42 PM, Grygorii Strashko wrote:
>> 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 <nsekhar@ti.com>
>> Cc: Roger Quadros <rogerq@ti.com>
>> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: dts: keystone: specify usb mode explicitly
2016-07-18 17:49 ` Santosh Shilimkar
@ 2016-08-25 14:11 ` Grygorii Strashko
2016-08-25 16:31 ` Santosh Shilimkar
0 siblings, 1 reply; 5+ messages in thread
From: Grygorii Strashko @ 2016-08-25 14:11 UTC (permalink / raw)
To: Santosh Shilimkar, Santosh Shilimkar
Cc: devicetree, Rob Herring, Sekhar Nori, linux-arm-kernel,
Roger Quadros
Hi Santosh,
On 07/18/2016 08:49 PM, Santosh Shilimkar wrote:
> On 7/18/2016 10:45 AM, Grygorii Strashko wrote:
>> Hi Santosh,
>> On 06/28/2016 12:42 PM, Grygorii Strashko wrote:
>>> 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 <nsekhar@ti.com>
>>> Cc: Roger Quadros <rogerq@ti.com>
>>> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
>>
>> 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)
--
regards,
-grygorii
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: dts: keystone: specify usb mode explicitly
2016-08-25 14:11 ` Grygorii Strashko
@ 2016-08-25 16:31 ` Santosh Shilimkar
0 siblings, 0 replies; 5+ messages in thread
From: Santosh Shilimkar @ 2016-08-25 16:31 UTC (permalink / raw)
To: Grygorii Strashko, Santosh Shilimkar
Cc: devicetree, Rob Herring, Sekhar Nori, linux-arm-kernel,
Roger Quadros
On 8/25/2016 7:11 AM, Grygorii Strashko wrote:
> Hi Santosh,
>
> On 07/18/2016 08:49 PM, Santosh Shilimkar wrote:
>> On 7/18/2016 10:45 AM, Grygorii Strashko wrote:
>>> Hi Santosh,
>>> On 06/28/2016 12:42 PM, Grygorii Strashko wrote:
>>>> 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 <nsekhar@ti.com>
>>>> Cc: Roger Quadros <rogerq@ti.com>
>>>> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
>>>
>>> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-08-25 16:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-28 9:42 [PATCH] ARM: dts: keystone: specify usb mode explicitly Grygorii Strashko
[not found] ` <20160628094245.9521-1-grygorii.strashko-l0cyMroinI0@public.gmane.org>
2016-07-18 17:45 ` Grygorii Strashko
2016-07-18 17:49 ` Santosh Shilimkar
2016-08-25 14:11 ` Grygorii Strashko
2016-08-25 16:31 ` Santosh Shilimkar
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).