]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/arm/aspeed-bmc-inspur-fp5280g2.dts
dts: Update our copy for arm, arm64 and riscv dts to Linux 5.5
[FreeBSD/FreeBSD.git] / sys / gnu / dts / arm / aspeed-bmc-inspur-fp5280g2.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 = "FP5280G2 BMC";
9         compatible = "inspur,fp5280g2-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                 vga_memory: framebuffer@9f000000 {
26                         no-map;
27                         reg = <0x9f000000 0x01000000>; /* 16M */
28                 };
29
30                 flash_memory: region@98000000 {
31                         no-map;
32                         reg = <0x98000000 0x04000000>; /* 64M */
33                 };
34
35                 coldfire_memory: codefire_memory@9ef00000 {
36                         reg = <0x9ef00000 0x00100000>;
37                         no-map;
38                 };
39
40                 gfx_memory: framebuffer {
41                         size = <0x01000000>;
42                         alignment = <0x01000000>;
43                         compatible = "shared-dma-pool";
44                         reusable;
45                 };
46
47                 video_engine_memory: jpegbuffer {
48                         size = <0x02000000>;    /* 32M */
49                         alignment = <0x01000000>;
50                         compatible = "shared-dma-pool";
51                         reusable;
52                 };
53         };
54
55         fsi: gpio-fsi {
56                 compatible = "aspeed,ast2500-cf-fsi-master", "fsi-master";
57                 #address-cells = <2>;
58                 #size-cells = <0>;
59                 no-gpio-delays;
60
61                 memory-region = <&coldfire_memory>;
62                 aspeed,sram = <&sram>;
63                 aspeed,cvic = <&cvic>;
64
65                 clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
66                 data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>;
67                 mux-gpios = <&gpio ASPEED_GPIO(I, 2) GPIO_ACTIVE_HIGH>;
68                 enable-gpios = <&gpio ASPEED_GPIO(I, 3) GPIO_ACTIVE_HIGH>;
69                 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
70         };
71
72         gpio-keys {
73                 compatible = "gpio-keys";
74
75                 checkstop {
76                         label = "checkstop";
77                         gpios = <&gpio ASPEED_GPIO(B, 3) GPIO_ACTIVE_LOW>;
78                         linux,code = <ASPEED_GPIO(B, 3)>;
79                 };
80
81                 ps0-presence {
82                         label = "ps0-presence";
83                         gpios = <&gpio ASPEED_GPIO(F, 0) GPIO_ACTIVE_LOW>;
84                         linux,code = <ASPEED_GPIO(F, 0)>;
85                 };
86
87                 ps1-presence {
88                         label = "ps1-presence";
89                         gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>;
90                         linux,code = <ASPEED_GPIO(F, 1)>;
91                 };
92
93         };
94
95         gpio-keys-polled {
96                 compatible = "gpio-keys-polled";
97                 #address-cells = <1>;
98                 #size-cells = <0>;
99                 poll-interval = <1000>;
100
101                 fan0-presence {
102                         label = "fan0-presence";
103                         gpios = <&pca1 0 GPIO_ACTIVE_LOW>;
104                         linux,code = <1>;
105                 };
106
107                 fan1-presence {
108                         label = "fan1-presence";
109                         gpios = <&pca1 1 GPIO_ACTIVE_LOW>;
110                         linux,code = <2>;
111                 };
112
113                 fan2-presence {
114                         label = "fan2-presence";
115                         gpios = <&pca1 2 GPIO_ACTIVE_LOW>;
116                         linux,code = <3>;
117                 };
118
119                 fan3-presence {
120                         label = "fan3-presence";
121                         gpios = <&pca1 3 GPIO_ACTIVE_LOW>;
122                         linux,code = <4>;
123                 };
124
125                 fan4-presence {
126                         label = "fan4-presence";
127                         gpios = <&pca1 4 GPIO_ACTIVE_LOW>;
128                         linux,code = <5>;
129                 };
130
131                 fan5-presence {
132                         label = "fan5-presence";
133                         gpios = <&pca1 5 GPIO_ACTIVE_LOW>;
134                         linux,code = <6>;
135                 };
136
137                 fan6-presence {
138                         label = "fan6-presence";
139                         gpios = <&pca1 6 GPIO_ACTIVE_LOW>;
140                         linux,code = <7>;
141                 };
142
143                 fan7-presence {
144                         label = "fan7-presence";
145                         gpios = <&pca1 7 GPIO_ACTIVE_LOW>;
146                         linux,code = <8>;
147                 };
148         };
149
150         leds {
151                 compatible = "gpio-leds";
152
153                 power {
154                         label = "power";
155                         /* TODO: dummy gpio */
156                         gpios = <&gpio ASPEED_GPIO(R, 1) GPIO_ACTIVE_LOW>;
157                 };
158
159                 init-ok {
160                         label = "init-ok";
161                         gpios = <&gpio ASPEED_GPIO(B, 7) GPIO_ACTIVE_LOW>;
162                 };
163
164                 front-memory {
165                         label = "front-memory";
166                         gpios = <&gpio ASPEED_GPIO(F, 4) GPIO_ACTIVE_LOW>;
167                 };
168
169                 front-syshot {
170                         label = "front-syshot";
171                         gpios = <&gpio ASPEED_GPIO(I, 1) GPIO_ACTIVE_LOW>;
172                 };
173
174                 front-syshealth {
175                         label = "front-syshealth";
176                         gpios = <&gpio ASPEED_GPIO(I, 0) GPIO_ACTIVE_LOW>;
177                 };
178
179                 front-fan {
180                         label = "front-fan";
181                         gpios = <&gpio ASPEED_GPIO(H, 4) GPIO_ACTIVE_LOW>;
182                 };
183
184                 front-psu {
185                         label = "front-psu";
186                         gpios = <&gpio ASPEED_GPIO(B, 2) GPIO_ACTIVE_LOW>;
187                 };
188
189                 identify {
190                         label = "identify";
191                         gpios = <&gpio ASPEED_GPIO(Z, 7) GPIO_ACTIVE_LOW>;
192                 };
193         };
194
195         iio-hwmon-battery {
196                 compatible = "iio-hwmon";
197                 io-channels = <&adc 15>;
198         };
199
200         iio-hwmon {
201                 compatible = "iio-hwmon";
202                 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>,
203                         <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>,
204                         <&adc 10>, <&adc 11>, <&adc 12>, <&adc 13>, <&adc 14>;
205         };
206
207 };
208
209 &fmc {
210         status = "okay";
211
212         flash@0 {
213                 status = "okay";
214                 label = "bmc";
215                 m25p,fast-read;
216                 spi-max-frequency = <50000000>;
217 #include "openbmc-flash-layout.dtsi"
218         };
219 };
220
221 &spi1 {
222         status = "okay";
223         pinctrl-names = "default";
224         pinctrl-0 = <&pinctrl_spi1_default>;
225
226         flash@0 {
227                 status = "okay";
228                 label = "pnor";
229                 m25p,fast-read;
230                 spi-max-frequency = <100000000>;
231         };
232 };
233
234 &uart1 {
235         /* Rear RS-232 connector */
236         status = "okay";
237         pinctrl-names = "default";
238         pinctrl-0 = <&pinctrl_txd1_default
239                         &pinctrl_rxd1_default
240                         &pinctrl_nrts1_default
241                         &pinctrl_ndtr1_default
242                         &pinctrl_ndsr1_default
243                         &pinctrl_ncts1_default
244                         &pinctrl_ndcd1_default
245                         &pinctrl_nri1_default>;
246 };
247
248 &uart2 {
249         /* Test Point */
250         status = "okay";
251         pinctrl-names = "default";
252         pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
253 };
254
255 &uart3 {
256         /* APSS */
257         status = "okay";
258         pinctrl-names = "default";
259         pinctrl-0 = <&pinctrl_txd3_default &pinctrl_rxd3_default>;
260 };
261
262 &uart5 {
263         status = "okay";
264 };
265
266 &lpc_ctrl {
267         status = "okay";
268         memory-region = <&flash_memory>;
269         flash = <&spi1>;
270 };
271
272 &mac0 {
273         status = "okay";
274         pinctrl-names = "default";
275         pinctrl-0 = <&pinctrl_rmii1_default>;
276         clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
277                  <&syscon ASPEED_CLK_MAC1RCLK>;
278         clock-names = "MACCLK", "RCLK";
279         use-ncsi;
280 };
281
282 &mac1 {
283         status = "okay";
284         pinctrl-names = "default";
285         pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
286 };
287
288 &i2c0 {
289         /* LCD */
290         status = "okay";
291 };
292
293 &i2c1 {
294         status = "okay";
295
296         eeprom@50 {
297                 compatible = "atmel,24c256";
298                 reg = <0x50>;
299                 label = "fru";
300         };
301
302 };
303
304 &i2c2 {
305         status = "okay";
306
307         tmp112@48 {
308                 compatible = "ti,tmp112";
309                 reg = <0x48>;
310                 label = "inlet";
311         };
312
313         tmp112@49 {
314                 compatible = "ti,tmp112";
315                 reg = <0x49>;
316                 label = "outlet";
317         };
318
319         i2c-switch@70 {
320                 compatible = "nxp,pca9546";
321                 reg = <0x70>;
322                 #address-cells = <1>;
323                 #size-cells = <0>;
324
325                 i2c@0 {
326                         #address-cells = <1>;
327                         #size-cells = <0>;
328                         reg = <0>;
329
330                         tmp112@4a {
331                                 compatible = "ti,tmp112";
332                                 reg = <0x4a>;
333                                 label = "psu_inlet";
334                         };
335
336                 };
337
338                 i2c@1 {
339                         #address-cells = <1>;
340                         #size-cells = <0>;
341                         reg = <1>;
342
343                         tmp112@4a {
344                                 compatible = "ti,tmp112";
345                                 reg = <0x4a>;
346                                 label = "ocp_zone";
347                         };
348                 };
349
350                 i2c@2 {
351                         #address-cells = <1>;
352                         #size-cells = <0>;
353                         reg = <2>;
354
355                         tmp112@4a {
356                                 compatible = "ti,tmp112";
357                                 reg = <0x4a>;
358                                 label = "bmc_zone";
359                         };
360                 };
361
362                 i2c@3 {
363                         #address-cells = <1>;
364                         #size-cells = <0>;
365                         reg = <3>;
366
367                         tmp112@7c {
368                                 compatible = "microchip,emc1413";
369                                 reg = <0x7c>;
370                         };
371                 };
372
373         };
374 };
375
376 &i2c3 {
377         /* Riser Card */
378         status = "okay";
379 };
380
381 &i2c4 {
382         status = "okay";
383
384         rtc@68 {
385                 compatible = "dallas,ds3232";
386                 reg = <0x68>;
387         };
388 };
389
390 &i2c5 {
391         /* vr  */
392         status = "okay";
393 };
394
395 &i2c6 {
396         /* bp card */
397         status = "okay";
398 };
399
400 &i2c7 {
401         status = "okay";
402
403         i2c-switch@70 {
404                 compatible = "nxp,pca9546";
405                 reg = <0x70>;
406                 #address-cells = <1>;
407                 #size-cells = <0>;
408
409                 i2c@0 {
410                         #address-cells = <1>;
411                         #size-cells = <0>;
412                         reg = <0>;
413
414                         adm1278@10 {
415                                 compatible = "adi,adm1278";
416                                 reg = <0x10>;
417                         };
418
419                         adm1278@13 {
420                                 compatible = "adi,adm1278";
421                                 reg = <0x13>;
422                         };
423
424                         adm1278@50 {
425                                 compatible = "adi,adm1278";
426                                 reg = <0x50>;
427                         };
428
429                         adm1278@53 {
430                                 compatible = "adi,adm1278";
431                                 reg = <0x53>;
432                         };
433
434                 };
435
436                 /*pcie riser*/
437
438         };
439 };
440
441 &i2c8 {
442         status = "okay";
443
444         pca0: pca9555@20 {
445                 compatible = "nxp,pca9555";
446                 reg = <0x20>;
447                 #address-cells = <1>;
448                 #size-cells = <0>;
449
450                 gpio-controller;
451                 #gpio-cells = <2>;
452
453                 gpio@0 {
454                         reg = <0>;
455                         type = <PCA955X_TYPE_GPIO>;
456                 };
457
458                 gpio@1 {
459                         reg = <1>;
460                         type = <PCA955X_TYPE_GPIO>;
461                 };
462
463                 gpio@2 {
464                         reg = <2>;
465                         type = <PCA955X_TYPE_GPIO>;
466                 };
467
468                 gpio@3 {
469                         reg = <3>;
470                         type = <PCA955X_TYPE_GPIO>;
471                 };
472
473                 gpio@4 {
474                         reg = <4>;
475                         type = <PCA955X_TYPE_GPIO>;
476                 };
477
478                 gpio@5 {
479                         reg = <5>;
480                         type = <PCA955X_TYPE_GPIO>;
481                 };
482
483                 gpio@6 {
484                         reg = <6>;
485                         type = <PCA955X_TYPE_GPIO>;
486                 };
487
488                 gpio@7 {
489                         reg = <7>;
490                         type = <PCA955X_TYPE_GPIO>;
491                 };
492
493         };
494
495         pca1: pca9555@21 {
496                 compatible = "nxp,pca9555";
497                 reg = <0x21>;
498                 #address-cells = <1>;
499                 #size-cells = <0>;
500
501                 gpio-controller;
502                 #gpio-cells = <2>;
503
504                 gpio@0 {
505                         reg = <0>;
506                         type = <PCA955X_TYPE_GPIO>;
507                 };
508
509                 gpio@1 {
510                         reg = <1>;
511                         type = <PCA955X_TYPE_GPIO>;
512                 };
513
514                 gpio@2 {
515                         reg = <2>;
516                         type = <PCA955X_TYPE_GPIO>;
517                 };
518
519                 gpio@3 {
520                         reg = <3>;
521                         type = <PCA955X_TYPE_GPIO>;
522                 };
523
524                 gpio@4 {
525                         reg = <4>;
526                         type = <PCA955X_TYPE_GPIO>;
527                 };
528
529                 gpio@5 {
530                         reg = <5>;
531                         type = <PCA955X_TYPE_GPIO>;
532                 };
533
534                 gpio@6 {
535                         reg = <6>;
536                         type = <PCA955X_TYPE_GPIO>;
537                 };
538
539                 gpio@7 {
540                         reg = <7>;
541                         type = <PCA955X_TYPE_GPIO>;
542                 };
543         };
544
545         pca2: pca9555@22 {
546                 compatible = "nxp,pca9555";
547                 reg = <0x22>;
548                 #address-cells = <1>;
549                 #size-cells = <0>;
550
551                 gpio-controller;
552                 #gpio-cells = <2>;
553
554                 gpio@0 {
555                         reg = <0>;
556                         type = <PCA955X_TYPE_GPIO>;
557                 };
558
559                 gpio@1 {
560                         reg = <1>;
561                         type = <PCA955X_TYPE_GPIO>;
562                 };
563
564                 gpio@2 {
565                         reg = <2>;
566                         type = <PCA955X_TYPE_GPIO>;
567                 };
568
569                 gpio@3 {
570                         reg = <3>;
571                         type = <PCA955X_TYPE_GPIO>;
572                 };
573
574                 gpio@4 {
575                         reg = <4>;
576                         type = <PCA955X_TYPE_GPIO>;
577                 };
578
579                 gpio@5 {
580                         reg = <5>;
581                         type = <PCA955X_TYPE_GPIO>;
582                 };
583
584                 gpio@6 {
585                         reg = <6>;
586                         type = <PCA955X_TYPE_GPIO>;
587                 };
588
589                 gpio@7 {
590                         reg = <7>;
591                         type = <PCA955X_TYPE_GPIO>;
592                 };
593         };
594
595         pca3: pca9555@23 {
596                 compatible = "nxp,pca9555";
597                 reg = <0x23>;
598                 #address-cells = <1>;
599                 #size-cells = <0>;
600
601                 gpio-controller;
602                 #gpio-cells = <2>;
603
604                 gpio@0 {
605                         reg = <0>;
606                         type = <PCA955X_TYPE_GPIO>;
607                 };
608
609                 gpio@1 {
610                         reg = <1>;
611                         type = <PCA955X_TYPE_GPIO>;
612                 };
613
614                 gpio@2 {
615                         reg = <2>;
616                         type = <PCA955X_TYPE_GPIO>;
617                 };
618
619                 gpio@3 {
620                         reg = <3>;
621                         type = <PCA955X_TYPE_GPIO>;
622                 };
623
624                 gpio@4 {
625                         reg = <4>;
626                         type = <PCA955X_TYPE_GPIO>;
627                 };
628
629                 gpio@5 {
630                         reg = <5>;
631                         type = <PCA955X_TYPE_GPIO>;
632                 };
633
634                 gpio@6 {
635                         reg = <6>;
636                         type = <PCA955X_TYPE_GPIO>;
637                 };
638
639                 gpio@7 {
640                         reg = <7>;
641                         type = <PCA955X_TYPE_GPIO>;
642                 };
643         };
644
645         pca4: pca9555@24 {
646                 compatible = "nxp,pca9555";
647                 reg = <0x24>;
648                 #address-cells = <1>;
649                 #size-cells = <0>;
650
651                 gpio-controller;
652                 #gpio-cells = <2>;
653
654                 gpio@0 {
655                         reg = <0>;
656                         type = <PCA955X_TYPE_GPIO>;
657                 };
658
659                 gpio@1 {
660                         reg = <1>;
661                         type = <PCA955X_TYPE_GPIO>;
662                 };
663
664                 gpio@2 {
665                         reg = <2>;
666                         type = <PCA955X_TYPE_GPIO>;
667                 };
668
669                 gpio@3 {
670                         reg = <3>;
671                         type = <PCA955X_TYPE_GPIO>;
672                 };
673
674                 gpio@4 {
675                         reg = <4>;
676                         type = <PCA955X_TYPE_GPIO>;
677                 };
678
679                 gpio@5 {
680                         reg = <5>;
681                         type = <PCA955X_TYPE_GPIO>;
682                 };
683
684                 gpio@6 {
685                         reg = <6>;
686                         type = <PCA955X_TYPE_GPIO>;
687                 };
688
689                 gpio@7 {
690                         reg = <7>;
691                         type = <PCA955X_TYPE_GPIO>;
692                 };
693         };
694
695         pca5: pca9555@25 {
696                 compatible = "nxp,pca9555";
697                 reg = <0x25>;
698                 #address-cells = <1>;
699                 #size-cells = <0>;
700
701                 gpio-controller;
702                 #gpio-cells = <2>;
703
704                 gpio@0 {
705                         reg = <0>;
706                         type = <PCA955X_TYPE_GPIO>;
707                 };
708
709                 gpio@1 {
710                         reg = <1>;
711                         type = <PCA955X_TYPE_GPIO>;
712                 };
713
714                 gpio@2 {
715                         reg = <2>;
716                         type = <PCA955X_TYPE_GPIO>;
717                 };
718
719                 gpio@3 {
720                         reg = <3>;
721                         type = <PCA955X_TYPE_GPIO>;
722                 };
723
724                 gpio@4 {
725                         reg = <4>;
726                         type = <PCA955X_TYPE_GPIO>;
727                 };
728
729                 gpio@5 {
730                         reg = <5>;
731                         type = <PCA955X_TYPE_GPIO>;
732                 };
733
734                 gpio@6 {
735                         reg = <6>;
736                         type = <PCA955X_TYPE_GPIO>;
737                 };
738
739                 gpio@7 {
740                         reg = <7>;
741                         type = <PCA955X_TYPE_GPIO>;
742                 };
743         };
744
745 };
746
747 &i2c9 {
748         /* cpld */
749         status = "okay";
750 };
751
752 &i2c10 {
753         /* hdd bp */
754         status = "okay";
755 };
756
757 &i2c11 {
758         status = "okay";
759
760         power-supply@58 {
761                 compatible = "pmbus";
762                 reg = <0x58>;
763         };
764
765         power-supply@59 {
766                 compatible = "pmbus";
767                 reg = <0x59>;
768         };
769 };
770
771 &i2c12 {
772         /* odcc */
773         status = "okay";
774 };
775
776 &vuart {
777         status = "okay";
778 };
779
780 &gfx {
781         status = "okay";
782         memory-region = <&gfx_memory>;
783 };
784
785 &pinctrl {
786         aspeed,external-nodes = <&gfx &lhc>;
787 };
788
789 &wdt1 {
790         aspeed,reset-type = "none";
791         aspeed,external-signal;
792         aspeed,ext-push-pull;
793         aspeed,ext-active-high;
794
795         pinctrl-names = "default";
796         pinctrl-0 = <&pinctrl_wdtrst1_default>;
797 };
798
799 &ibt {
800         status = "okay";
801
802 };
803
804 &adc {
805         status = "okay";
806         pinctrl-names = "default";
807         pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default
808          &pinctrl_adc2_default &pinctrl_adc3_default &pinctrl_adc4_default
809          &pinctrl_adc5_default &pinctrl_adc6_default &pinctrl_adc7_default
810          &pinctrl_adc8_default &pinctrl_adc9_default &pinctrl_adc10_default
811          &pinctrl_adc11_default &pinctrl_adc12_default &pinctrl_adc13_default
812          &pinctrl_adc14_default &pinctrl_adc15_default>;
813 };
814
815 &vhub {
816         status = "okay";
817 };
818
819 &video {
820         status = "okay";
821         memory-region = <&video_engine_memory>;
822 };
823
824 &pwm_tacho {
825         status = "okay";
826         pinctrl-names = "default";
827         pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
828                 &pinctrl_pwm2_default &pinctrl_pwm3_default
829                 &pinctrl_pwm4_default &pinctrl_pwm5_default
830                 &pinctrl_pwm6_default &pinctrl_pwm7_default>;
831
832         fan@0 {
833                 reg = <0x00>;
834                 aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>;
835         };
836
837         fan@1 {
838                 reg = <0x01>;
839                 aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>;
840         };
841
842         fan@2 {
843                 reg = <0x02>;
844                 aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>;
845         };
846
847         fan@3 {
848                 reg = <0x03>;
849                 aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>;
850         };
851
852         fan@4 {
853                 reg = <0x04>;
854                 aspeed,fan-tach-ch = /bits/ 8 <0x08 0x09>;
855         };
856
857         fan@5 {
858                 reg = <0x05>;
859                 aspeed,fan-tach-ch = /bits/ 8 <0x0a 0x0b>;
860         };
861
862         fan@6 {
863                 reg = <0x06>;
864                 aspeed,fan-tach-ch = /bits/ 8 <0x0c 0x0d>;
865         };
866
867         fan@7 {
868                 reg = <0x07>;
869                 aspeed,fan-tach-ch = /bits/ 8 <0x0e 0x0f>;
870         };
871
872 };
873
874 #include "ibm-power9-dual.dtsi"