All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Jayachandran C <jnair@caviumnetworks.com>
Cc: "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"arm@kernel.org" <arm@kernel.org>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will.deacon@arm.com>,
	Rob Herring <robh+dt@kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v3 4/5] dt-bindings: arm64 ARCH_THUNDER2 platform documentation
Date: Wed, 8 Feb 2017 09:42:38 +0100	[thread overview]
Message-ID: <CAK8P3a07eo0htv_y6H_aHvAaeo5two3vQTaySuFXpG+dzYguUQ@mail.gmail.com> (raw)
In-Reply-To: <20170208053234.GA3102@localhost>

On Wed, Feb 8, 2017 at 6:32 AM, Jayachandran C <jnair@caviumnetworks.com> wrote:
> On Tue, Feb 07, 2017 at 04:35:24PM -0600, Rob Herring wrote:
>> On Tue, Feb 7, 2017 at 3:19 PM, Jayachandran C <jnair@caviumnetworks.com> wrote:
>> > diff --git a/Documentation/devicetree/bindings/arm/cavium-thunder2.txt b/Documentation/devicetree/bindings/arm/cavium-thunder2.txt
>> > new file mode 100644
>> > index 0000000..82276a2
>> > --- /dev/null
>> > +++ b/Documentation/devicetree/bindings/arm/cavium-thunder2.txt
>> > @@ -0,0 +1,5 @@
>> > +Cavium Thunder2 Family device tree bindings
>> > +-------------------------------------------
>> > +
>> > +Boards with Cavium ThunderX2 CN99XX shall have the root property:
>> > +  compatible = "cavium,thunder-99xx";
>>
>> Is it ThunderX2 or Thunder2? What happened to "CN" in the compatible
>> string. There's a lot of inconsistencies here.
>
> I have followed the exiting Thunder naming as well as general DT
> conventions, Basically:
>
> Platform - ARCH_THUNDER2  (for ThunderX2 CN99XX, ARCH_THUNDER is
>            for ThunderX CN8?XX)

The platform name is fine, we don't care too much about that as it is
easily changed
if necessary.

> Core - cavium,thunder2 (ThunderX2 cpu core, "cavium,thunder" is ThunderX core)
> Board/SoC - cavium,thunder-99xx (for ThunderX2, "cavium,thunder-88xx"
>           is existing ThunderX board)
>
> Thunder2 because it is based on the next generation Thunder core, and
> processor family is ThunderX2 CN99XX.
>
> I had thought thru other possibilities as well, this seems the best I
> could come up with.

We should really avoid having the 'xx' placeholder in there but instead put
actual chip names in the compatible string, preferably the real ID such as
"cn8890" for the older chip. I see that we got it wrong for thunder-88xx.dts,
but that is no reason to duplicate the mistake.

     Arnd

WARNING: multiple messages have this Message-ID (diff)
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 4/5] dt-bindings: arm64 ARCH_THUNDER2 platform documentation
Date: Wed, 8 Feb 2017 09:42:38 +0100	[thread overview]
Message-ID: <CAK8P3a07eo0htv_y6H_aHvAaeo5two3vQTaySuFXpG+dzYguUQ@mail.gmail.com> (raw)
In-Reply-To: <20170208053234.GA3102@localhost>

On Wed, Feb 8, 2017 at 6:32 AM, Jayachandran C <jnair@caviumnetworks.com> wrote:
> On Tue, Feb 07, 2017 at 04:35:24PM -0600, Rob Herring wrote:
>> On Tue, Feb 7, 2017 at 3:19 PM, Jayachandran C <jnair@caviumnetworks.com> wrote:
>> > diff --git a/Documentation/devicetree/bindings/arm/cavium-thunder2.txt b/Documentation/devicetree/bindings/arm/cavium-thunder2.txt
>> > new file mode 100644
>> > index 0000000..82276a2
>> > --- /dev/null
>> > +++ b/Documentation/devicetree/bindings/arm/cavium-thunder2.txt
>> > @@ -0,0 +1,5 @@
>> > +Cavium Thunder2 Family device tree bindings
>> > +-------------------------------------------
>> > +
>> > +Boards with Cavium ThunderX2 CN99XX shall have the root property:
>> > +  compatible = "cavium,thunder-99xx";
>>
>> Is it ThunderX2 or Thunder2? What happened to "CN" in the compatible
>> string. There's a lot of inconsistencies here.
>
> I have followed the exiting Thunder naming as well as general DT
> conventions, Basically:
>
> Platform - ARCH_THUNDER2  (for ThunderX2 CN99XX, ARCH_THUNDER is
>            for ThunderX CN8?XX)

The platform name is fine, we don't care too much about that as it is
easily changed
if necessary.

> Core - cavium,thunder2 (ThunderX2 cpu core, "cavium,thunder" is ThunderX core)
> Board/SoC - cavium,thunder-99xx (for ThunderX2, "cavium,thunder-88xx"
>           is existing ThunderX board)
>
> Thunder2 because it is based on the next generation Thunder core, and
> processor family is ThunderX2 CN99XX.
>
> I had thought thru other possibilities as well, this seems the best I
> could come up with.

We should really avoid having the 'xx' placeholder in there but instead put
actual chip names in the compatible string, preferably the real ID such as
"cn8890" for the older chip. I see that we got it wrong for thunder-88xx.dts,
but that is no reason to duplicate the mistake.

     Arnd

  reply	other threads:[~2017-02-08  8:42 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-07 21:19 [PATCH v3 0/5] Add Cavium ARCH_THUNDER2 platform Jayachandran C
2017-02-07 21:19 ` Jayachandran C
2017-02-07 21:19 ` [PATCH v3 1/5] arm64: add THUNDER2 processor family Jayachandran C
2017-02-07 21:19   ` Jayachandran C
2017-02-07 21:19 ` [PATCH v3 2/5] MAINTAINERS: Add Cavium ThunderX2 entry Jayachandran C
2017-02-07 21:19   ` Jayachandran C
2017-02-07 21:19 ` [PATCH v3 3/5] arm64: dts: add device tree for ARCH_THUNDER2 Jayachandran C
2017-02-07 21:19   ` Jayachandran C
     [not found] ` <1486502399-2950-1-git-send-email-jnair-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org>
2017-02-07 21:19   ` [PATCH v3 4/5] dt-bindings: arm64 ARCH_THUNDER2 platform documentation Jayachandran C
2017-02-07 21:19     ` Jayachandran C
     [not found]     ` <1486502399-2950-5-git-send-email-jnair-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org>
2017-02-07 22:35       ` Rob Herring
2017-02-07 22:35         ` Rob Herring
     [not found]         ` <CAL_Jsq+i2evzVnQKf3qYMYJVZ=ecdSQObGy8CMn7aMoxBi_PTg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-08  5:32           ` Jayachandran C
2017-02-08  5:32             ` Jayachandran C
2017-02-08  8:42             ` Arnd Bergmann [this message]
2017-02-08  8:42               ` Arnd Bergmann
     [not found]               ` <CAK8P3a07eo0htv_y6H_aHvAaeo5two3vQTaySuFXpG+dzYguUQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-09 19:05                 ` Jayachandran C
2017-02-09 19:05                   ` Jayachandran C
2017-02-09 19:12                 ` [PATCH v4 3/5] arm64: dts: add device tree for ARCH_THUNDER2 Jayachandran C
2017-02-09 19:12                   ` Jayachandran C
2017-02-09 19:13               ` [PATCH v4 4/5] dt-bindings: arm64 ARCH_THUNDER2 platform documentation Jayachandran C
2017-02-09 19:13                 ` Jayachandran C
2017-02-10 14:55                 ` Rob Herring
2017-02-10 14:55                   ` Rob Herring
     [not found]                   ` <CAL_JsqKm-c6D_fki_TsRYKH3aGoC5GE7n0DazNi7P268aj-93g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-10 15:07                     ` Jayachandran C
2017-02-10 15:07                       ` Jayachandran C
2017-02-10 17:32                       ` Rob Herring
2017-02-10 17:32                         ` Rob Herring
     [not found]                         ` <CAL_JsqLaLnzFzQbGVpxGRFjkjSEM7mmGMd+xJ_urwcX5Jq9L+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-11 16:05                           ` Jayachandran C
2017-02-11 16:05                             ` Jayachandran C
2017-02-07 21:19 ` [PATCH v3 5/5] arm64: add ARCH_THUNDER2 to defconfig Jayachandran C
2017-02-07 21:19   ` Jayachandran C

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=CAK8P3a07eo0htv_y6H_aHvAaeo5two3vQTaySuFXpG+dzYguUQ@mail.gmail.com \
    --to=arnd@arndb.de \
    --cc=arm@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jnair@caviumnetworks.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=robh+dt@kernel.org \
    --cc=will.deacon@arm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.