summaryrefslogtreecommitdiffstats
path: root/qemu/dtc/tests/test_tree1_delete.dts
blob: a2f1bfdc51c9deb457439c8c265604164acf2e83 (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
/dts-v1/;

/include/ "test_tree1_body.dtsi"

/ {
	nonexistant-property = <0xdeadbeef>;

	nonexistant-subnode {
		prop-int = <1>;
	};

	dellabel: deleted-by-label {
		prop-int = <1>;
	};

	subnode@1 {
		delete-this-str = "deadbeef";
	};

};

/ {
	/delete-property/ nonexistant-property;

	/delete-node/ nonexistant-subnode;

	subnode@1 {
		/delete-property/ delete-this-str;
	};
};

/delete-node/ &dellabel;

/ {
	/delete-property/ prop-str;
};

/ {
	prop-str = "hello world";
};

/ {
	subnode@1 {
		/delete-node/ ss1;
	};
};

/ {
	subnode@1 {
		ss1 {
		};
	};
};

/{
	duplabel1: foo1 = "bar";
	duplabel2: foo2 = "bar";
};

/{
	duplabel1: baz1 = "qux";
	duplabel2: baz2 = "qux";
};

/{
	/delete-property/ foo1;
	/delete-property/ baz2;
};