aboutsummaryrefslogtreecommitdiff
path: root/tests/overlay_overlay_no_fixups.dts
blob: e8d0f96d889cc4e442699482a6871c1732fb2b74 (plain)
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
/*
 * Copyright (c) 2016 NextThing Co
 * Copyright (c) 2016 Free Electrons
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

/dts-v1/;

/ {
	fragment@0 {
		target-path = "/test-node";

		__overlay__ {
			test-int-property = <43>;
		};
	};

	/* Test that we can replace a string by a longer one */
	fragment@1 {
		target-path = "/test-node";

		__overlay__ {
			test-str-property = "foobar";
		};
	};

	/* Test that we add a new property */
	fragment@2 {
		target-path = "/test-node";

		__overlay__ {
			test-str-property-2 = "foobar2";
		};
	};

	fragment@3 {
		target-path = "/test-node";

		__overlay__ {
			new-node {
				new-property;
			};
		};
	};

	fragment@4 {
		target-path = "/";

		__overlay__ {
			local: new-local-node {
				new-property;
			};
		};
	};

	fragment@5 {
		target-path = "/";

		__overlay__ {
			test-several-phandle = <&local>, <&local>;
		};
	};

	fragment@6 {
		target-path = "/test-node";

		__overlay__ {
			sub-test-node {
				new-sub-test-property;
			};
		};
	};

	__local_fixups__ {
		fragment@5 {
			__overlay__ {
				test-several-phandle = <0 4>;
			};
		};
	};
};