1// SPDX-License-Identifier: GPL-2.0
2
3/ {
4	testcase-data {
5		overlay-node {
6			/* test bus */
7			unittest_test_bus: test-bus {
8				compatible = "simple-bus";
9				#address-cells = <1>;
10				#size-cells = <0>;
11
12				unittest100: test-unittest100 {
13					compatible = "unittest";
14					status = "okay";
15					reg = <100>;
16				};
17
18				unittest101: test-unittest101 {
19					compatible = "unittest";
20					status = "disabled";
21					reg = <101>;
22				};
23
24				unittest0: test-unittest0 {
25					compatible = "unittest";
26					status = "disabled";
27					reg = <0>;
28				};
29
30				unittest1: test-unittest1 {
31					compatible = "unittest";
32					status = "okay";
33					reg = <1>;
34				};
35
36				unittest2: test-unittest2 {
37					compatible = "unittest";
38					status = "disabled";
39					reg = <2>;
40				};
41
42				unittest3: test-unittest3 {
43					compatible = "unittest";
44					status = "okay";
45					reg = <3>;
46				};
47
48				unittest5: test-unittest5 {
49					compatible = "unittest";
50					status = "disabled";
51					reg = <5>;
52				};
53
54				unittest6: test-unittest6 {
55					compatible = "unittest";
56					status = "disabled";
57					reg = <6>;
58				};
59
60				unittest7: test-unittest7 {
61					compatible = "unittest";
62					status = "disabled";
63					reg = <7>;
64				};
65
66				unittest8: test-unittest8 {
67					compatible = "unittest";
68					status = "disabled";
69					reg = <8>;
70				};
71
72				unittest_i2c_test_bus: i2c-test-bus {
73					compatible = "unittest-i2c-bus";
74					status = "okay";
75					reg = <50>;
76
77					#address-cells = <1>;
78					#size-cells = <0>;
79
80					test-unittest12 {
81						reg = <8>;
82						compatible = "unittest-i2c-dev";
83						status = "disabled";
84					};
85
86					test-unittest13 {
87						reg = <9>;
88						compatible = "unittest-i2c-dev";
89						status = "okay";
90					};
91
92					test-unittest14 {
93						reg = <10>;
94						compatible = "unittest-i2c-mux";
95						status = "okay";
96
97						#address-cells = <1>;
98						#size-cells = <0>;
99
100						i2c@0 {
101							#address-cells = <1>;
102							#size-cells = <0>;
103							reg = <0>;
104
105							test-mux-dev@20 {
106								reg = <0x20>;
107								compatible = "unittest-i2c-dev";
108								status = "okay";
109							};
110						};
111					};
112				};
113			};
114		};
115	};
116};
117