* phandle via absolute path? @ 2016-06-15 17:19 Florian Fainelli [not found] ` <57618E2F.8050900-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 2+ messages in thread From: Florian Fainelli @ 2016-06-15 17:19 UTC (permalink / raw) To: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA Cc: david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+ 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? -- Florian ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <57618E2F.8050900-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: phandle via absolute path? [not found] ` <57618E2F.8050900-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-06-16 1:01 ` David Gibson 0 siblings, 0 replies; 2+ messages in thread From: David Gibson @ 2016-06-16 1:01 UTC (permalink / raw) To: Florian Fainelli; +Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 900 bytes --] On Wed, Jun 15, 2016 at 10:19:43AM -0700, Florian Fainelli wrote: > 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? 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}>; -- 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 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-16 1:01 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-06-15 17:19 phandle via absolute path? Florian Fainelli [not found] ` <57618E2F.8050900-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-06-16 1:01 ` David Gibson
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).