Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[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,cffps";
101                 reg = <0x68>;
102         };
103
104         power-supply@69 {
105                 compatible = "ibm,cffps";
106                 reg = <0x69>;
107         };
108
109         power-supply@6a {
110                 compatible = "ibm,cffps";
111                 reg = <0x6a>;
112         };
113
114         power-supply@6b {
115                 compatible = "ibm,cffps";
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@11 {
356                 compatible = "ti,ucd90320";
357                 reg = <0x11>;
358         };
359
360         rtc@32 {
361                 compatible = "epson,rx8900";
362                 reg = <0x32>;
363         };
364
365         tmp275@48 {
366                 compatible = "ti,tmp275";
367                 reg = <0x48>;
368         };
369
370         tmp275@4a {
371                 compatible = "ti,tmp275";
372                 reg = <0x4a>;
373         };
374
375         eeprom@50 {
376                 compatible = "atmel,24c64";
377                 reg = <0x50>;
378         };
379
380         eeprom@51 {
381                 compatible = "atmel,24c64";
382                 reg = <0x51>;
383         };
384 };
385
386 &i2c9 {
387         status = "okay";
388
389         ir35221@42 {
390                 compatible = "infineon,ir35221";
391                 reg = <0x42>;
392         };
393
394         ir35221@43 {
395                 compatible = "infineon,ir35221";
396                 reg = <0x43>;
397         };
398
399         ir35221@44 {
400                 compatible = "infineon,ir35221";
401                 reg = <0x44>;
402         };
403
404         tmp423a@4c {
405                 compatible = "ti,tmp423";
406                 reg = <0x4c>;
407         };
408
409         tmp423b@4d {
410                 compatible = "ti,tmp423";
411                 reg = <0x4d>;
412         };
413
414         ir35221@72 {
415                 compatible = "infineon,ir35221";
416                 reg = <0x72>;
417         };
418
419         ir35221@73 {
420                 compatible = "infineon,ir35221";
421                 reg = <0x73>;
422         };
423
424         ir35221@74 {
425                 compatible = "infineon,ir35221";
426                 reg = <0x74>;
427         };
428
429         eeprom@50 {
430                 compatible = "atmel,24c128";
431                 reg = <0x50>;
432         };
433 };
434
435 &i2c10 {
436         status = "okay";
437
438         ir35221@42 {
439                 compatible = "infineon,ir35221";
440                 reg = <0x42>;
441         };
442
443         ir35221@43 {
444                 compatible = "infineon,ir35221";
445                 reg = <0x43>;
446         };
447
448         ir35221@44 {
449                 compatible = "infineon,ir35221";
450                 reg = <0x44>;
451         };
452
453         tmp423a@4c {
454                 compatible = "ti,tmp423";
455                 reg = <0x4c>;
456         };
457
458         tmp423b@4d {
459                 compatible = "ti,tmp423";
460                 reg = <0x4d>;
461         };
462
463         ir35221@72 {
464                 compatible = "infineon,ir35221";
465                 reg = <0x72>;
466         };
467
468         ir35221@73 {
469                 compatible = "infineon,ir35221";
470                 reg = <0x73>;
471         };
472
473         ir35221@74 {
474                 compatible = "infineon,ir35221";
475                 reg = <0x74>;
476         };
477
478         eeprom@50 {
479                 compatible = "atmel,24c128";
480                 reg = <0x50>;
481         };
482 };
483
484 &i2c11 {
485         status = "okay";
486
487         tmp275@48 {
488                 compatible = "ti,tmp275";
489                 reg = <0x48>;
490         };
491
492         tmp275@49 {
493                 compatible = "ti,tmp275";
494                 reg = <0x49>;
495         };
496
497         eeprom@50 {
498                 compatible = "atmel,24c64";
499                 reg = <0x50>;
500         };
501
502         eeprom@51 {
503                 compatible = "atmel,24c64";
504                 reg = <0x51>;
505         };
506 };
507
508 &i2c12 {
509         status = "okay";
510 };
511
512 &i2c13 {
513         status = "okay";
514
515         eeprom@50 {
516                 compatible = "atmel,24c64";
517                 reg = <0x50>;
518         };
519 };
520
521 &i2c14 {
522         status = "okay";
523
524         eeprom@50 {
525                 compatible = "atmel,24c64";
526                 reg = <0x50>;
527         };
528 };
529
530 &i2c15 {
531         status = "okay";
532
533         eeprom@50 {
534                 compatible = "atmel,24c64";
535                 reg = <0x50>;
536         };
537 };
538
539 &vuart1 {
540         status = "okay";
541 };
542
543 &lpc_ctrl {
544         status = "okay";
545         memory-region = <&flash_memory>;
546 };
547
548 &mac2 {
549         status = "okay";
550         pinctrl-names = "default";
551         pinctrl-0 = <&pinctrl_rmii3_default>;
552         clocks = <&syscon ASPEED_CLK_GATE_MAC3CLK>,
553                  <&syscon ASPEED_CLK_MAC3RCLK>;
554         clock-names = "MACCLK", "RCLK";
555         use-ncsi;
556 };
557
558 &mac3 {
559         status = "okay";
560         pinctrl-names = "default";
561         pinctrl-0 = <&pinctrl_rmii4_default>;
562         clocks = <&syscon ASPEED_CLK_GATE_MAC4CLK>,
563                  <&syscon ASPEED_CLK_MAC4RCLK>;
564         clock-names = "MACCLK", "RCLK";
565         use-ncsi;
566 };
567
568 &fmc {
569         status = "okay";
570         flash@0 {
571                 status = "okay";
572                 m25p,fast-read;
573                 label = "bmc";
574                 spi-max-frequency = <50000000>;
575 #include "openbmc-flash-layout-128.dtsi"
576         };
577
578         flash@1 {
579                 status = "okay";
580                 m25p,fast-read;
581                 label = "alt-bmc";
582                 spi-max-frequency = <50000000>;
583         };
584 };
585
586 &spi1 {
587         status = "okay";
588         pinctrl-names = "default";
589         pinctrl-0 = <&pinctrl_spi1_default>;
590
591         flash@0 {
592                 status = "okay";
593                 m25p,fast-read;
594                 label = "pnor";
595                 spi-max-frequency = <100000000>;
596         };
597 };