[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140525130931.GI10768@lukather>
Date: Sun, 25 May 2014 15:09:31 +0200
From: Maxime Ripard <maxime.ripard@...e-electrons.com>
To: Marek Vasut <marex@...x.de>
Cc: Tomasz Figa <tomasz.figa@...il.com>,
linux-arm-kernel@...ts.infradead.org, mark.rutland@....com,
devicetree@...r.kernel.org, linux@....linux.org.uk,
herbert@...dor.apana.org.au, pawel.moll@....com,
ijc+devicetree@...lion.org.uk, rdunlap@...radead.org,
linux-kernel@...r.kernel.org, robh+dt@...nel.org,
LABBE Corentin <clabbe.montjoie@...il.com>,
linux-crypto@...r.kernel.org, galak@...eaurora.org,
grant.likely@...aro.org, davem@...emloft.net
Subject: Re: [PATCH 1/3] dt: Add DT bindings documentation for SUNXI Security
System
On Sat, May 24, 2014 at 09:59:30PM +0200, Marek Vasut wrote:
> On Saturday, May 24, 2014 at 09:51:59 PM, Tomasz Figa wrote:
> [...]
> > >>> Why sun7i-a20 ? Is the crypto unit different in other sunxi chips ? Can
> > >>> that not be described by DT props ?
> > >>
> > >> A widely used convention is to define compatible strings after first
> > >> SoCs on which particular IP blocks appear. It is quite common among IP
> > >> blocks for which there is no well defined versioning scheme.
> > >
> > > Well yeah, that's fine. But in this case, "sun7i" is the entire group of
> > > CPUs manufactured by AW. I find that information redundant, the
> > > "allwinner,a20- crypto" would suffice. But I wonder if that IP block
> > > might have appeared even earlier ? Or if it is CPU family specific, thus
> > > "allwinner,sun7i-crypto" would be a better string ?
> >
> > I'm not aware of Allwinner naming schemes too much, so please correct me
> > if I'm wrong, but if A20 implies sun7i, then "allwinner,a20-crypto"
> > would be better indeed.
>
> True.
>
> > Whether it was really the first SoC is another thing. Obviously this
> > needs to be checked, although it isn't really that important. For this
> > particular naming scheme you need to specify all the SoCs for which
> > given compatible string can be used for this IP anyway, because there is
> > usually no other source of information about this available (except
> > directly comparing two datasheets...).
>
> Better get the DT stuff correctly right from the start. That's why I'm asking
> what chips contains the IP block, so we can guess the right name.
The name is fine, please stop this bikeshedding.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists