* Subnodes of vendor-added nodes
@ 2011-09-20 4:37 David VomLehn
[not found] ` <20110920043735.GA25354-ZEW99E7oL/EiWxQNNj96ibh/4TqKg8J2XqFh9Ls21Oc@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: David VomLehn @ 2011-09-20 4:37 UTC (permalink / raw)
To: Device Tree Mailing List
I know the device tree has a protocol for vendors to extend the types of nodes without
causing namespace collisions, e.g. acme,explosives. Do subnodes and properties of the
extended nodes also need the leading <vendor> and comma?
--
David VL
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Subnodes of vendor-added nodes
[not found] ` <20110920043735.GA25354-ZEW99E7oL/EiWxQNNj96ibh/4TqKg8J2XqFh9Ls21Oc@public.gmane.org>
@ 2011-09-20 4:53 ` Grant Likely
2011-09-20 4:58 ` David Gibson
1 sibling, 0 replies; 4+ messages in thread
From: Grant Likely @ 2011-09-20 4:53 UTC (permalink / raw)
To: David VomLehn; +Cc: Device Tree Mailing List
On Mon, Sep 19, 2011 at 10:37 PM, David VomLehn <dvomlehn-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> wrote:
> I know the device tree has a protocol for vendors to extend the types of nodes without
> causing namespace collisions, e.g. acme,explosives. Do subnodes and properties of the
> extended nodes also need the leading <vendor> and comma?
Nope; haven't done that so far. There isn't the same threat of
namespace conflict there because deciding by-name what to do with a
node is generally discouraged. There are cases where it is
appropriate, (ie. /chosen and /cpus), but generally nodes should be
named according to the "generic names" recommended practice.
g.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Subnodes of vendor-added nodes
[not found] ` <20110920043735.GA25354-ZEW99E7oL/EiWxQNNj96ibh/4TqKg8J2XqFh9Ls21Oc@public.gmane.org>
2011-09-20 4:53 ` Grant Likely
@ 2011-09-20 4:58 ` David Gibson
[not found] ` <20110920045816.GK29197-787xzQ0H9iQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
1 sibling, 1 reply; 4+ messages in thread
From: David Gibson @ 2011-09-20 4:58 UTC (permalink / raw)
To: David VomLehn; +Cc: Device Tree Mailing List
On Mon, Sep 19, 2011 at 09:37:35PM -0700, David VomLehn wrote:
> I know the device tree has a protocol for vendors to extend the types of nodes without
> causing namespace collisions, e.g. acme,explosives. Do subnodes and properties of the
> extended nodes also need the leading <vendor> and comma?
If the subnodes and properties in question have the semantics of
existing nodes or properties, just in the context of the new vendor
node, then no, you can use the existing names.
If they're newly defined nodes and properties with their own new
semantics, then, yes, they should have the vendor prefix.
There is some grey area here. IBM, for example, it its OF
implementations has heaps of "ibm,XXX" properties for things which
were not defined at the time the old OF working group stopped doing
much of anything. Some of these are truly vendor specific and deserve
the prefix, others are actually pretty general in concept and it would
have been nice in some ways to define new general bindings for them
without the vendor prefixes.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Subnodes of vendor-added nodes
[not found] ` <20110920045816.GK29197-787xzQ0H9iQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
@ 2011-09-20 5:01 ` Grant Likely
0 siblings, 0 replies; 4+ messages in thread
From: Grant Likely @ 2011-09-20 5:01 UTC (permalink / raw)
To: David Gibson; +Cc: Device Tree Mailing List
On Mon, Sep 19, 2011 at 10:58 PM, David Gibson
<david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org> wrote:
> On Mon, Sep 19, 2011 at 09:37:35PM -0700, David VomLehn wrote:
>> I know the device tree has a protocol for vendors to extend the types of nodes without
>> causing namespace collisions, e.g. acme,explosives. Do subnodes and properties of the
>> extended nodes also need the leading <vendor> and comma?
>
> If the subnodes and properties in question have the semantics of
> existing nodes or properties, just in the context of the new vendor
> node, then no, you can use the existing names.
>
> If they're newly defined nodes and properties with their own new
> semantics, then, yes, they should have the vendor prefix.
>
> There is some grey area here. IBM, for example, it its OF
> implementations has heaps of "ibm,XXX" properties for things which
> were not defined at the time the old OF working group stopped doing
> much of anything. Some of these are truly vendor specific and deserve
> the prefix, others are actually pretty general in concept and it would
> have been nice in some ways to define new general bindings for them
> without the vendor prefixes.
Hmmm, good point. It would be a good idea to use the prefix for the
properties of the sub nodes (assuming they aren't truly generic). The
node names should be fine without however.
g.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-09-20 5:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-20 4:37 Subnodes of vendor-added nodes David VomLehn
[not found] ` <20110920043735.GA25354-ZEW99E7oL/EiWxQNNj96ibh/4TqKg8J2XqFh9Ls21Oc@public.gmane.org>
2011-09-20 4:53 ` Grant Likely
2011-09-20 4:58 ` David Gibson
[not found] ` <20110920045816.GK29197-787xzQ0H9iQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
2011-09-20 5:01 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox