[PATCH 8/9 V3] Add documentation for the new DTS language.

Grant Likely grant.likely at secretlab.ca
Tue Mar 2 10:42:06 EST 2010


On Mon, Mar 1, 2010 at 3:17 PM, Stephen Neuendorffer
<stephen.neuendorffer at xilinx.com> wrote:
> From: glikely at secretlab.ca [mailto:glikely at secretlab.ca] On Behalf Of Grant Likely
>> reworked to use nodes:
>> foo {
>>         bar-label: bar {
>>                 prop = 2;
>>                 delete(bar); // should be illegal
>>         };
>> };
>
> Um, my original intent was:
> foo {
>         bar-label: bar {
>                 prop = 2;
>         };
>         delete(bar); // should be illegal
> };

Ah, yes.  And you are right, that should be illegal.

> So, is it true that a tree which is overlayed on another tree can be independently verified to
> be independent of internal ordering?  This would be nice if so.

Yes, I think that is a valid statement, with the assumption that label
references at the top level are first resolved.

>> Not sure I follow.  It certainly isn't be valid to apply a label to a
>> command like delete().
>
> But the best thing of the above is that there is no longer a distinction between commands and data!
> delete is just a tag which gets interpreted during 'reduction' or 'overlay'.
>
> For instance, deleting a subnode could be:
>
> foo {
>        bar {
>                delete;
>        }
> }
>
> I guess this ends up conflicting with a property named 'delete' though.

Right.  It should be something syntactically distinct.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.


More information about the devicetree-discuss mailing list