Merge tag 'printk-for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/pmladek...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / aspeed-bmc-opp-witherspoon.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /dts-v1/;
3 #include "aspeed-g5.dtsi"
4 #include <dt-bindings/gpio/aspeed-gpio.h>
5 #include <dt-bindings/leds/leds-pca955x.h>
6
7 / {
8         model = "Witherspoon BMC";
9         compatible = "ibm,witherspoon-bmc", "aspeed,ast2500";
10
11         chosen {
12                 stdout-path = &uart5;
13                 bootargs = "console=ttyS4,115200 earlyprintk";
14         };
15
16         memory@80000000 {
17                 reg = <0x80000000 0x20000000>;
18         };
19
20         reserved-memory {
21                 #address-cells = <1>;
22                 #size-cells = <1>;
23                 ranges;
24
25                 flash_memory: region@98000000 {
26                         no-map;
27                         reg = <0x98000000 0x04000000>; /* 64M */
28                 };
29
30                 gfx_memory: framebuffer {
31                         size = <0x01000000>;
32                         alignment = <0x01000000>;
33                         compatible = "shared-dma-pool";
34                         reusable;
35                 };
36         };
37
38         gpio-keys {
39                 compatible = "gpio-keys";
40
41                 air-water {
42                         label = "air-water";
43                         gpios = <&gpio ASPEED_GPIO(B, 5) GPIO_ACTIVE_LOW>;
44                         linux,code = <ASPEED_GPIO(B, 5)>;
45                 };
46
47                 checkstop {
48                         label = "checkstop";
49                         gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
50                         linux,code = <ASPEED_GPIO(J, 2)>;
51                 };
52
53                 ps0-presence {
54                         label = "ps0-presence";
55                         gpios = <&gpio ASPEED_GPIO(P, 7) GPIO_ACTIVE_LOW>;
56                         linux,code = <ASPEED_GPIO(P, 7)>;
57                 };
58
59                 ps1-presence {
60                         label = "ps1-presence";
61                         gpios = <&gpio ASPEED_GPIO(N, 0) GPIO_ACTIVE_LOW>;
62                         linux,code = <ASPEED_GPIO(N, 0)>;
63                 };
64         };
65
66         iio-hwmon-battery {
67                 compatible = "iio-hwmon";
68                 io-channels = <&adc 12>;
69         };
70
71         gpio-keys-polled {
72                 compatible = "gpio-keys-polled";
73                 #address-cells = <1>;
74                 #size-cells = <0>;
75                 poll-interval = <1000>;
76
77                 fan0-presence {
78                         label = "fan0-presence";
79                         gpios = <&pca0 4 GPIO_ACTIVE_LOW>;
80                         linux,code = <4>;
81                 };
82
83                 fan1-presence {
84                         label = "fan1-presence";
85                         gpios = <&pca0 5 GPIO_ACTIVE_LOW>;
86                         linux,code = <5>;
87                 };
88
89                 fan2-presence {
90                         label = "fan2-presence";
91                         gpios = <&pca0 6 GPIO_ACTIVE_LOW>;
92                         linux,code = <6>;
93                 };
94
95                 fan3-presence {
96                         label = "fan3-presence";
97                         gpios = <&pca0 7 GPIO_ACTIVE_LOW>;
98                         linux,code = <7>;
99                 };
100         };
101
102         leds {
103                 compatible = "gpio-leds";
104
105                 fan0 {
106                         retain-state-shutdown;
107                         default-state = "keep";
108                         gpios = <&pca0 0 GPIO_ACTIVE_LOW>;
109                 };
110
111                 fan1 {
112                         retain-state-shutdown;
113                         default-state = "keep";
114                         gpios = <&pca0 1 GPIO_ACTIVE_LOW>;
115                 };
116
117                 fan2 {
118                         retain-state-shutdown;
119                         default-state = "keep";
120                         gpios = <&pca0 2 GPIO_ACTIVE_LOW>;
121                 };
122
123                 fan3 {
124                         retain-state-shutdown;
125                         default-state = "keep";
126                         gpios = <&pca0 3 GPIO_ACTIVE_LOW>;
127                 };
128
129                 front-fault {
130                         retain-state-shutdown;
131                         default-state = "keep";
132                         gpios = <&pca0 13 GPIO_ACTIVE_LOW>;
133                 };
134
135                 front-power {
136                         retain-state-shutdown;
137                         default-state = "keep";
138                         gpios = <&pca0 14 GPIO_ACTIVE_LOW>;
139                 };
140
141                 front-id {
142                         retain-state-shutdown;
143                         default-state = "keep";
144                         gpios = <&pca0 15 GPIO_ACTIVE_LOW>;
145                 };
146
147                 rear-fault {
148                         gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>;
149                 };
150
151                 rear-id {
152                         gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_LOW>;
153                 };
154
155                 rear-power {
156                         gpios = <&gpio ASPEED_GPIO(N, 3) GPIO_ACTIVE_LOW>;
157                 };
158
159                 power-button {
160                         gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
161                 };
162         };
163
164         fsi: gpio-fsi {
165                 compatible = "fsi-master-gpio", "fsi-master";
166                 #address-cells = <2>;
167                 #size-cells = <0>;
168                 no-gpio-delays;
169
170                 clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
171                 data-gpios = <&gpio ASPEED_GPIO(E, 0) GPIO_ACTIVE_HIGH>;
172                 mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
173                 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
174                 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
175         };
176
177         iio-hwmon-dps310 {
178                 compatible = "iio-hwmon";
179                 io-channels = <&dps 0>;
180         };
181
182         iio-hwmon-bmp280 {
183                 compatible = "iio-hwmon";
184                 io-channels = <&bmp 1>;
185         };
186
187 };
188
189 &fmc {
190         status = "okay";
191
192         flash@0 {
193                 status = "okay";
194                 label = "bmc";
195                 m25p,fast-read;
196
197                 partitions {
198                         #address-cells = < 1 >;
199                         #size-cells = < 1 >;
200                         compatible = "fixed-partitions";
201                         u-boot@0 {
202                                 reg = < 0 0x60000 >;
203                                 label = "u-boot";
204                         };
205                         u-boot-env@60000 {
206                                 reg = < 0x60000 0x20000 >;
207                                 label = "u-boot-env";
208                         };
209                         obmc-ubi@80000 {
210                                 reg = < 0x80000 0x1F80000 >;
211                                 label = "obmc-ubi";
212                         };
213                 };
214         };
215
216         flash@1 {
217                 status = "okay";
218                 label = "alt-bmc";
219                 m25p,fast-read;
220
221                 partitions {
222                         #address-cells = < 1 >;
223                         #size-cells = < 1 >;
224                         compatible = "fixed-partitions";
225                         u-boot@0 {
226                                 reg = < 0 0x60000 >;
227                                 label = "alt-u-boot";
228                         };
229                         u-boot-env@60000 {
230                                 reg = < 0x60000 0x20000 >;
231                                 label = "alt-u-boot-env";
232                         };
233                         obmc-ubi@80000 {
234                                 reg = < 0x80000 0x1F80000 >;
235                                 label = "alt-obmc-ubi";
236                         };
237                 };
238
239         };
240 };
241
242 &spi1 {
243         status = "okay";
244         pinctrl-names = "default";
245         pinctrl-0 = <&pinctrl_spi1_default>;
246
247         flash@0 {
248                 status = "okay";
249                 label = "pnor";
250                 m25p,fast-read;
251         };
252 };
253
254 &uart1 {
255         /* Rear RS-232 connector */
256         status = "okay";
257         pinctrl-names = "default";
258         pinctrl-0 = <&pinctrl_txd1_default
259                         &pinctrl_rxd1_default
260                         &pinctrl_nrts1_default
261                         &pinctrl_ndtr1_default
262                         &pinctrl_ndsr1_default
263                         &pinctrl_ncts1_default
264                         &pinctrl_ndcd1_default
265                         &pinctrl_nri1_default>;
266 };
267
268 &uart2 {
269         /* APSS */
270         status = "okay";
271         pinctrl-names = "default";
272         pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
273 };
274
275 &uart5 {
276         status = "okay";
277 };
278
279 &lpc_ctrl {
280         status = "okay";
281         memory-region = <&flash_memory>;
282         flash = <&spi1>;
283 };
284
285 &mac0 {
286         status = "okay";
287         pinctrl-names = "default";
288         pinctrl-0 = <&pinctrl_rmii1_default>;
289         use-ncsi;
290 };
291
292 &i2c2 {
293         status = "okay";
294
295         /* MUX ->
296          *    Samtec 1
297          *    Samtec 2
298          */
299 };
300
301 &i2c3 {
302         status = "okay";
303
304         bmp: bmp280@77 {
305                 compatible = "bosch,bmp280";
306                 reg = <0x77>;
307                 #io-channel-cells = <1>;
308         };
309
310         max31785@52 {
311                 compatible = "maxim,max31785a";
312                 reg = <0x52>;
313                 #address-cells = <1>;
314                 #size-cells = <0>;
315         };
316
317         dps: dps310@76 {
318                 compatible = "infineon,dps310";
319                 reg = <0x76>;
320                 #io-channel-cells = <0>;
321         };
322
323         pca0: pca9552@60 {
324                 compatible = "nxp,pca9552";
325                 reg = <0x60>;
326                 #address-cells = <1>;
327                 #size-cells = <0>;
328
329                 gpio-controller;
330                 #gpio-cells = <2>;
331
332                 gpio@0 {
333                         reg = <0>;
334                         type = <PCA955X_TYPE_GPIO>;
335                 };
336
337                 gpio@1 {
338                         reg = <1>;
339                         type = <PCA955X_TYPE_GPIO>;
340                 };
341
342                 gpio@2 {
343                         reg = <2>;
344                         type = <PCA955X_TYPE_GPIO>;
345                 };
346
347                 gpio@3 {
348                         reg = <3>;
349                         type = <PCA955X_TYPE_GPIO>;
350                 };
351
352                 gpio@4 {
353                         reg = <4>;
354                         type = <PCA955X_TYPE_GPIO>;
355                 };
356
357                 gpio@5 {
358                         reg = <5>;
359                         type = <PCA955X_TYPE_GPIO>;
360                 };
361
362                 gpio@6 {
363                         reg = <6>;
364                         type = <PCA955X_TYPE_GPIO>;
365                 };
366
367                 gpio@7 {
368                         reg = <7>;
369                         type = <PCA955X_TYPE_GPIO>;
370                 };
371
372                 gpio@8 {
373                         reg = <8>;
374                         type = <PCA955X_TYPE_GPIO>;
375                 };
376
377                 gpio@9 {
378                         reg = <9>;
379                         type = <PCA955X_TYPE_GPIO>;
380                 };
381
382                 gpio@10 {
383                         reg = <10>;
384                         type = <PCA955X_TYPE_GPIO>;
385                 };
386
387                 gpio@11 {
388                         reg = <11>;
389                         type = <PCA955X_TYPE_GPIO>;
390                 };
391
392                 gpio@12 {
393                         reg = <12>;
394                         type = <PCA955X_TYPE_GPIO>;
395                 };
396
397                 gpio@13 {
398                         reg = <13>;
399                         type = <PCA955X_TYPE_GPIO>;
400                 };
401
402                 gpio@14 {
403                         reg = <14>;
404                         type = <PCA955X_TYPE_GPIO>;
405                 };
406
407                 gpio@15 {
408                         reg = <15>;
409                         type = <PCA955X_TYPE_GPIO>;
410                 };
411         };
412
413         power-supply@68 {
414                 compatible = "ibm,cffps1";
415                 reg = <0x68>;
416         };
417
418         power-supply@69 {
419                 compatible = "ibm,cffps1";
420                 reg = <0x69>;
421         };
422 };
423
424 &i2c4 {
425         status = "okay";
426
427         tmp423a@4c {
428                 compatible = "ti,tmp423";
429                 reg = <0x4c>;
430         };
431
432         ir35221@70 {
433                 compatible = "infineon,ir35221";
434                 reg = <0x70>;
435         };
436
437         ir35221@71 {
438                 compatible = "infineon,ir35221";
439                 reg = <0x71>;
440         };
441 };
442
443
444 &i2c5 {
445         status = "okay";
446
447         tmp423a@4c {
448                 compatible = "ti,tmp423";
449                 reg = <0x4c>;
450         };
451
452         ir35221@70 {
453                 compatible = "infineon,ir35221";
454                 reg = <0x70>;
455         };
456
457         ir35221@71 {
458                 compatible = "infineon,ir35221";
459                 reg = <0x71>;
460         };
461 };
462
463 &i2c9 {
464         status = "okay";
465
466         tmp275@4a {
467                 compatible = "ti,tmp275";
468                 reg = <0x4a>;
469         };
470 };
471
472 &i2c10 {
473         /* MUX
474          *   -> PCIe Slot 3
475          *   -> PCIe Slot 4
476          */
477         status = "okay";
478 };
479
480 &i2c11 {
481         status = "okay";
482
483         pca9552: pca9552@60 {
484                 compatible = "nxp,pca9552";
485                 reg = <0x60>;
486                 #address-cells = <1>;
487                 #size-cells = <0>;
488                 gpio-controller;
489                 #gpio-cells = <2>;
490
491                 gpio-line-names = "PS_SMBUS_RESET_N", "APSS_RESET_N",
492                         "GPU0_TH_OVERT_N_BUFF", "GPU1_TH_OVERT_N_BUFF",
493                         "GPU2_TH_OVERT_N_BUFF", "GPU3_TH_OVERT_N_BUFF",
494                         "GPU4_TH_OVERT_N_BUFF", "GPU5_TH_OVERT_N_BUFF",
495                         "GPU0_PWR_GOOD_BUFF", "GPU1_PWR_GOOD_BUFF",
496                         "GPU2_PWR_GOOD_BUFF", "GPU3_PWR_GOOD_BUFF",
497                         "GPU4_PWR_GOOD_BUFF", "GPU5_PWR_GOOD_BUFF",
498                         "12V_BREAKER_FLT_N", "THROTTLE_UNLATCHED_N";
499
500                 gpio@0 {
501                         reg = <0>;
502                         type = <PCA955X_TYPE_GPIO>;
503                 };
504
505                 gpio@1 {
506                         reg = <1>;
507                         type = <PCA955X_TYPE_GPIO>;
508                 };
509
510                 gpio@2 {
511                         reg = <2>;
512                         type = <PCA955X_TYPE_GPIO>;
513                 };
514
515                 gpio@3 {
516                         reg = <3>;
517                         type = <PCA955X_TYPE_GPIO>;
518                 };
519
520                 gpio@4 {
521                         reg = <4>;
522                         type = <PCA955X_TYPE_GPIO>;
523                 };
524
525                 gpio@5 {
526                         reg = <5>;
527                         type = <PCA955X_TYPE_GPIO>;
528                 };
529
530                 gpio@6 {
531                         reg = <6>;
532                         type = <PCA955X_TYPE_GPIO>;
533                 };
534
535                 gpio@7 {
536                         reg = <7>;
537                         type = <PCA955X_TYPE_GPIO>;
538                 };
539
540                 gpio@8 {
541                         reg = <8>;
542                         type = <PCA955X_TYPE_GPIO>;
543                 };
544
545                 gpio@9 {
546                         reg = <9>;
547                         type = <PCA955X_TYPE_GPIO>;
548                 };
549
550                 gpio@10 {
551                         reg = <10>;
552                         type = <PCA955X_TYPE_GPIO>;
553                 };
554
555                 gpio@11 {
556                         reg = <11>;
557                         type = <PCA955X_TYPE_GPIO>;
558                 };
559
560                 gpio@12 {
561                         reg = <12>;
562                         type = <PCA955X_TYPE_GPIO>;
563                 };
564
565                 gpio@13 {
566                         reg = <13>;
567                         type = <PCA955X_TYPE_GPIO>;
568                 };
569
570                 gpio@14 {
571                         reg = <14>;
572                         type = <PCA955X_TYPE_GPIO>;
573                 };
574
575                 gpio@15 {
576                         reg = <15>;
577                         type = <PCA955X_TYPE_GPIO>;
578                 };
579         };
580
581         rtc@32 {
582                 compatible = "epson,rx8900";
583                 reg = <0x32>;
584         };
585
586         eeprom@51 {
587                 compatible = "atmel,24c64";
588                 reg = <0x51>;
589         };
590
591         ucd90160@64 {
592                 compatible = "ti,ucd90160";
593                 reg = <0x64>;
594         };
595 };
596
597 &i2c12 {
598         status = "okay";
599 };
600
601 &i2c13 {
602         status = "okay";
603 };
604
605 &vuart {
606         status = "okay";
607 };
608
609 &gfx {
610         status = "okay";
611         memory-region = <&gfx_memory>;
612 };
613
614 &pinctrl {
615         aspeed,external-nodes = <&gfx &lhc>;
616 };
617
618 &wdt1 {
619         aspeed,reset-type = "none";
620         aspeed,external-signal;
621         aspeed,ext-push-pull;
622         aspeed,ext-active-high;
623
624         pinctrl-names = "default";
625         pinctrl-0 = <&pinctrl_wdtrst1_default>;
626 };
627
628 &wdt2 {
629         aspeed,alt-boot;
630 };
631
632 &ibt {
633         status = "okay";
634 };
635
636 &adc {
637         status = "okay";
638 };
639
640 &vhub {
641         status = "okay";
642 };