]> git.sur5r.net Git - u-boot/blob - test/overlay/test-fdt-overlay.dts
mkimage: Refactor imagetool_get_source_date to take command name
[u-boot] / test / overlay / test-fdt-overlay.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (c) 2016 NextThing Co
4  * Copyright (c) 2016 Free Electrons
5  */
6
7 /dts-v1/;
8 /plugin/;
9
10 / {
11         /* Test that we can change an int by another */
12         fragment@0 {
13                 target = <&test>;
14
15                 __overlay__ {
16                         test-int-property = <43>;
17                 };
18         };
19
20         /* Test that we can replace a string by a longer one */
21         fragment@1 {
22                 target = <&test>;
23
24                 __overlay__ {
25                         test-str-property = "foobar";
26                 };
27         };
28
29         /* Test that we add a new property */
30         fragment@2 {
31                 target = <&test>;
32
33                 __overlay__ {
34                         test-str-property-2 = "foobar2";
35                 };
36         };
37
38         /* Test that we add a new node (by phandle) */
39         fragment@3 {
40                 target = <&test>;
41
42                 __overlay__ {
43                         new-node {
44                                 new-property;
45                         };
46                 };
47         };
48
49         /* Test that we add a new node (by path) */
50         fragment@4 {
51                 target-path = "/";
52
53                 __overlay__ {
54                         new-node {
55                                 new-property;
56                         };
57                 };
58         };
59
60         fragment@5 {
61                 target-path = "/";
62
63                 __overlay__ {
64                         local: new-local-node {
65                                 new-property;
66                         };
67                 };
68         };
69
70         fragment@6 {
71                 target-path = "/";
72
73                 __overlay__ {
74                         test-phandle = <&test>, <&local>;
75                 };
76         };
77
78         fragment@7 {
79                 target-path = "/";
80
81                 __overlay__ {
82                         test-several-phandle = <&local>, <&local>;
83                 };
84         };
85
86         fragment@8 {
87                 target = <&test>;
88
89                 __overlay__ {
90                         sub-test-node {
91                                 new-sub-test-property;
92                         };
93                 };
94         };
95 };