OSDN Git Service

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