Merge tag 'pnp-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / aspeed-bmc-ibm-rainier.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 // Copyright 2019 IBM Corp.
3 /dts-v1/;
4
5 #include "aspeed-g6.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
7
8 / {
9         model = "Rainier";
10         compatible = "ibm,rainier-bmc", "aspeed,ast2600";
11
12         aliases {
13                 serial4 = &uart5;
14         };
15
16         chosen {
17                 stdout-path = &uart5;
18                 bootargs = "console=ttyS4,115200n8";
19         };
20
21         memory@80000000 {
22                 device_type = "memory";
23                 reg = <0x80000000 0x40000000>;
24         };
25
26         reserved-memory {
27                 #address-cells = <1>;
28                 #size-cells = <1>;
29                 ranges;
30
31                 flash_memory: region@B8000000 {
32                         no-map;
33                         reg = <0xB8000000 0x04000000>; /* 64M */
34                 };
35         };
36
37         gpio-keys {
38                 compatible = "gpio-keys";
39
40                 ps0-presence {
41                         label = "ps0-presence";
42                         gpios = <&gpio0 ASPEED_GPIO(S, 0) GPIO_ACTIVE_LOW>;
43                         linux,code = <ASPEED_GPIO(S, 0)>;
44                 };
45
46                 ps1-presence {
47                         label = "ps1-presence";
48                         gpios = <&gpio0 ASPEED_GPIO(S, 1) GPIO_ACTIVE_LOW>;
49                         linux,code = <ASPEED_GPIO(S, 1)>;
50                 };
51
52                 ps2-presence {
53                         label = "ps2-presence";
54                         gpios = <&gpio0 ASPEED_GPIO(S, 2) GPIO_ACTIVE_LOW>;
55                         linux,code = <ASPEED_GPIO(S, 2)>;
56                 };
57
58                 ps3-presence {
59                         label = "ps3-presence";
60                         gpios = <&gpio0 ASPEED_GPIO(S, 3) GPIO_ACTIVE_LOW>;
61                         linux,code = <ASPEED_GPIO(S, 3)>;
62                 };
63         };
64
65 };
66
67 &emmc_controller {
68         status = "okay";
69 };
70
71 &emmc {
72         status = "okay";
73 };
74
75 &ibt {
76         status = "okay";
77 };
78
79 &i2c0 {
80         status = "okay";
81
82         eeprom@51 {
83                 compatible = "atmel,24c64";
84                 reg = <0x51>;
85         };
86 };
87
88 &i2c1 {
89         status = "okay";
90 };
91
92 &i2c2 {
93         status = "okay";
94 };
95
96 &i2c3 {
97         status = "okay";
98
99         power-supply@68 {
100                 compatible = "ibm,cffps2";
101                 reg = <0x68>;
102         };
103
104         power-supply@69 {
105                 compatible = "ibm,cffps2";
106                 reg = <0x69>;
107         };
108
109         power-supply@6a {
110                 compatible = "ibm,cffps2";
111                 reg = <0x6a>;
112         };
113
114         power-supply@6b {
115                 compatible = "ibm,cffps2";
116                 reg = <0x6b>;
117         };
118 };
119
120 &i2c4 {
121         status = "okay";
122
123         tmp275@48 {
124                 compatible = "ti,tmp275";
125                 reg = <0x48>;
126         };
127
128         tmp275@49 {
129                 compatible = "ti,tmp275";
130                 reg = <0x49>;
131         };
132
133         tmp275@4a {
134                 compatible = "ti,tmp275";
135                 reg = <0x4a>;
136         };
137
138         eeprom@50 {
139                 compatible = "atmel,24c64";
140                 reg = <0x50>;
141         };
142
143         eeprom@51 {
144                 compatible = "atmel,24c64";
145                 reg = <0x51>;
146         };
147
148         eeprom@52 {
149                 compatible = "atmel,24c64";
150                 reg = <0x52>;
151         };
152 };
153
154 &i2c5 {
155         status = "okay";
156
157         tmp275@48 {
158                 compatible = "ti,tmp275";
159                 reg = <0x48>;
160         };
161
162         tmp275@49 {
163                 compatible = "ti,tmp275";
164                 reg = <0x49>;
165         };
166
167         eeprom@50 {
168                 compatible = "atmel,24c64";
169                 reg = <0x50>;
170         };
171
172         eeprom@51 {
173                 compatible = "atmel,24c64";
174                 reg = <0x51>;
175         };
176 };
177
178 &i2c6 {
179         status = "okay";
180
181         tmp275@48 {
182                 compatible = "ti,tmp275";
183                 reg = <0x48>;
184         };
185
186         tmp275@4a {
187                 compatible = "ti,tmp275";
188                 reg = <0x4a>;
189         };
190
191         tmp275@4b {
192                 compatible = "ti,tmp275";
193                 reg = <0x4b>;
194         };
195
196         eeprom@50 {
197                 compatible = "atmel,24c64";
198                 reg = <0x50>;
199         };
200
201         eeprom@51 {
202                 compatible = "atmel,24c64";
203                 reg = <0x51>;
204         };
205
206         eeprom@52 {
207                 compatible = "atmel,24c64";
208                 reg = <0x52>;
209         };
210
211         eeprom@53 {
212                 compatible = "atmel,24c64";
213                 reg = <0x53>;
214         };
215 };
216
217 &i2c7 {
218         status = "okay";
219
220         si7021-a20@20 {
221                 compatible = "silabs,si7020";
222                 reg = <0x20>;
223         };
224
225         tmp275@48 {
226                 compatible = "ti,tmp275";
227                 reg = <0x48>;
228         };
229
230         max31785@52 {
231                 compatible = "maxim,max31785a";
232                 reg = <0x52>;
233                 #address-cells = <1>;
234                 #size-cells = <0>;
235
236                 fan@0 {
237                         compatible = "pmbus-fan";
238                         reg = <0>;
239                         tach-pulses = <2>;
240                 };
241
242                 fan@1 {
243                         compatible = "pmbus-fan";
244                         reg = <1>;
245                         tach-pulses = <2>;
246                 };
247
248                 fan@2 {
249                         compatible = "pmbus-fan";
250                         reg = <2>;
251                         tach-pulses = <2>;
252                 };
253
254                 fan@3 {
255                         compatible = "pmbus-fan";
256                         reg = <3>;
257                         tach-pulses = <2>;
258                 };
259         };
260
261         pca0: pca9552@61 {
262                 compatible = "nxp,pca9552";
263                 reg = <0x61>;
264                 #address-cells = <1>;
265                 #size-cells = <0>;
266
267                 gpio-controller;
268                 #gpio-cells = <2>;
269
270                 gpio@0 {
271                         reg = <0>;
272                 };
273
274                 gpio@1 {
275                         reg = <1>;
276                 };
277
278                 gpio@2 {
279                         reg = <2>;
280                 };
281
282                 gpio@3 {
283                         reg = <3>;
284                 };
285
286                 gpio@4 {
287                         reg = <4>;
288                 };
289
290                 gpio@5 {
291                         reg = <5>;
292                 };
293
294                 gpio@6 {
295                         reg = <6>;
296                 };
297
298                 gpio@7 {
299                         reg = <7>;
300                 };
301
302                 gpio@8 {
303                         reg = <8>;
304                 };
305
306                 gpio@9 {
307                         reg = <9>;
308                 };
309
310                 gpio@10 {
311                         reg = <10>;
312                 };
313
314                 gpio@11 {
315                         reg = <11>;
316                 };
317
318                 gpio@12 {
319                         reg = <12>;
320                 };
321
322                 gpio@13 {
323                         reg = <13>;
324                 };
325
326                 gpio@14 {
327                         reg = <14>;
328                 };
329
330                 gpio@15 {
331                         reg = <15>;
332                 };
333         };
334
335         dps: dps310@76 {
336                 compatible = "infineon,dps310";
337                 reg = <0x76>;
338                 #io-channel-cells = <0>;
339         };
340
341         eeprom@50 {
342                 compatible = "atmel,24c64";
343                 reg = <0x50>;
344         };
345
346         eeprom@51 {
347                 compatible = "atmel,24c64";
348                 reg = <0x51>;
349         };
350 };
351
352 &i2c8 {
353         status = "okay";
354
355         ucd90320@b {
356                 compatible = "ti,ucd90160";
357                 reg = <0x0b>;
358         };
359
360         ucd90320@c {
361                 compatible = "ti,ucd90160";
362                 reg = <0x0c>;
363         };
364
365         ucd90320@11 {
366                 compatible = "ti,ucd90160";
367                 reg = <0x11>;
368         };
369
370         rtc@32 {
371                 compatible = "epson,rx8900";
372                 reg = <0x32>;
373         };
374
375         tmp275@48 {
376                 compatible = "ti,tmp275";
377                 reg = <0x48>;
378         };
379
380         tmp275@4a {
381                 compatible = "ti,tmp275";
382                 reg = <0x4a>;
383         };
384
385         eeprom@50 {
386                 compatible = "atmel,24c64";
387                 reg = <0x50>;
388         };
389
390         eeprom@51 {
391                 compatible = "atmel,24c64";
392                 reg = <0x51>;
393         };
394 };
395
396 &i2c9 {
397         status = "okay";
398
399         ir35221@42 {
400                 compatible = "infineon,ir35221";
401                 reg = <0x42>;
402         };
403
404         ir35221@43 {
405                 compatible = "infineon,ir35221";
406                 reg = <0x43>;
407         };
408
409         ir35221@44 {
410                 compatible = "infineon,ir35221";
411                 reg = <0x44>;
412         };
413
414         tmp423a@4c {
415                 compatible = "ti,tmp423";
416                 reg = <0x4c>;
417         };
418
419         tmp423b@4d {
420                 compatible = "ti,tmp423";
421                 reg = <0x4d>;
422         };
423
424         ir35221@72 {
425                 compatible = "infineon,ir35221";
426                 reg = <0x72>;
427         };
428
429         ir35221@73 {
430                 compatible = "infineon,ir35221";
431                 reg = <0x73>;
432         };
433
434         ir35221@74 {
435                 compatible = "infineon,ir35221";
436                 reg = <0x74>;
437         };
438
439         eeprom@50 {
440                 compatible = "atmel,24c128";
441                 reg = <0x50>;
442         };
443 };
444
445 &i2c10 {
446         status = "okay";
447
448         ir35221@42 {
449                 compatible = "infineon,ir35221";
450                 reg = <0x42>;
451         };
452
453         ir35221@43 {
454                 compatible = "infineon,ir35221";
455                 reg = <0x43>;
456         };
457
458         ir35221@44 {
459                 compatible = "infineon,ir35221";
460                 reg = <0x44>;
461         };
462
463         tmp423a@4c {
464                 compatible = "ti,tmp423";
465                 reg = <0x4c>;
466         };
467
468         tmp423b@4d {
469                 compatible = "ti,tmp423";
470                 reg = <0x4d>;
471         };
472
473         ir35221@72 {
474                 compatible = "infineon,ir35221";
475                 reg = <0x72>;
476         };
477
478         ir35221@73 {
479                 compatible = "infineon,ir35221";
480                 reg = <0x73>;
481         };
482
483         ir35221@74 {
484                 compatible = "infineon,ir35221";
485                 reg = <0x74>;
486         };
487
488         eeprom@50 {
489                 compatible = "atmel,24c128";
490                 reg = <0x50>;
491         };
492 };
493
494 &i2c11 {
495         status = "okay";
496
497         tmp275@48 {
498                 compatible = "ti,tmp275";
499                 reg = <0x48>;
500         };
501
502         tmp275@49 {
503                 compatible = "ti,tmp275";
504                 reg = <0x49>;
505         };
506
507         eeprom@50 {
508                 compatible = "atmel,24c64";
509                 reg = <0x50>;
510         };
511
512         eeprom@51 {
513                 compatible = "atmel,24c64";
514                 reg = <0x51>;
515         };
516 };
517
518 &i2c12 {
519         status = "okay";
520 };
521
522 &i2c13 {
523         status = "okay";
524
525         eeprom@50 {
526                 compatible = "atmel,24c64";
527                 reg = <0x50>;
528         };
529 };
530
531 &i2c14 {
532         status = "okay";
533
534         eeprom@50 {
535                 compatible = "atmel,24c64";
536                 reg = <0x50>;
537         };
538 };
539
540 &i2c15 {
541         status = "okay";
542
543         eeprom@50 {
544                 compatible = "atmel,24c64";
545                 reg = <0x50>;
546         };
547 };
548
549 &vuart1 {
550         status = "okay";
551 };
552
553 &lpc_ctrl {
554         status = "okay";
555         memory-region = <&flash_memory>;
556 };
557
558 &mac2 {
559         status = "okay";
560         pinctrl-names = "default";
561         pinctrl-0 = <&pinctrl_rmii3_default>;
562         clocks = <&syscon ASPEED_CLK_GATE_MAC3CLK>,
563                  <&syscon ASPEED_CLK_MAC3RCLK>;
564         clock-names = "MACCLK", "RCLK";
565         use-ncsi;
566 };
567
568 &mac3 {
569         status = "okay";
570         pinctrl-names = "default";
571         pinctrl-0 = <&pinctrl_rmii4_default>;
572         clocks = <&syscon ASPEED_CLK_GATE_MAC4CLK>,
573                  <&syscon ASPEED_CLK_MAC4RCLK>;
574         clock-names = "MACCLK", "RCLK";
575         use-ncsi;
576 };
577
578 &fmc {
579         status = "okay";
580         flash@0 {
581                 status = "okay";
582                 m25p,fast-read;
583                 label = "bmc";
584                 spi-max-frequency = <50000000>;
585 #include "openbmc-flash-layout-128.dtsi"
586         };
587
588         flash@1 {
589                 status = "okay";
590                 m25p,fast-read;
591                 label = "alt-bmc";
592                 spi-max-frequency = <50000000>;
593         };
594 };
595
596 &spi1 {
597         status = "okay";
598         pinctrl-names = "default";
599         pinctrl-0 = <&pinctrl_spi1_default>;
600
601         flash@0 {
602                 status = "okay";
603                 m25p,fast-read;
604                 label = "pnor";
605                 spi-max-frequency = <100000000>;
606         };
607 };