GNU Linux-libre 5.10.215-gnu1
[releases.git] / drivers / of / unittest-data / overlay_base.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3 /plugin/;
4
5 /*
6  * Base device tree that overlays will be applied against.
7  *
8  * Do not add any properties in node "/".
9  * Do not add any nodes other than "/testcase-data-2" in node "/".
10  * Do not add anything that would result in dtc creating node "/__fixups__".
11  * dtc will create nodes "/__symbols__" and "/__local_fixups__".
12  */
13
14 / {
15         testcase-data-2 {
16                 #address-cells = <1>;
17                 #size-cells = <1>;
18
19                 electric_1: substation@100 {
20                         compatible = "ot,big-volts-control";
21                         reg = < 0x00000100 0x100 >;
22                         status = "disabled";
23
24                         hvac_1: hvac-medium-1 {
25                                 compatible = "ot,hvac-medium";
26                                 heat-range = < 50 75 >;
27                                 cool-range = < 60 80 >;
28                         };
29
30                         spin_ctrl_1: motor-1 {
31                                 compatible = "ot,ferris-wheel-motor";
32                                 spin = "clockwise";
33                                 rpm_avail = < 50 >;
34                         };
35
36                         spin_ctrl_2: motor-8 {
37                                 compatible = "ot,roller-coaster-motor";
38                         };
39                 };
40
41                 rides_1: fairway-1 {
42                         #address-cells = <1>;
43                         #size-cells = <1>;
44                         compatible = "ot,rides";
45                         status = "disabled";
46                         orientation = < 127 >;
47
48                         ride@100 {
49                                 #address-cells = <1>;
50                                 #size-cells = <1>;
51                                 compatible = "ot,roller-coaster";
52                                 reg = < 0x00000100 0x100 >;
53                                 hvac-provider = < &hvac_1 >;
54                                 hvac-thermostat = < 29 > ;
55                                 hvac-zones = < 14 >;
56                                 hvac-zone-names = "operator";
57                                 spin-controller = < &spin_ctrl_2 5 &spin_ctrl_2 7 >;
58                                 spin-controller-names = "track_1", "track_2";
59                                 queues = < 2 >;
60
61                                 track@30 {
62                                         reg = < 0x00000030 0x10 >;
63                                 };
64
65                                 track@40 {
66                                         reg = < 0x00000040 0x10 >;
67                                 };
68
69                         };
70                 };
71
72                 lights_1: lights@30000 {
73                         compatible = "ot,work-lights";
74                         reg = < 0x00030000 0x1000 >;
75                         status = "disabled";
76                 };
77
78                 lights_2: lights@40000 {
79                         compatible = "ot,show-lights";
80                         reg = < 0x00040000 0x1000 >;
81                         status = "disabled";
82                         rate = < 13 138 >;
83                 };
84
85                 retail_1: vending@50000 {
86                         reg = < 0x00050000 0x1000 >;
87                         compatible = "ot,tickets";
88                         status = "disabled";
89                 };
90
91         };
92 };
93