summaryrefslogtreecommitdiff
path: root/drivers/of/unittest-data/tests-overlay.dtsi
blob: 4ea024d908ee22d6eae398c2f6ef8f6c59c12431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// SPDX-License-Identifier: GPL-2.0

/ {
	testcase-data {
		overlay-node {

			/* test bus */
			unittest_test_bus: test-bus {
				compatible = "simple-bus";
				#address-cells = <1>;
				#size-cells = <0>;

				unittest100: test-unittest100 {
					compatible = "unittest";
					status = "okay";
					reg = <100>;
				};

				unittest101: test-unittest101 {
					compatible = "unittest";
					status = "disabled";
					reg = <101>;
				};

				unittest0: test-unittest0 {
					compatible = "unittest";
					status = "disabled";
					reg = <0>;
				};

				unittest1: test-unittest1 {
					compatible = "unittest";
					status = "okay";
					reg = <1>;
				};

				unittest2: test-unittest2 {
					compatible = "unittest";
					status = "disabled";
					reg = <2>;
				};

				unittest3: test-unittest3 {
					compatible = "unittest";
					status = "okay";
					reg = <3>;
				};

				unittest5: test-unittest5 {
					compatible = "unittest";
					status = "disabled";
					reg = <5>;
				};

				unittest6: test-unittest6 {
					compatible = "unittest";
					status = "disabled";
					reg = <6>;
				};

				unittest7: test-unittest7 {
					compatible = "unittest";
					status = "disabled";
					reg = <7>;
				};

				unittest8: test-unittest8 {
					compatible = "unittest";
					status = "disabled";
					reg = <8>;
				};

				unittest_i2c_test_bus: i2c-test-bus {
					compatible = "unittest-i2c-bus";
					status = "okay";
					reg = <50>;

					#address-cells = <1>;
					#size-cells = <0>;

					test-unittest12 {
						reg = <8>;
						compatible = "unittest-i2c-dev";
						status = "disabled";
					};

					test-unittest13 {
						reg = <9>;
						compatible = "unittest-i2c-dev";
						status = "okay";
					};

					test-unittest14 {
						reg = <10>;
						compatible = "unittest-i2c-mux";
						status = "okay";

						#address-cells = <1>;
						#size-cells = <0>;

						i2c@0 {
							#address-cells = <1>;
							#size-cells = <0>;
							reg = <0>;

							test-mux-dev@20 {
								reg = <0x20>;
								compatible = "unittest-i2c-dev";
								status = "okay";
							};
						};
					};
				};
			};
		};
	};
};