aboutsummaryrefslogtreecommitdiff
path: root/tests/test_tree1_delete.dts
blob: b95ef1e7185fcedadeb1a4d906a13384a94da0b7 (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.dts"

/ {
	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;
};