From: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
To: "Sören Brinkmann"
<soren.brinkmann-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
Cc: "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"git-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org"
<git-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
Subject: Re: Compatible string best practices
Date: Fri, 23 May 2014 17:03:31 +0100 [thread overview]
Message-ID: <20140523160331.GA6969@leverpostej> (raw)
In-Reply-To: <cc5b8415-4297-49fb-8a2c-bdc4b1b19c2c-neA4ZlFjCT3DAA6W7k9C4mYJ4DzVTqeXkX/xN29GLwg@public.gmane.org>
On Fri, May 23, 2014 at 04:03:06PM +0100, Sören Brinkmann wrote:
> Hi,
Hi,
> I have a question regarding how a compatible string should be created.
> The simple case is obvious:
> <IP-vendor>,<IP-type/name>-<IP-revision>
>
> But what is the recommended string for a SOC specific implementation of
> that IP? Let's say for
> <SOC-vendor>,<SOC-name>-<SOC-revision>
> how would I assemble a compatible string to identify the SOC-specific
> implementation of IP?
> I think my biggest confusion is which vendor string to use in that case.
> But in general I'm curious whether some best practice exists for these
> cases.
>
> I think what I've seen most is:
> <SOC-vendor>,<SOC-name>-<IP-type>
>
> But one could probably argue whether to rather use IP-vendor, appending
> all the revision strings, ...
I would expect that the vendor prefix would be the last entity along the
chain which altered the IP in some way. Say foo sells device to bar, who
do nothing other than sell it to baz who do some hacks to integrate it.
For that I'd expect something like:
compatible = "baz,soc-device", "foo,device";
I'm not sure with revisions (they're not always that useful), but I'd
expect that to be kept next to the element it represent the revision
for:
"baz,soc-vX-device-vY", "bar,soc-device-vY", "foo,device-vY",
"foo,device-vY";
Cheers,
Mark.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-05-23 16:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-23 15:03 Compatible string best practices Sören Brinkmann
[not found] ` <cc5b8415-4297-49fb-8a2c-bdc4b1b19c2c-neA4ZlFjCT3DAA6W7k9C4mYJ4DzVTqeXkX/xN29GLwg@public.gmane.org>
2014-05-23 16:03 ` Mark Rutland [this message]
2014-05-27 17:15 ` Sören Brinkmann
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=20140523160331.GA6969@leverpostej \
--to=mark.rutland-5wv7dgnigg8@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=git-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org \
--cc=soren.brinkmann-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.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).