Browse Source
This patch adds a testcase for the /include/ directive. It assembles a sample dts file with many /include/ directives at a variety of different lexical / grammatical contexts. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>main
David Gibson
17 years ago
committed by
Jon Loeliger
10 changed files with 43 additions and 0 deletions
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
/dts-v1/; |
||||
|
||||
/include/ "include2.dts" |
||||
/memreserve/ /include/ "include3.dts"; |
||||
|
||||
/ { |
||||
/include/ "include4.dts" |
||||
/include/ "include5.dts" = <0xdeadbeef>; |
||||
prop-str = /include/ "include6.dts"; |
||||
|
||||
/include/ "include7.dts" |
||||
|
||||
subnode@2 { |
||||
linux,phandle = <0x2000>; |
||||
prop-int = <123456789>; |
||||
|
||||
/include/ "include8.dts" |
||||
linux,phandle = <0x2001>; |
||||
compatible = "subsubnode2", "subsubnode"; |
||||
prop-int = <0726746425>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
/memreserve/ 0xdeadbeef00000000 0x100000; |
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
subnode@1 { |
||||
compatible = "subnode1"; |
||||
prop-int = [deadbeef]; |
||||
|
||||
subsubnode { |
||||
compatible = "subsubnode1", "subsubnode"; |
||||
prop-int = <0xdeadbeef>; |
||||
}; |
||||
}; |
Loading…
Reference in new issue