[U-Boot-Users] use of aliases in device trees
Grant Likely
grant.likely at secretlab.ca
Mon Nov 5 10:32:49 EST 2007
On 11/4/07, David Gibson <david at gibson.dropbear.id.au> wrote:
> On Sat, Nov 03, 2007 at 09:29:48PM -0600, Grant Likely wrote:
> > Maybe something like:
> > aliases {
> > enet0,phandle = <&enet0>;
> > enet1,phandle = <&enet1>;
> > ...
> > };
>
> The fairly small advantages of using phandles here are not worth the
> hassle of defining a new alias format, when the OF one with full paths
> already exists.
>
> I would, however, like to extend dtc so that we can do something like:
> aliases {
> enet0 = &enet0;
> };
> and the reference in non-cell context will expand to the full path.
> That could be used for things like linux,stdout-path in /chosen, too.
>
> I'd also like to extend dtc so that the label can be tagged somehow, say:
> *enet0: { ... };
> and as well as creating a normal dtc label, an alias will also be
> automatically added to /aliases.
Yeah, okay! I like both of those ideas. That certainly addresses my
ease of maintenance concerns.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195
More information about the Linuxppc-dev
mailing list