xref: /linux/drivers/of/unittest-data/tests-phandle.dtsi (revision 93d90ad708b8da6efc0e487b66111aa9db7f70c7)
1
2/ {
3	aliases {
4		testcase-alias = &testcase;
5	};
6
7	testcase: testcase-data {
8		security-password = "password";
9		duplicate-name = "duplicate";
10		duplicate-name { };
11		phandle-tests {
12			provider0: provider0 {
13				#phandle-cells = <0>;
14			};
15
16			provider1: provider1 {
17				#phandle-cells = <1>;
18			};
19
20			provider2: provider2 {
21				#phandle-cells = <2>;
22			};
23
24			provider3: provider3 {
25				#phandle-cells = <3>;
26			};
27
28			consumer-a {
29				phandle-list =	<&provider1 1>,
30						<&provider2 2 0>,
31						<0>,
32						<&provider3 4 4 3>,
33						<&provider2 5 100>,
34						<&provider0>,
35						<&provider1 7>;
36				phandle-list-names = "first", "second", "third";
37
38				phandle-list-bad-phandle = <12345678 0 0>;
39				phandle-list-bad-args = <&provider2 1 0>,
40							<&provider3 0>;
41				empty-property;
42				string-property = "foobar";
43				unterminated-string = [40 41 42 43];
44				unterminated-string-list = "first", "second", [40 41 42 43];
45			};
46		};
47	};
48};
49