efbbef8e4f
This patch extends dtc syntax to allow references (&label, or &{/full/path}) directly within property definitions, rather than inside a cell list. Such references are expanded to the full path of the referenced node, as a string, instead of to a phandle as references within cell lists are evaluated. A testcase is also included. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
14 lines
240 B
Text
14 lines
240 B
Text
/dts-v1/;
|
|
|
|
/ {
|
|
/* Check multiple references case */
|
|
multiref = &n1 , &n2;
|
|
n1: node1 {
|
|
ref = &{/node2}; /* reference precedes target */
|
|
lref = &n2;
|
|
};
|
|
n2: node2 {
|
|
ref = &{/node1}; /* reference after target */
|
|
lref = &n1;
|
|
};
|
|
};
|