GNU Linux-libre 4.19.263-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                         };
34
35                         spin_ctrl_2: motor-8 {
36                                 compatible = "ot,roller-coaster-motor";
37                         };
38                 };
39
40                 rides_1: fairway-1 {
41                         #address-cells = <1>;
42                         #size-cells = <1>;
43                         compatible = "ot,rides";
44                         status = "disabled";
45                         orientation = < 127 >;
46
47                         ride@100 {
48                                 #address-cells = <1>;
49                                 #size-cells = <1>;
50                                 compatible = "ot,roller-coaster";
51                                 reg = < 0x00000100 0x100 >;
52                                 hvac-provider = < &hvac_1 >;
53                                 hvac-thermostat = < 29 > ;
54                                 hvac-zones = < 14 >;
55                                 hvac-zone-names = "operator";
56                                 spin-controller = < &spin_ctrl_2 5 &spin_ctrl_2 7 >;
57                                 spin-controller-names = "track_1", "track_2";
58                                 queues = < 2 >;
59
60                                 track@30 {
61                                         reg = < 0x00000030 0x10 >;
62                                 };
63
64                                 track@40 {
65                                         reg = < 0x00000040 0x10 >;
66                                 };
67
68                         };
69                 };
70
71                 lights_1: lights@30000 {
72                         compatible = "ot,work-lights";
73                         reg = < 0x00030000 0x1000 >;
74                         status = "disabled";
75                 };
76
77                 lights_2: lights@40000 {
78                         compatible = "ot,show-lights";
79                         reg = < 0x00040000 0x1000 >;
80                         status = "disabled";
81                         rate = < 13 138 >;
82                 };
83
84                 retail_1: vending@50000 {
85                         reg = < 0x00050000 0x1000 >;
86                         compatible = "ot,tickets";
87                         status = "disabled";
88                 };
89
90         };
91 };
92