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