xref: /aosp_15_r20/bootable/libbootloader/gbl/libfdt/test/overlay_by_path.dts (revision 5225e6b173e52d2efc6bcf950c27374fd72adabc)
1/dts-v1/;
2/plugin/;
3
4// re-generate and push test artifacts using ./gen_test_dtb.sh after change in this file
5/ {
6    // modify a property in an existing node
7    fragment@0 {
8        target-path = "/dev-2/dev-2.2/dev-2.2.1";
9        __overlay__ {
10            property-1 = "overlay1-property-1-value";
11        };
12    };
13
14    // add a new property to an existing node
15    fragment@1 {
16        target-path = "/dev-2/dev-2.2/dev-2.2.1";
17        __overlay__ {
18            overlay1-new-property = "overlay1-new-property-value";
19        };
20    };
21
22    // add a new node under an existing node
23    fragment@2 {
24        target-path = "/dev-1";
25        __overlay__ {
26            overlay1-new-node {
27                overlay1-new-node-property = "overlay1-new-node-property-value";
28            };
29        };
30    };
31
32    // add a new node at the root level
33    fragment@3 {
34        target-path = "/";
35        __overlay__ {
36            dev4: dev-4 {
37                overlay1-root-node-property = "overlay1-root-node-property-value";
38            };
39        };
40    };
41};