From: Scott Wood <oss@buserror.net>
To: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>
Cc: "dedekind1@gmail.com" <dedekind1@gmail.com>,
"computersforpeace@gmail.com" <computersforpeace@gmail.com>
Subject: Re: [PATCH] Documentation: binding: Update endianness usage
Date: Fri, 01 Dec 2017 15:55:11 -0600 [thread overview]
Message-ID: <1512165311.10062.3.camel@buserror.net> (raw)
In-Reply-To: <HE1PR04MB12414AFA5F8081730B89378497390@HE1PR04MB1241.eurprd04.prod.outlook.com>
On Fri, 2017-12-01 at 08:42 +0000, Prabhakar Kushwaha wrote:
> > -----Original Message-----
> > From: Scott Wood [mailto:oss@buserror.net]
> > Sent: Friday, December 01, 2017 10:43 AM
> > To: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>; linux-
> > mtd@lists.infradead.org; devicetree-discuss@lists.ozlabs.org
> > Cc: dedekind1@gmail.com; computersforpeace@gmail.com
> > Subject: Re: [PATCH] Documentation: binding: Update endianness usage
> >
> > On Wed, 2017-11-29 at 16:57 +0530, Prabhakar Kushwaha wrote:
> > > IFC controller version < 2.0 support IFC register access as
> > > big endian. These controller version also require IFC NOR signals to
> > > be connected in reverse order with NOR flash.
> > >
> > > IFC >= 2.0 is other way around.
> > >
> > > So updating IFC binding to take care of both using endianness field.
> > >
> > > Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
> > > ---
> > > Documentation/devicetree/bindings/memory-controllers/fsl/ifc.txt | 6
> > > ++++--
> > > 1 file changed, 4 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/Documentation/devicetree/bindings/memory-
> > > controllers/fsl/ifc.txt b/Documentation/devicetree/bindings/memory-
> > > controllers/fsl/ifc.txt
> > > index 89427b0..824a2ca 100644
> > > --- a/Documentation/devicetree/bindings/memory-controllers/fsl/ifc.txt
> > > +++ b/Documentation/devicetree/bindings/memory-controllers/fsl/ifc.txt
> > > @@ -18,8 +18,10 @@ Properties:
> > > interrupt (NAND_EVTER_STAT). If there is only one,
> > > that interrupt reports both types of event.
> > >
> > > -- little-endian : If this property is absent, the big-endian mode will
> > > - be in use as default for registers.
> > > +- little-endian or big-endin : It represents how IFC registers to be
> > > accessed.
> > > + It also represents connection between
> > > controller
> > > and
> > > + NOR flash. If this property is absent, the big-
> > > endian
> > > + mode will be in use as default.
> >
> > "endin"?
> >
> > If big endian is the default, is this change really
> > necessary? Particularly
> > since the big endian chips are older and thus have existing device trees.
> >
>
> Earlier endianness information was only used for "how to" access IFC-NAND
> register access.
> Now this info will also be used for defining swap requirement of NOR
> flash.
Is this a difference between LS1021A and PPC-based chips?
> "If this property is absent, the big- endian mode will be in use as
> default ". This line can be removed.
> Please let me know your view on this.
No, it cannot be removed because there are existing device trees with IFC
nodes that don't have either property.
-Scott
next prev parent reply other threads:[~2017-12-01 21:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-29 11:27 [PATCH] Documentation: binding: Update endianness usage Prabhakar Kushwaha
2017-12-01 5:13 ` Scott Wood
2017-12-01 8:42 ` Prabhakar Kushwaha
2017-12-01 21:55 ` Scott Wood [this message]
2017-12-04 4:33 ` Prabhakar Kushwaha
2017-12-05 2:45 ` Scott Wood
2017-12-05 9:45 ` Prabhakar Kushwaha
2017-12-05 20:07 ` Scott Wood
2017-12-06 10:35 ` Prabhakar Kushwaha
2017-12-06 10:58 ` Prabhakar Kushwaha
2017-12-21 5:20 ` Prabhakar Kushwaha
2018-01-10 8:47 ` Prabhakar Kushwaha
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=1512165311.10062.3.camel@buserror.net \
--to=oss@buserror.net \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=linux-mtd@lists.infradead.org \
--cc=prabhakar.kushwaha@nxp.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