Browse Source
syntax: / { child { label: subchild { }; }; }; &label { prop = "value"; }; which will result in the following tree: / { child { label: subchild { prop = "value"; }; }; }; Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>main
David Gibson
14 years ago
committed by
Jon Loeliger
7 changed files with 73 additions and 17 deletions
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
/dts-v1/; |
||||
|
||||
/ { |
||||
label: node { |
||||
}; |
||||
}; |
||||
|
||||
/* Try to redefine a node using a non-existent label */ |
||||
&nosuchnode { |
||||
}; |
@ -0,0 +1,41 @@
@@ -0,0 +1,41 @@
|
||||
/dts-v1/; |
||||
|
||||
/memreserve/ 0xdeadbeef00000000 0x100000; |
||||
/memreserve/ 123456789 010000; |
||||
|
||||
/ { |
||||
compatible = "test_tree1"; |
||||
prop-int = <0xdeadbeef>; |
||||
prop-str = "hello world"; |
||||
|
||||
subnode@1 { |
||||
compatible = "subnode1"; |
||||
prop-int = [deadbeef]; |
||||
|
||||
subsubnode { |
||||
compatible = "subsubnode1", "subsubnode"; |
||||
prop-int = <0xdeadbeef>; |
||||
}; |
||||
|
||||
ss1 { |
||||
}; |
||||
}; |
||||
|
||||
subnode@2 { |
||||
linux,phandle = <0x2000>; |
||||
prop-int = <123456789>; |
||||
|
||||
ssn0: subsubnode@0 { |
||||
phandle = <0x2001>; |
||||
prop-int = <0xbad>; |
||||
}; |
||||
|
||||
ss2 { |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
&ssn0 { |
||||
compatible = "subsubnode2", "subsubnode"; |
||||
prop-int = <0726746425>; |
||||
}; |
Loading…
Reference in new issue