devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version
       [not found] ` <1408612727-6774-1-git-send-email-nikhil.badola-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
@ 2014-08-21 22:22   ` Scott Wood
       [not found]     ` <1408659774.2395.21.camel-88ow+0ZRuxG2UiBs7uKeOtHuzzzSOjJt@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Scott Wood @ 2014-08-21 22:22 UTC (permalink / raw)
  To: Nikhil Badola
  Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ,
	devicetree-u79uwXL29TY76Z2rM5mHXA

On Thu, 2014-08-21 at 14:48 +0530, Nikhil Badola wrote:
> Document compatible string containing IP version in USB device tree node
> 
> Signed-off-by: Nikhil Badola <nikhil.badola-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
> ---
>  Documentation/devicetree/bindings/usb/fsl-usb.txt | 13 ++++++++-----
>  1 file changed, 8 insertions(+), 5 deletions(-)

Please CC devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org on all device tree patches (in
addition to linuxppc-dev).

> 
> diff --git a/Documentation/devicetree/bindings/usb/fsl-usb.txt b/Documentation/devicetree/bindings/usb/fsl-usb.txt
> index 4779c02..5a3a0a8 100644
> --- a/Documentation/devicetree/bindings/usb/fsl-usb.txt
> +++ b/Documentation/devicetree/bindings/usb/fsl-usb.txt
> @@ -10,7 +10,10 @@ Required properties :
>     controllers, or "fsl-usb2-dr" for dual role USB controllers
>     or "fsl,mpc5121-usb2-dr" for dual role USB controllers of MPC5121.
>     Wherever applicable, the IP version of the USB controller should
> -   also be mentioned (for eg. fsl-usb2-dr-v2.2 for bsc9132).
> +   also be mentioned in another string.
> +   For multi port host USB controller with IP version <IP_Ver>, it should be
> +   "fsl-usb2-mph-<IP_Ver>". For dual role USB controller with IP version
> +   <IP_Ver>, it should be "fsl-usb2-dr-<IP_Ver>".

It was documented before -- this is just making it more explicit, right?

FWIW, the version number can be read out of a USB register, so I'd
rather remove the suggestion to specify the version number and replace
it with a reference to the ID register.

>   - phy_type : For multi port host USB controllers, should be one of
>     "ulpi", or "serial". For dual role USB controllers, should be
>     one of "ulpi", "utmi", "utmi_wide", or "serial".
> @@ -42,9 +45,9 @@ Optional properties :
>   - fsl,invert-pwr-fault : boolean; for MPC5121 USB0 only. Indicates
>     the PWR_FAULT signal polarity is inverted.
>  
> -Example multi port host USB controller device node :
> +Example multi port host USB controller version 2.5 device node :
>  	usb@22000 {
> -		compatible = "fsl-usb2-mph";
> +		compatible = "fsl-usb2-mph-v2.5", "fsl-usb2-mph";
>  		reg = <22000 1000>;
>  		#address-cells = <1>;
>  		#size-cells = <0>;
> @@ -55,9 +58,9 @@ Example multi port host USB controller device node :
>  		port1;
>  	};
>  
> -Example dual role USB controller device node :
> +Example dual role USB controller version 2.5 device node :
>  	usb@23000 {
> -		compatible = "fsl-usb2-dr";
> +		compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
>  		reg = <23000 1000>;
>  		#address-cells = <1>;
>  		#size-cells = <0>;

This example doesn't correspond to any device tree I see.  Even after
your next patch that sets t2080's USB to v2.5, the addresses are
different.

Also, if you're going to update the example, please also update it to be
modern in other respects, such as using 0x for hex numbers (outside the
unit address).

-Scott


--
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] 6+ messages in thread

* RE: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version
       [not found]     ` <1408659774.2395.21.camel-88ow+0ZRuxG2UiBs7uKeOtHuzzzSOjJt@public.gmane.org>
@ 2014-08-22  4:48       ` nikhil.badola-KZfg59tc24xl57MIdRCFDg
       [not found]         ` <af7cc70458bf471cb20938ce6498ccfe-RQSpjbwlmjRJV8q+uXLxw5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: nikhil.badola-KZfg59tc24xl57MIdRCFDg @ 2014-08-22  4:48 UTC (permalink / raw)
  To: Scott Wood
  Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Ramneek Mehresh

Adding Ramneek

> -----Original Message-----
> From: Wood Scott-B07421
> Sent: Friday, August 22, 2014 3:53 AM
> To: Badola Nikhil-B46172
> Cc: linuxppc-dev@lists.ozlabs.org; devicetree@vger.kernel.org
> Subject: Re: [PATCH] Documentation: dts: fsl-usb: Document USB node
> compatible string for IP version
> 
> On Thu, 2014-08-21 at 14:48 +0530, Nikhil Badola wrote:
> > Document compatible string containing IP version in USB device tree
> > node
> >
> > Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
> > ---
> >  Documentation/devicetree/bindings/usb/fsl-usb.txt | 13 ++++++++-----
> >  1 file changed, 8 insertions(+), 5 deletions(-)
> 
> Please CC devicetree@vger.kernel.org on all device tree patches (in addition to
> linuxppc-dev).
> 
> >
> > diff --git a/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > b/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > index 4779c02..5a3a0a8 100644
> > --- a/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > +++ b/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > @@ -10,7 +10,10 @@ Required properties :
> >     controllers, or "fsl-usb2-dr" for dual role USB controllers
> >     or "fsl,mpc5121-usb2-dr" for dual role USB controllers of MPC5121.
> >     Wherever applicable, the IP version of the USB controller should
> > -   also be mentioned (for eg. fsl-usb2-dr-v2.2 for bsc9132).
> > +   also be mentioned in another string.
> > +   For multi port host USB controller with IP version <IP_Ver>, it should be
> > +   "fsl-usb2-mph-<IP_Ver>". For dual role USB controller with IP version
> > +   <IP_Ver>, it should be "fsl-usb2-dr-<IP_Ver>".
> 
> It was documented before -- this is just making it more explicit, right?
> 
> FWIW, the version number can be read out of a USB register, so I'd rather
> remove the suggestion to specify the version number and replace it with a
> reference to the ID register.
> 
> >   - phy_type : For multi port host USB controllers, should be one of
> >     "ulpi", or "serial". For dual role USB controllers, should be
> >     one of "ulpi", "utmi", "utmi_wide", or "serial".
> > @@ -42,9 +45,9 @@ Optional properties :
> >   - fsl,invert-pwr-fault : boolean; for MPC5121 USB0 only. Indicates
> >     the PWR_FAULT signal polarity is inverted.
> >
> > -Example multi port host USB controller device node :
> > +Example multi port host USB controller version 2.5 device node :
> >  	usb@22000 {
> > -		compatible = "fsl-usb2-mph";
> > +		compatible = "fsl-usb2-mph-v2.5", "fsl-usb2-mph";
> >  		reg = <22000 1000>;
> >  		#address-cells = <1>;
> >  		#size-cells = <0>;
> > @@ -55,9 +58,9 @@ Example multi port host USB controller device node :
> >  		port1;
> >  	};
> >
> > -Example dual role USB controller device node :
> > +Example dual role USB controller version 2.5 device node :
> >  	usb@23000 {
> > -		compatible = "fsl-usb2-dr";
> > +		compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
> >  		reg = <23000 1000>;
> >  		#address-cells = <1>;
> >  		#size-cells = <0>;
> 
> This example doesn't correspond to any device tree I see.  Even after your next
> patch that sets t2080's USB to v2.5, the addresses are different.
> 
> Also, if you're going to update the example, please also update it to be modern
> in other respects, such as using 0x for hex numbers (outside the unit address).
> 
> -Scott
> 


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

* RE: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version
       [not found]         ` <af7cc70458bf471cb20938ce6498ccfe-RQSpjbwlmjRJV8q+uXLxw5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
@ 2014-08-22  5:05           ` Ramneek Mehresh
       [not found]             ` <3fdd7732a9954d13a90ece684771d932-AZ66ij2kwaabJzs9G/iQcuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Ramneek Mehresh @ 2014-08-22  5:05 UTC (permalink / raw)
  To: nikhil.badola-KZfg59tc24xl57MIdRCFDg@public.gmane.org, Scott Wood
  Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org



-----Original Message-----
From: Badola Nikhil-B46172 
Sent: Friday, August 22, 2014 10:18 AM
To: Wood Scott-B07421
Cc: linuxppc-dev@lists.ozlabs.org; devicetree@vger.kernel.org; Mehresh Ramneek-B31383
Subject: RE: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version

Adding Ramneek

> -----Original Message-----
> From: Wood Scott-B07421
> Sent: Friday, August 22, 2014 3:53 AM
> To: Badola Nikhil-B46172
> Cc: linuxppc-dev@lists.ozlabs.org; devicetree@vger.kernel.org
> Subject: Re: [PATCH] Documentation: dts: fsl-usb: Document USB node 
> compatible string for IP version
> 
> On Thu, 2014-08-21 at 14:48 +0530, Nikhil Badola wrote:
> > Document compatible string containing IP version in USB device tree 
> > node
> >
> > Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
> > ---
> >  Documentation/devicetree/bindings/usb/fsl-usb.txt | 13 
> > ++++++++-----
> >  1 file changed, 8 insertions(+), 5 deletions(-)
> 
> Please CC devicetree@vger.kernel.org on all device tree patches (in 
> addition to linuxppc-dev).
> 
> >
> > diff --git a/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > b/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > index 4779c02..5a3a0a8 100644
> > --- a/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > +++ b/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > @@ -10,7 +10,10 @@ Required properties :
> >     controllers, or "fsl-usb2-dr" for dual role USB controllers
> >     or "fsl,mpc5121-usb2-dr" for dual role USB controllers of MPC5121.
> >     Wherever applicable, the IP version of the USB controller should
> > -   also be mentioned (for eg. fsl-usb2-dr-v2.2 for bsc9132).
> > +   also be mentioned in another string.
> > +   For multi port host USB controller with IP version <IP_Ver>, it should be
> > +   "fsl-usb2-mph-<IP_Ver>". For dual role USB controller with IP version
> > +   <IP_Ver>, it should be "fsl-usb2-dr-<IP_Ver>".
> 
> It was documented before -- this is just making it more explicit, right?
> 
> FWIW, the version number can be read out of a USB register, so I'd 
> rather remove the suggestion to specify the version number and replace 
> it with a reference to the ID register.
we have following two issues -
(a) our USBIP version register doesn't have consistent "version field size" over 
multiple version(s). This is why we couldn't use it for reading version info across
various IP versions
(b) this register is not exposed in all SoC RMs (probably because of above reason)
> 
> >   - phy_type : For multi port host USB controllers, should be one of
> >     "ulpi", or "serial". For dual role USB controllers, should be
> >     one of "ulpi", "utmi", "utmi_wide", or "serial".
> > @@ -42,9 +45,9 @@ Optional properties :
> >   - fsl,invert-pwr-fault : boolean; for MPC5121 USB0 only. Indicates
> >     the PWR_FAULT signal polarity is inverted.
> >
> > -Example multi port host USB controller device node :
> > +Example multi port host USB controller version 2.5 device node :
> >  	usb@22000 {
> > -		compatible = "fsl-usb2-mph";
> > +		compatible = "fsl-usb2-mph-v2.5", "fsl-usb2-mph";
> >  		reg = <22000 1000>;
> >  		#address-cells = <1>;
> >  		#size-cells = <0>;
> > @@ -55,9 +58,9 @@ Example multi port host USB controller device node :
> >  		port1;
> >  	};
> >
> > -Example dual role USB controller device node :
> > +Example dual role USB controller version 2.5 device node :
> >  	usb@23000 {
> > -		compatible = "fsl-usb2-dr";
> > +		compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
> >  		reg = <23000 1000>;
> >  		#address-cells = <1>;
> >  		#size-cells = <0>;
> 
> This example doesn't correspond to any device tree I see.  Even after 
> your next patch that sets t2080's USB to v2.5, the addresses are different.
> 
I reckon that the example emphasizes on showing how IP version information is
to be stored in "compatible string". Is it necessary to make sure that we should 
always site actual values already used?
> Also, if you're going to update the example, please also update it to 
> be modern in other respects, such as using 0x for hex numbers (outside the unit address).
> 
> -Scott
> 


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

* Re: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version
       [not found]             ` <3fdd7732a9954d13a90ece684771d932-AZ66ij2kwaabJzs9G/iQcuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
@ 2014-08-26 22:53               ` Scott Wood
       [not found]                 ` <1409093581.6510.94.camel-88ow+0ZRuxG2UiBs7uKeOtHuzzzSOjJt@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Scott Wood @ 2014-08-26 22:53 UTC (permalink / raw)
  To: Mehresh Ramneek-B31383
  Cc: Badola Nikhil-B46172,
	linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Fri, 2014-08-22 at 00:05 -0500, Mehresh Ramneek-B31383 wrote:
> 
> -----Original Message-----
> From: Badola Nikhil-B46172 
> Sent: Friday, August 22, 2014 10:18 AM
> To: Wood Scott-B07421
> Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org; devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Mehresh Ramneek-B31383
> Subject: RE: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version
> 
> Adding Ramneek
> 
> > -----Original Message-----
> > From: Wood Scott-B07421
> > Sent: Friday, August 22, 2014 3:53 AM
> > To: Badola Nikhil-B46172
> > Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org; devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> > Subject: Re: [PATCH] Documentation: dts: fsl-usb: Document USB node 
> > compatible string for IP version
> > 
> > On Thu, 2014-08-21 at 14:48 +0530, Nikhil Badola wrote:
> > > Document compatible string containing IP version in USB device tree 
> > > node
> > >
> > > Signed-off-by: Nikhil Badola <nikhil.badola-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
> > > ---
> > >  Documentation/devicetree/bindings/usb/fsl-usb.txt | 13 
> > > ++++++++-----
> > >  1 file changed, 8 insertions(+), 5 deletions(-)
> > 
> > Please CC devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org on all device tree patches (in 
> > addition to linuxppc-dev).
> > 
> > >
> > > diff --git a/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > > b/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > > index 4779c02..5a3a0a8 100644
> > > --- a/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > > +++ b/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > > @@ -10,7 +10,10 @@ Required properties :
> > >     controllers, or "fsl-usb2-dr" for dual role USB controllers
> > >     or "fsl,mpc5121-usb2-dr" for dual role USB controllers of MPC5121.
> > >     Wherever applicable, the IP version of the USB controller should
> > > -   also be mentioned (for eg. fsl-usb2-dr-v2.2 for bsc9132).
> > > +   also be mentioned in another string.
> > > +   For multi port host USB controller with IP version <IP_Ver>, it should be
> > > +   "fsl-usb2-mph-<IP_Ver>". For dual role USB controller with IP version
> > > +   <IP_Ver>, it should be "fsl-usb2-dr-<IP_Ver>".
> > 
> > It was documented before -- this is just making it more explicit, right?
> > 
> > FWIW, the version number can be read out of a USB register, so I'd 
> > rather remove the suggestion to specify the version number and replace 
> > it with a reference to the ID register.
> we have following two issues -
> (a) our USBIP version register doesn't have consistent "version field size" over 
> multiple version(s). This is why we couldn't use it for reading version info across
> various IP versions
> (b) this register is not exposed in all SoC RMs (probably because of above reason)

:-(

If this is just a problem with older chips, we could have a new
compatible name that designates the family of USB block versions with a
sane version register.

> > > @@ -55,9 +58,9 @@ Example multi port host USB controller device node :
> > >  		port1;
> > >  	};
> > >
> > > -Example dual role USB controller device node :
> > > +Example dual role USB controller version 2.5 device node :
> > >  	usb@23000 {
> > > -		compatible = "fsl-usb2-dr";
> > > +		compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
> > >  		reg = <23000 1000>;
> > >  		#address-cells = <1>;
> > >  		#size-cells = <0>;
> > 
> > This example doesn't correspond to any device tree I see.  Even after 
> > your next patch that sets t2080's USB to v2.5, the addresses are different.
> > 
> I reckon that the example emphasizes on showing how IP version information is
> to be stored in "compatible string". Is it necessary to make sure that we should 
> always site actual values already used?

The more realistic the examples are, the better.

-Scott


--
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] 6+ messages in thread

* RE: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version
       [not found]                 ` <1409093581.6510.94.camel-88ow+0ZRuxG2UiBs7uKeOtHuzzzSOjJt@public.gmane.org>
@ 2014-08-27  5:46                   ` Ramneek Mehresh
       [not found]                     ` <7032a06004444bc3af8d71c799e974e0-AZ66ij2kwaabJzs9G/iQcuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Ramneek Mehresh @ 2014-08-27  5:46 UTC (permalink / raw)
  To: Scott Wood
  Cc: nikhil.badola-KZfg59tc24xl57MIdRCFDg@public.gmane.org,
	linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 4868 bytes --]



> -----Original Message-----
> From: Wood Scott-B07421
> Sent: Wednesday, August 27, 2014 4:23 AM
> To: Mehresh Ramneek-B31383
> Cc: Badola Nikhil-B46172; linuxppc-dev@lists.ozlabs.org;
> devicetree@vger.kernel.org
> Subject: Re: [PATCH] Documentation: dts: fsl-usb: Document USB node
> compatible string for IP version
> 
> On Fri, 2014-08-22 at 00:05 -0500, Mehresh Ramneek-B31383 wrote:
> >
> > -----Original Message-----
> > From: Badola Nikhil-B46172
> > Sent: Friday, August 22, 2014 10:18 AM
> > To: Wood Scott-B07421
> > Cc: linuxppc-dev@lists.ozlabs.org; devicetree@vger.kernel.org; Mehresh
> > Ramneek-B31383
> > Subject: RE: [PATCH] Documentation: dts: fsl-usb: Document USB node
> > compatible string for IP version
> >
> > Adding Ramneek
> >
> > > -----Original Message-----
> > > From: Wood Scott-B07421
> > > Sent: Friday, August 22, 2014 3:53 AM
> > > To: Badola Nikhil-B46172
> > > Cc: linuxppc-dev@lists.ozlabs.org; devicetree@vger.kernel.org
> > > Subject: Re: [PATCH] Documentation: dts: fsl-usb: Document USB node
> > > compatible string for IP version
> > >
> > > On Thu, 2014-08-21 at 14:48 +0530, Nikhil Badola wrote:
> > > > Document compatible string containing IP version in USB device
> > > > tree node
> > > >
> > > > Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
> > > > ---
> > > >  Documentation/devicetree/bindings/usb/fsl-usb.txt | 13
> > > > ++++++++-----
> > > >  1 file changed, 8 insertions(+), 5 deletions(-)
> > >
> > > Please CC devicetree@vger.kernel.org on all device tree patches (in
> > > addition to linuxppc-dev).
> > >
> > > >
> > > > diff --git a/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > > > b/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > > > index 4779c02..5a3a0a8 100644
> > > > --- a/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > > > +++ b/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > > > @@ -10,7 +10,10 @@ Required properties :
> > > >     controllers, or "fsl-usb2-dr" for dual role USB controllers
> > > >     or "fsl,mpc5121-usb2-dr" for dual role USB controllers of MPC5121.
> > > >     Wherever applicable, the IP version of the USB controller should
> > > > -   also be mentioned (for eg. fsl-usb2-dr-v2.2 for bsc9132).
> > > > +   also be mentioned in another string.
> > > > +   For multi port host USB controller with IP version <IP_Ver>, it should
> be
> > > > +   "fsl-usb2-mph-<IP_Ver>". For dual role USB controller with IP version
> > > > +   <IP_Ver>, it should be "fsl-usb2-dr-<IP_Ver>".
> > >
> > > It was documented before -- this is just making it more explicit, right?
> > >
> > > FWIW, the version number can be read out of a USB register, so I'd
> > > rather remove the suggestion to specify the version number and
> > > replace it with a reference to the ID register.
> > we have following two issues -
> > (a) our USBIP version register doesn't have consistent "version field
> > size" over multiple version(s). This is why we couldn't use it for
> > reading version info across various IP versions
> > (b) this register is not exposed in all SoC RMs (probably because of
> > above reason)
> 
> :-(
> 
> If this is just a problem with older chips, we could have a new compatible name
> that designates the family of USB block versions with a sane version register.
> 
we could have done...but we have a requirement to write version specific code...
for instance, usb controller init sequence has changes from version 2.5 onwards...
then there are version specific errata fixe(s) also. Hence we decided to go for
compatible string containing hw ip version (major no.) so that our workaround/code is
consistent with hw ip version(s) published in errata(s)
 
> > > > @@ -55,9 +58,9 @@ Example multi port host USB controller device node :
> > > >  		port1;
> > > >  	};
> > > >
> > > > -Example dual role USB controller device node :
> > > > +Example dual role USB controller version 2.5 device node :
> > > >  	usb@23000 {
> > > > -		compatible = "fsl-usb2-dr";
> > > > +		compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
> > > >  		reg = <23000 1000>;
> > > >  		#address-cells = <1>;
> > > >  		#size-cells = <0>;
> > >
> > > This example doesn't correspond to any device tree I see.  Even
> > > after your next patch that sets t2080's USB to v2.5, the addresses are
> different.
> > >
> > I reckon that the example emphasizes on showing how IP version
> > information is to be stored in "compatible string". Is it necessary to
> > make sure that we should always site actual values already used?
> 
> The more realistic the examples are, the better.
> 
understood...we agree 

> -Scott
> 

N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·zøœzÚÞz)í…æèw*\x1fjg¬±¨\x1e¶‰šŽŠÝ¢j.ïÛ°\½½MŽúgjÌæa×\x02››–' ™©Þ¢¸\f¢·¦j:+v‰¨ŠwèjØm¶Ÿÿ¾\a«‘êçzZ+ƒùšŽŠÝ¢j"ú!¶i

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

* Re: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version
       [not found]                     ` <7032a06004444bc3af8d71c799e974e0-AZ66ij2kwaabJzs9G/iQcuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
@ 2014-08-27 23:34                       ` Scott Wood
  0 siblings, 0 replies; 6+ messages in thread
From: Scott Wood @ 2014-08-27 23:34 UTC (permalink / raw)
  To: Mehresh Ramneek-B31383
  Cc: Badola Nikhil-B46172,
	linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Wed, 2014-08-27 at 00:46 -0500, Mehresh Ramneek-B31383 wrote:
> 
> > -----Original Message-----
> > From: Wood Scott-B07421
> > Sent: Wednesday, August 27, 2014 4:23 AM
> > To: Mehresh Ramneek-B31383
> > Cc: Badola Nikhil-B46172; linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org;
> > devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> > Subject: Re: [PATCH] Documentation: dts: fsl-usb: Document USB node
> > compatible string for IP version
> > 
> > On Fri, 2014-08-22 at 00:05 -0500, Mehresh Ramneek-B31383 wrote:
> > >
> > > -----Original Message-----
> > > From: Badola Nikhil-B46172
> > > Sent: Friday, August 22, 2014 10:18 AM
> > > To: Wood Scott-B07421
> > > Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org; devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Mehresh
> > > Ramneek-B31383
> > > Subject: RE: [PATCH] Documentation: dts: fsl-usb: Document USB node
> > > compatible string for IP version
> > >
> > > Adding Ramneek
> > >
> > > > -----Original Message-----
> > > > From: Wood Scott-B07421
> > > > Sent: Friday, August 22, 2014 3:53 AM
> > > > To: Badola Nikhil-B46172
> > > > Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org; devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> > > > Subject: Re: [PATCH] Documentation: dts: fsl-usb: Document USB node
> > > > compatible string for IP version
> > > >
> > > > On Thu, 2014-08-21 at 14:48 +0530, Nikhil Badola wrote:
> > > > > Document compatible string containing IP version in USB device
> > > > > tree node
> > > > >
> > > > > Signed-off-by: Nikhil Badola <nikhil.badola-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
> > > > > ---
> > > > >  Documentation/devicetree/bindings/usb/fsl-usb.txt | 13
> > > > > ++++++++-----
> > > > >  1 file changed, 8 insertions(+), 5 deletions(-)
> > > >
> > > > Please CC devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org on all device tree patches (in
> > > > addition to linuxppc-dev).
> > > >
> > > > >
> > > > > diff --git a/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > > > > b/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > > > > index 4779c02..5a3a0a8 100644
> > > > > --- a/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > > > > +++ b/Documentation/devicetree/bindings/usb/fsl-usb.txt
> > > > > @@ -10,7 +10,10 @@ Required properties :
> > > > >     controllers, or "fsl-usb2-dr" for dual role USB controllers
> > > > >     or "fsl,mpc5121-usb2-dr" for dual role USB controllers of MPC5121.
> > > > >     Wherever applicable, the IP version of the USB controller should
> > > > > -   also be mentioned (for eg. fsl-usb2-dr-v2.2 for bsc9132).
> > > > > +   also be mentioned in another string.
> > > > > +   For multi port host USB controller with IP version <IP_Ver>, it should
> > be
> > > > > +   "fsl-usb2-mph-<IP_Ver>". For dual role USB controller with IP version
> > > > > +   <IP_Ver>, it should be "fsl-usb2-dr-<IP_Ver>".
> > > >
> > > > It was documented before -- this is just making it more explicit, right?
> > > >
> > > > FWIW, the version number can be read out of a USB register, so I'd
> > > > rather remove the suggestion to specify the version number and
> > > > replace it with a reference to the ID register.
> > > we have following two issues -
> > > (a) our USBIP version register doesn't have consistent "version field
> > > size" over multiple version(s). This is why we couldn't use it for
> > > reading version info across various IP versions
> > > (b) this register is not exposed in all SoC RMs (probably because of
> > > above reason)
> > 
> > :-(
> > 
> > If this is just a problem with older chips, we could have a new compatible name
> > that designates the family of USB block versions with a sane version register.
> > 
> we could have done...but we have a requirement to write version specific code...
> for instance, usb controller init sequence has changes from version 2.5 onwards...
> then there are version specific errata fixe(s) also. Hence we decided to go for
> compatible string containing hw ip version (major no.) so that our workaround/code is
> consistent with hw ip version(s) published in errata(s)

I wasn't saying ignore version differences.  I was suggesting that we
make a special case out of older versions where the version register is
different/broken.

-Scott


--
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] 6+ messages in thread

end of thread, other threads:[~2014-08-27 23:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1408612727-6774-1-git-send-email-nikhil.badola@freescale.com>
     [not found] ` <1408612727-6774-1-git-send-email-nikhil.badola-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2014-08-21 22:22   ` [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version Scott Wood
     [not found]     ` <1408659774.2395.21.camel-88ow+0ZRuxG2UiBs7uKeOtHuzzzSOjJt@public.gmane.org>
2014-08-22  4:48       ` nikhil.badola-KZfg59tc24xl57MIdRCFDg
     [not found]         ` <af7cc70458bf471cb20938ce6498ccfe-RQSpjbwlmjRJV8q+uXLxw5wN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2014-08-22  5:05           ` Ramneek Mehresh
     [not found]             ` <3fdd7732a9954d13a90ece684771d932-AZ66ij2kwaabJzs9G/iQcuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-08-26 22:53               ` Scott Wood
     [not found]                 ` <1409093581.6510.94.camel-88ow+0ZRuxG2UiBs7uKeOtHuzzzSOjJt@public.gmane.org>
2014-08-27  5:46                   ` Ramneek Mehresh
     [not found]                     ` <7032a06004444bc3af8d71c799e974e0-AZ66ij2kwaabJzs9G/iQcuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-08-27 23:34                       ` Scott Wood

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).