blob: 25cf397b8f6b67f964646d4b310e5daf8b76b10e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Pantelis Antoniou177d2712014-10-28 22:35:59 +02002
3/ {
4 testcase-data {
5 overlay-node {
6
7 /* test bus */
Frank Rowanddb2f3762018-02-12 00:23:45 -08008 unittest_test_bus: test-bus {
Pantelis Antoniou177d2712014-10-28 22:35:59 +02009 compatible = "simple-bus";
10 #address-cells = <1>;
11 #size-cells = <0>;
12
Wang Long9697a552015-03-11 08:36:54 +000013 unittest100: test-unittest100 {
14 compatible = "unittest";
Pantelis Antoniou177d2712014-10-28 22:35:59 +020015 status = "okay";
16 reg = <100>;
17 };
18
Wang Long9697a552015-03-11 08:36:54 +000019 unittest101: test-unittest101 {
20 compatible = "unittest";
Pantelis Antoniou177d2712014-10-28 22:35:59 +020021 status = "disabled";
22 reg = <101>;
23 };
24
Wang Long9697a552015-03-11 08:36:54 +000025 unittest0: test-unittest0 {
26 compatible = "unittest";
Pantelis Antoniou177d2712014-10-28 22:35:59 +020027 status = "disabled";
28 reg = <0>;
29 };
30
Wang Long9697a552015-03-11 08:36:54 +000031 unittest1: test-unittest1 {
32 compatible = "unittest";
Pantelis Antoniou177d2712014-10-28 22:35:59 +020033 status = "okay";
34 reg = <1>;
35 };
36
Wang Long9697a552015-03-11 08:36:54 +000037 unittest2: test-unittest2 {
38 compatible = "unittest";
Pantelis Antoniou177d2712014-10-28 22:35:59 +020039 status = "disabled";
40 reg = <2>;
41 };
42
Wang Long9697a552015-03-11 08:36:54 +000043 unittest3: test-unittest3 {
44 compatible = "unittest";
Pantelis Antoniou177d2712014-10-28 22:35:59 +020045 status = "okay";
46 reg = <3>;
47 };
48
Wang Long9697a552015-03-11 08:36:54 +000049 unittest5: test-unittest5 {
50 compatible = "unittest";
Pantelis Antoniou177d2712014-10-28 22:35:59 +020051 status = "disabled";
52 reg = <5>;
53 };
54
Wang Long9697a552015-03-11 08:36:54 +000055 unittest6: test-unittest6 {
56 compatible = "unittest";
Pantelis Antoniou177d2712014-10-28 22:35:59 +020057 status = "disabled";
58 reg = <6>;
59 };
60
Wang Long9697a552015-03-11 08:36:54 +000061 unittest7: test-unittest7 {
62 compatible = "unittest";
Pantelis Antoniou177d2712014-10-28 22:35:59 +020063 status = "disabled";
64 reg = <7>;
65 };
66
Wang Long9697a552015-03-11 08:36:54 +000067 unittest8: test-unittest8 {
68 compatible = "unittest";
Pantelis Antoniou177d2712014-10-28 22:35:59 +020069 status = "disabled";
70 reg = <8>;
71 };
Pantelis Antonioud5e75502015-01-12 19:02:49 +020072
Frank Rowanddb2f3762018-02-12 00:23:45 -080073 unittest_i2c_test_bus: i2c-test-bus {
Wang Long9697a552015-03-11 08:36:54 +000074 compatible = "unittest-i2c-bus";
Pantelis Antonioud5e75502015-01-12 19:02:49 +020075 status = "okay";
76 reg = <50>;
77
78 #address-cells = <1>;
79 #size-cells = <0>;
80
Wang Long9697a552015-03-11 08:36:54 +000081 test-unittest12 {
Pantelis Antonioud5e75502015-01-12 19:02:49 +020082 reg = <8>;
Wang Long9697a552015-03-11 08:36:54 +000083 compatible = "unittest-i2c-dev";
Pantelis Antonioud5e75502015-01-12 19:02:49 +020084 status = "disabled";
85 };
86
Wang Long9697a552015-03-11 08:36:54 +000087 test-unittest13 {
Pantelis Antonioud5e75502015-01-12 19:02:49 +020088 reg = <9>;
Wang Long9697a552015-03-11 08:36:54 +000089 compatible = "unittest-i2c-dev";
Pantelis Antonioud5e75502015-01-12 19:02:49 +020090 status = "okay";
91 };
92
Wang Long9697a552015-03-11 08:36:54 +000093 test-unittest14 {
Pantelis Antonioud5e75502015-01-12 19:02:49 +020094 reg = <10>;
Wang Long9697a552015-03-11 08:36:54 +000095 compatible = "unittest-i2c-mux";
Pantelis Antonioud5e75502015-01-12 19:02:49 +020096 status = "okay";
97
98 #address-cells = <1>;
99 #size-cells = <0>;
100
101 i2c@0 {
102 #address-cells = <1>;
103 #size-cells = <0>;
104 reg = <0>;
105
106 test-mux-dev {
107 reg = <32>;
Wang Long9697a552015-03-11 08:36:54 +0000108 compatible = "unittest-i2c-dev";
Pantelis Antonioud5e75502015-01-12 19:02:49 +0200109 status = "okay";
110 };
111 };
112 };
113 };
Pantelis Antoniou177d2712014-10-28 22:35:59 +0200114 };
115 };
Pantelis Antoniou177d2712014-10-28 22:35:59 +0200116 };
117};