mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
This patch allows the following construct: / { property-a = "old"; property-b = "does not change"; }; / { property-a = "changed"; property-c = "new"; node-a { }; }; Where the later device tree overrides the properties found in the earlier tree. This is useful for laying down a template device tree in an include file and modifying it for a specific board without having to clone the entire tree. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
45 lines
620 B
Text
45 lines
620 B
Text
/dts-v1/;
|
|
/memreserve/ 0xdeadbeef00000000 0x100000;
|
|
/memreserve/ 123456789 010000;
|
|
|
|
/ {
|
|
compatible = "test_tree1";
|
|
prop-int = "wrong!";
|
|
prop-str = "hello world";
|
|
|
|
subnode@1 {
|
|
compatible = "subnode1";
|
|
|
|
subsubnode {
|
|
compatible = "subsubnode1", "subsubnode";
|
|
prop-int = <0xdeadbeef>;
|
|
};
|
|
|
|
ss1 {
|
|
};
|
|
};
|
|
|
|
subnode@2 {
|
|
linux,phandle = <0x2000>;
|
|
prop-int = <123456789>;
|
|
|
|
ss2 {
|
|
};
|
|
};
|
|
};
|
|
|
|
/ {
|
|
prop-int = <0xdeadbeef>;
|
|
subnode@1 {
|
|
prop-int = [deadbeef];
|
|
};
|
|
subnode@2 {
|
|
subsubnode@0 {
|
|
phandle = <0x2001>;
|
|
compatible = "subsubnode2", "subsubnode";
|
|
prop-int = <0726746425>;
|
|
};
|
|
};
|
|
};
|
|
|
|
|