phandle via absolute path?
Hi,
I can't really see anything that would prevent me to have a phandle property taking a full-path to a node, but this produces a syntax error. Let's say we have this:
/dts-v1/;
/ {
soc@0 {
somenode@deafbeef {
};
someothernode@cafebabe {
handle = <&/soc@0/somenode@deafbeef>;
};
};
};Does this sound like something that should work?
Signature · 1 line
Florian
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 19 lines · Florian Fainelli
Hi,
I can't really see anything that would prevent me to have a phandle property taking a full-path to a node, but this produces a syntax error. Let's say we have this:
/dts-v1/;
/ { soc@0 { somenode@deafbeef { }; someothernode@cafebabe { handle = <&/soc@0/somenode@deafbeef>; }; }; };
Quoted 1 line
Does this sound like something that should work?
So you can't specify full paths quite like that because it would cause an ambiguity in the grammar (I forget the details). You can however specify a phandle to a full path as:
handle = <&{/soc@0/somenode@deafbeef}>;Signature · 4 lines
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