aboutsummaryrefslogtreecommitdiff
path: root/tests/overlay_overlay_bypath.dts
blob: f23e7b6035e215239bc03f38b00066bc00b1bdac (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
/*
 * 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 */
&{/test-node} {
	test-int-property = <43>;
};

/* Test that we can replace a string by a longer one */
&{/test-node} {
	test-str-property = "foobar";
};

/* Test that we add a new property */
&{/test-node} {
	test-str-property-2 = "foobar2";
};

/* Test that we add a new node (by phandle) */
&{/test-node} {
	new-node {
		new-property;
	};
};

&{/} {
	local: new-local-node {
		new-property;
	};
};

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

&{/test-node} {
	sub-test-node {
		new-sub-test-property;
	};
};