From: Scott Wood <scottwood@freescale.com>
To: Mehresh Ramneek-B31383 <ramneek.mehresh@freescale.com>
Cc: "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Badola Nikhil-B46172 <nikhil.badola@freescale.com>,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version
Date: Wed, 27 Aug 2014 18:34:55 -0500 [thread overview]
Message-ID: <1409182495.6510.130.camel@snotra.buserror.net> (raw)
In-Reply-To: <7032a06004444bc3af8d71c799e974e0@BL2PR03MB161.namprd03.prod.outlook.com>
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@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)
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
prev parent reply other threads:[~2014-08-27 23:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-21 9:18 [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version Nikhil Badola
2014-08-21 22:22 ` Scott Wood
2014-08-22 4:48 ` nikhil.badola
2014-08-22 5:05 ` Ramneek Mehresh
2014-08-26 22:53 ` Scott Wood
2014-08-27 5:46 ` Ramneek Mehresh
2014-08-27 23:34 ` Scott Wood [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1409182495.6510.130.camel@snotra.buserror.net \
--to=scottwood@freescale.com \
--cc=devicetree@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=nikhil.badola@freescale.com \
--cc=ramneek.mehresh@freescale.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).