Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / maxtherm-overlay.dts
1 /*
2  * Universal device tree overlay for SPI devices
3  */
4
5 /dts-v1/;
6 /plugin/;
7
8 #include <dt-bindings/iio/temperature/thermocouple.h>
9
10 / {
11         compatible = "brcm,bcm2835";
12
13         fragment@0 {
14                 target = <&spidev0>;
15                 __dormant__ {
16                         status = "disabled";
17                 };
18         };
19
20         fragment@1 {
21                 target = <&spidev1>;
22                 __dormant__ {
23                         status = "disabled";
24                 };
25         };
26
27         fragment@2 {
28                 target-path = "spi1/spidev@0";
29                 __dormant__ {
30                         status = "disabled";
31                 };
32         };
33
34         fragment@3 {
35                 target-path = "spi1/spidev@1";
36                 __dormant__ {
37                         status = "disabled";
38                 };
39         };
40
41         fragment@4 {
42                 target-path = "spi1/spidev@2";
43                 __dormant__ {
44                         status = "disabled";
45                 };
46         };
47
48         fragment@5 {
49                 target-path = "spi2/spidev@0";
50                 __dormant__ {
51                         status = "disabled";
52                 };
53         };
54
55         fragment@6 {
56                 target-path = "spi2/spidev@1";
57                 __dormant__ {
58                         status = "disabled";
59                 };
60         };
61
62         fragment@7 {
63                 target-path = "spi2/spidev@2";
64                 __dormant__ {
65                         status = "disabled";
66                 };
67         };
68
69         maxfrag: fragment@8 {
70                 target = <&spi0>;
71                 __overlay__ {
72                         status = "okay";
73                         #address-cells = <1>;
74                         #size-cells = <0>;
75
76                         max: maxtherm@0 {
77                                 compatible = "maxim,max6675";
78                                 reg = <0>;
79                                 spi-max-frequency = <500000>;
80                         };
81                 };
82         };
83
84         fragment@9 {
85                 target = <&max>;
86                 __dormant__ {
87                         compatible = "maxim,max31855e", "maxim,max31855";
88                 };
89         };
90
91         fragment@10 {
92                 target = <&max>;
93                 __dormant__ {
94                         compatible = "maxim,max31855j", "maxim,max31855";
95                 };
96         };
97
98         fragment@11 {
99                 target = <&max>;
100                 __dormant__ {
101                         compatible = "maxim,max31855k", "maxim,max31855";
102                 };
103         };
104
105         fragment@12 {
106                 target = <&max>;
107                 __dormant__ {
108                         compatible = "maxim,max31855n", "maxim,max31855";
109                 };
110         };
111
112         fragment@13 {
113                 target = <&max>;
114                 __dormant__ {
115                         compatible = "maxim,max31855r", "maxim,max31855";
116                 };
117         };
118
119         fragment@14 {
120                 target = <&max>;
121                 __dormant__ {
122                         compatible = "maxim,max31855s", "maxim,max31855";
123                 };
124         };
125
126         fragment@15 {
127                 target = <&max>;
128                 __dormant__ {
129                         compatible = "maxim,max31855t", "maxim,max31855";
130                 };
131         };
132
133         fragment@16 {
134                 target = <&max>;
135                 __dormant__ {
136                         compatible = "maxim,max31856";
137                         spi-cpha;
138                         thermocouple-type = <THERMOCOUPLE_TYPE_K>;
139                 };
140         };
141
142         __overrides__ {
143                 spi0-0 = <0>, "+0",
144                          <&maxfrag>,"target:0=",<&spi0>,
145                          <&max>,"reg:0=0";
146                 spi0-1 = <0>, "+1",
147                          <&maxfrag>,"target:0=",<&spi0>,
148                          <&max>,"reg:0=1";
149                 spi1-0 = <0>, "+2",
150                          <&maxfrag>,"target:0=",<&spi1>,
151                          <&max>,"reg:0=0";
152                 spi1-1 = <0>, "+3",
153                          <&maxfrag>,"target:0=",<&spi1>,
154                          <&max>,"reg:0=1";
155                 spi1-2 = <0>, "+4",
156                          <&maxfrag>,"target:0=",<&spi1>,
157                          <&max>,"reg:0=2";
158                 spi2-0 = <0>, "+5",
159                          <&maxfrag>,"target:0=",<&spi2>,
160                          <&max>,"reg:0=0";
161                 spi2-1 = <0>, "+6",
162                          <&maxfrag>,"target:0=",<&spi2>,
163                          <&max>,"reg:0=1";
164                 spi2-2 = <0>, "+7",
165                          <&maxfrag>,"target:0=",<&spi2>,
166                          <&max>,"reg:0=2";
167                 max6675 = <&max>,"compatible=maxim,max6675";
168                 max31855 = <&max>,"compatible=maxim,max31855";
169                 max31855e = <0>,"+9";
170                 max31855j = <0>,"+10";
171                 max31855k = <0>,"+11";
172                 max31855n = <0>,"+12";
173                 max31855r = <0>,"+13";
174                 max31855s = <0>,"+14";
175                 max31855t = <0>,"+15";
176                 max31856  = <0>,"+16";
177                 type_b    = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_B>;
178                 type_e    = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_E>;
179                 type_j    = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_J>;
180                 type_k    = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_K>;
181                 type_n    = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_N>;
182                 type_r    = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_R>;
183                 type_s    = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_S>;
184                 type_t    = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_T>;
185         };
186 };