From: dave.martin@linaro.org (Dave Martin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/5] ARM: vexpress: Add DT support in v2m
Date: Wed, 16 Nov 2011 17:50:50 +0000 [thread overview]
Message-ID: <20111116175050.GH2073@localhost.localdomain> (raw)
In-Reply-To: <20111116173945.GG2073@localhost.localdomain>
On Wed, Nov 16, 2011 at 05:07:51PM +0000, Pawel Moll wrote:
> On Wed, 2011-11-16 at 16:59 +0000, Rob Herring wrote:
> > It has nothing to do with taste and obviously documentation changes over
> > time. I'm going to start naming everything with legacy because someday
> > it all will be...
> >
> > It's about how you create compatible strings. They should not be
> > generic, but specific to particular hardware version. If you happen to
> > be compatible with older h/w then you can claim compatibility with that
> > older h/w.
>
> Notice that it's not:
>
> compatible=legacy
>
> not even:
>
> compatible=arm,legacy
>
> It's:
>
> compatible=arm,vexpress-legacy
>
> A specific variant of Versatile Express hardware. It's just that the
> "legacy" word carries some meaning. Would it looked better if it was
> called:
>
> compatible=arm,vexpress-nalatenskap
>
> ? (thanks, google translate ;-)
(excuse the previous, half-written mail...)
Come to think of it, is the problem here that we're trying to describe
the _motherboard_ using the compatible property on the root node.
This is why I talked about universal/generic features -- the set of
features common to all platforms sharing a single motherboard
configuration.
Arguably that's wrong, and that compatible property belongs on the
motherboard node itself, so (excuse the random syntax):
/ {
compatible = "arm,vexpress-v2p-ca9", "arm,vexpress";
motherboard {
compatible = "arm,vexpress-v2m-legacy", "simple-bus";
};
};
I'm not commenting on the "legacy" name here -- it is, for better
or worse, the official name for the old memory map. I don't feel
that calling that "arm,vexpress" is correct either, however. There
is no such thing as a vanilla vexpress board, because the board
is not fully specified at all without _something_ in the IOFPGA.
Nor are there any prior upstream DT bindings for this platform which
we would be referring back to.
The motherboard node, including the compatible property would be defined
once per memory map, in the relevant .dtsi file.
If we don't have a generic compatible string "arm,vexpress", then we'd
start having to list every possible "arm,vexpress-v2p-*" in the
compatible lists in the code. I'm not clear on whether that's right
or wrong, but it could certainly get cumbersome.
Thoughts?
> > >
> > > and
> > >
> > >>> + compatible = "arm,vexpress-<model>", "arm,vexpress-legacy", "arm-vexpress";
> >
> > If arm,vexpress-ca9 is the only legacy platform, then just drop
> > arm,vexpress-legacy altogether.
>
> It's not. There is additional one, which is not publicly available, but
> is using the motherboard in legacy mode.
If putting a suitable compatible property on the motherboard node is
feasible, it should work for this case.
Cheers
---Dave
next prev parent reply other threads:[~2011-11-16 17:50 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-11 18:27 [PATCH 0/5] Versatile Express DT support, take 2 Pawel Moll
2011-11-11 18:27 ` [PATCH 1/5] ARM: vexpress: Get rid of MMIO_P2V Pawel Moll
2011-11-16 15:35 ` Dave Martin
2011-11-16 16:16 ` Pawel Moll
2011-11-16 17:28 ` Dave Martin
2011-11-16 17:30 ` Pawel Moll
2011-11-17 7:02 ` Ryan Harkin
2011-11-17 15:43 ` Russell King - ARM Linux
2011-11-18 12:20 ` Pawel Moll
2011-11-18 17:44 ` Russell King - ARM Linux
2011-11-11 18:27 ` [PATCH 2/5] ARM: vexpress: Remove platform SMP functions from ct_desc Pawel Moll
2011-11-17 15:31 ` Russell King - ARM Linux
2011-11-18 12:20 ` Pawel Moll
2011-11-11 18:27 ` [PATCH 3/5] ARM: vexpress: Add DT support in v2m Pawel Moll
2011-11-16 15:44 ` Dave Martin
2011-11-16 16:26 ` Rob Herring
2011-11-16 16:37 ` Pawel Moll
2011-11-16 16:59 ` Rob Herring
2011-11-16 17:07 ` Pawel Moll
2011-11-16 17:37 ` Pawel Moll
2011-11-16 19:14 ` Dave Martin
2011-11-16 17:39 ` Dave Martin
2011-11-16 17:50 ` Dave Martin [this message]
2011-11-16 17:55 ` Pawel Moll
2011-11-17 15:53 ` Russell King - ARM Linux
2011-11-18 12:20 ` Pawel Moll
2011-11-18 17:49 ` Russell King - ARM Linux
2011-11-16 16:35 ` Pawel Moll
2011-11-16 17:57 ` Dave Martin
2011-11-17 13:50 ` Pawel Moll
2011-11-17 14:41 ` Dave Martin
2011-11-17 16:05 ` Russell King - ARM Linux
2011-11-17 18:37 ` Dave Martin
2011-11-18 17:52 ` Russell King - ARM Linux
2011-11-18 12:20 ` Pawel Moll
2011-11-11 18:27 ` [PATCH 4/5] ARM: vexpress: Initial RS1 memory map support Pawel Moll
2011-11-16 15:42 ` Dave Martin
2011-11-16 16:28 ` Pawel Moll
2011-11-16 18:03 ` Dave Martin
2011-11-17 15:36 ` Russell King - ARM Linux
2011-11-18 12:20 ` Pawel Moll
2011-11-18 17:56 ` Russell King - ARM Linux
2011-11-11 18:27 ` [PATCH 5/5] ARM: vexpress: DT-based support for CoreTiles Express A5x2 and A9x4 Pawel Moll
2011-11-11 22:30 ` Rob Herring
2011-11-11 22:54 ` Pawel Moll
2011-11-16 15:36 ` Dave Martin
2011-11-16 16:22 ` Pawel Moll
2011-11-16 18:17 ` Dave Martin
2011-11-16 15:33 ` [PATCH 0/5] Versatile Express DT support, take 2 Dave Martin
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=20111116175050.GH2073@localhost.localdomain \
--to=dave.martin@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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).