aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_tree1_label_noderef.dts
blob: cfe5946f8462254c108b091c7643a0eb9deb88d3 (plain) (blame)
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
/dts-v1/;

/memreserve/ 0xdeadbeef00000000 0x100000;
/memreserve/ 123456789 010000;

/ {
	compatible = "test_tree1";
	prop-int = <0xdeadbeef>;
	prop-int64 = /bits/ 64 <0xdeadbeef01abcdef>;
	prop-str = "hello world";
	#address-cells = <1>;
	#size-cells = <0>;

	subnode@1 {
		compatible = "subnode1";
		reg = <1>;
		prop-int = [deadbeef];

		subsubnode {
			compatible = "subsubnode1", "subsubnode";
			placeholder = "this is a placeholder string", "string2";
			prop-int = <0xdeadbeef>;
		};

		ss1 {
		};
	};

	subnode@2 {
		reg = <2>;
		linux,phandle = <0x2000>;
		prop-int = <123456789>;
		#address-cells = <1>;
		#size-cells = <0>;

		ssn0: subsubnode@0 {
			phandle = <0x2001>;
			prop-int = <0xbad>;
		};

		ss2 {
		};
	};
};

/* Add label to a noderef */
ssn1: &ssn0 {
	reg = <0>;
	prop-int = <123456789>;
};

/* Use the new label for merging */
&ssn1 {
	prop-int = <0726746425>;
	compatible = "subsubnode2", "subsubnode";
};