xref: /linux/drivers/of/unittest-data/tests-platform.dtsi (revision ae22a94997b8a03dcb3c922857c203246711f9d4)
1// SPDX-License-Identifier: GPL-2.0
2
3/ {
4	testcase-data {
5		platform-tests {
6			#address-cells = <1>;
7			#size-cells = <0>;
8
9			test-device@0 {
10				compatible = "test-device";
11				reg = <0x0>;
12
13				#address-cells = <1>;
14				#size-cells = <0>;
15
16				dev@100 {
17					compatible = "test-sub-device";
18					reg = <0x100>;
19				};
20			};
21
22			test-device@1 {
23				compatible = "test-device";
24				reg = <0x1>;
25
26				#address-cells = <1>;
27				#size-cells = <0>;
28
29				dev@100 {
30					compatible = "test-sub-device",
31						     "test-compat2",
32						     "test-compat3";
33					reg = <0x100>;
34				};
35			};
36		};
37	};
38};
39