Skip to contentSkip to conversation

phandle via absolute path?

DISCUSSION Florian Fainelli 2 participants 2 messages Jun 15, 2016 – Jun 16, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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
#2 lore raw
In reply to a message not in the archive
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