Browse Source
dtc: Switch dtc to C-style literals This patch introduces a new version of dts file, distinguished from older files by starting with the special token /dts-v1/. dts files in the new version take C-style literals instead of the old bare hex or OF-style base notation. In addition, the "range" for of memreserve entries (/memreserve/ f0000-fffff) is no longer recognized in the new format. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Jon Loeliger <jdl@freescale.com>main


5 changed files with 107 additions and 16 deletions
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
/memreserve/ deadbeef00000000-deadbeef000fffff; |
||||
/memreserve/ 75bcd15 1000; |
||||
|
||||
/ { |
||||
compatible = "test_tree1"; |
||||
prop-int = <deadbeef>; |
||||
prop-str = "hello world"; |
||||
|
||||
subnode@1 { |
||||
compatible = "subnode1"; |
||||
prop-int = [deadbeef]; |
||||
|
||||
subsubnode { |
||||
compatible = "subsubnode1", "subsubnode"; |
||||
prop-int = <h# deadbeef>; |
||||
}; |
||||
}; |
||||
|
||||
subnode@2 { |
||||
prop-int = <d# 123456789>; |
||||
|
||||
subsubnode@0 { |
||||
compatible = "subsubnode2", "subsubnode"; |
||||
prop-int = <o# 0726746425>; |
||||
}; |
||||
}; |
||||
}; |
Loading…
Reference in new issue