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>
30 lines
477 B
Plaintext
30 lines
477 B
Plaintext
/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>;
|
|
};
|
|
};
|
|
|
|
subnode@2 {
|
|
prop-int = <123456789>;
|
|
|
|
subsubnode@0 {
|
|
compatible = "subsubnode2", "subsubnode";
|
|
prop-int = <0726746425>;
|
|
};
|
|
};
|
|
};
|