1 // SPDX-License-Identifier: GPL-2.0
8 unittestbus: test-bus {
9 compatible = "simple-bus";
13 unittest100: test-unittest100 {
14 compatible = "unittest";
19 unittest101: test-unittest101 {
20 compatible = "unittest";
25 unittest0: test-unittest0 {
26 compatible = "unittest";
31 unittest1: test-unittest1 {
32 compatible = "unittest";
37 unittest2: test-unittest2 {
38 compatible = "unittest";
43 unittest3: test-unittest3 {
44 compatible = "unittest";
49 unittest5: test-unittest5 {
50 compatible = "unittest";
55 unittest6: test-unittest6 {
56 compatible = "unittest";
61 unittest7: test-unittest7 {
62 compatible = "unittest";
67 unittest8: test-unittest8 {
68 compatible = "unittest";
74 compatible = "unittest-i2c-bus";
83 compatible = "unittest-i2c-dev";
89 compatible = "unittest-i2c-dev";
95 compatible = "unittest-i2c-mux";
102 #address-cells = <1>;
108 compatible = "unittest-i2c-dev";
117 /* test enable using absolute target path */
120 target-path = "/testcase-data/overlay-node/test-bus/test-unittest0";
127 /* test disable using absolute target path */
130 target-path = "/testcase-data/overlay-node/test-bus/test-unittest1";
137 /* test enable using label */
140 target = <&unittest2>;
147 /* test disable using label */
150 target = <&unittest3>;
157 /* test insertion of a full node */
160 target = <&unittestbus>;
163 /* suppress DTC warning */
164 #address-cells = <1>;
168 compatible = "unittest";
176 /* test overlay apply revert */
179 target-path = "/testcase-data/overlay-node/test-bus/test-unittest5";
186 /* test overlays application and removal in sequence */
189 target-path = "/testcase-data/overlay-node/test-bus/test-unittest6";
197 target-path = "/testcase-data/overlay-node/test-bus/test-unittest7";
204 /* test overlays application and removal in bad sequence */
207 target-path = "/testcase-data/overlay-node/test-bus/test-unittest8";
215 target-path = "/testcase-data/overlay-node/test-bus/test-unittest8";
217 property-foo = "bar";
224 target-path = "/testcase-data/overlay-node/test-bus";
227 /* suppress DTC warning */
228 #address-cells = <1>;
232 compatible = "unittest";
236 #address-cells = <1>;
240 compatible = "unittest";
252 target-path = "/testcase-data/overlay-node/test-bus";
255 /* suppress DTC warning */
256 #address-cells = <1>;
260 compatible = "unittest";
264 #address-cells = <1>;
268 compatible = "unittest";
278 /* test enable using absolute target path (i2c) */
281 target-path = "/testcase-data/overlay-node/test-bus/i2c-test-bus/test-unittest12";
288 /* test disable using absolute target path (i2c) */
291 target-path = "/testcase-data/overlay-node/test-bus/i2c-test-bus/test-unittest13";
298 /* test mux overlay */
301 target-path = "/testcase-data/overlay-node/test-bus/i2c-test-bus";
303 #address-cells = <1>;
307 compatible = "unittest-i2c-mux";
310 #address-cells = <1>;
314 #address-cells = <1>;
320 compatible = "unittest-i2c-dev";