2007-12-05 00:43:50 +01:00
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
/ {
|
2014-05-09 12:48:49 +02:00
|
|
|
rref = &{/};
|
2007-12-05 00:43:50 +01:00
|
|
|
/* 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;
|
|
|
|
};
|
2017-04-18 01:51:05 +02:00
|
|
|
/* Check references to nested nodes with common prefix */
|
|
|
|
foobar {
|
|
|
|
n3: baz {
|
|
|
|
ref = &{/foo/baz};
|
2018-09-26 21:27:08 +02:00
|
|
|
lref = start: &n4 end:;
|
2017-04-18 01:51:05 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
foo {
|
|
|
|
n4: baz {
|
|
|
|
ref = &{/foobar/baz};
|
|
|
|
lref = &n3;
|
|
|
|
};
|
|
|
|
};
|
2020-10-25 10:41:41 +01:00
|
|
|
n5: bar {
|
|
|
|
baz {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
n6: &{n5/baz} {
|
|
|
|
ref = &{n6/};
|
|
|
|
lref = &{n5/baz};
|
2007-12-05 00:43:50 +01:00
|
|
|
};
|