1 // SPDX-License-Identifier: GPL-2.0-or-later
2 // Copyright 2019 IBM Corp.
5 #include "aspeed-g6.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
7 #include <dt-bindings/i2c/i2c.h>
8 #include <dt-bindings/leds/leds-pca955x.h>
12 compatible = "ibm,rainier-bmc", "aspeed,ast2600";
37 bootargs = "console=ttyS4,115200n8";
41 device_type = "memory";
42 reg = <0x80000000 0x40000000>;
50 flash_memory: region@b8000000 {
52 reg = <0xb8000000 0x04000000>; /* 64M */
56 compatible = "ramoops";
57 reg = <0xbc000000 0x180000>; /* 16 * (3 * 0x8000) */
58 record-size = <0x8000>;
59 console-size = <0x8000>;
61 max-reason = <3>; /* KMSG_DUMP_EMERG */
64 vga_memory: region@bf000000 {
66 compatible = "shared-dma-pool";
67 reg = <0xbf000000 0x01000000>; /* 16M */
72 compatible = "gpio-keys";
75 label = "ps0-presence";
76 gpios = <&gpio0 ASPEED_GPIO(S, 0) GPIO_ACTIVE_LOW>;
77 linux,code = <ASPEED_GPIO(S, 0)>;
81 label = "ps1-presence";
82 gpios = <&gpio0 ASPEED_GPIO(S, 1) GPIO_ACTIVE_LOW>;
83 linux,code = <ASPEED_GPIO(S, 1)>;
87 label = "ps2-presence";
88 gpios = <&gpio0 ASPEED_GPIO(S, 2) GPIO_ACTIVE_LOW>;
89 linux,code = <ASPEED_GPIO(S, 2)>;
93 label = "ps3-presence";
94 gpios = <&gpio0 ASPEED_GPIO(S, 3) GPIO_ACTIVE_LOW>;
95 linux,code = <ASPEED_GPIO(S, 3)>;
100 compatible = "i2c-mux-gpio";
101 #address-cells = <1>;
105 i2c-parent = <&i2c2>;
106 mux-gpios = <&gpio0 ASPEED_GPIO(G, 4) GPIO_ACTIVE_HIGH>,
107 <&gpio0 ASPEED_GPIO(G, 5) GPIO_ACTIVE_HIGH>;
111 #address-cells = <1>;
117 #address-cells = <1>;
123 #address-cells = <1>;
129 #address-cells = <1>;
142 /*A0-A7*/ "","","","","","","","",
143 /*B0-B7*/ "","","","","","","checkstop","",
144 /*C0-C7*/ "","","","","","","","",
145 /*D0-D7*/ "","","","","","","","",
146 /*E0-E7*/ "","","","","","","","",
147 /*F0-F7*/ "","","","","","","","",
148 /*G0-G7*/ "","","","","","","","",
149 /*H0-H7*/ "","","","","","","","",
150 /*I0-I7*/ "","","","","","","","",
151 /*J0-J7*/ "","","","","","","","",
152 /*K0-K7*/ "","","","","","","","",
153 /*L0-L7*/ "","","","","","","","",
154 /*M0-M7*/ "","","","","","","","",
155 /*N0-N7*/ "","","","","","","","",
156 /*O0-O7*/ "","","","usb-power","","","","",
157 /*P0-P7*/ "","","","","","","","",
158 /*Q0-Q7*/ "cfam-reset","","","","","","","",
159 /*R0-R7*/ "","","","","","","","",
160 /*S0-S7*/ "presence-ps0","presence-ps1","presence-ps2","presence-ps3",
162 /*T0-T7*/ "","","","","","","","",
163 /*U0-U7*/ "","","","","","","","",
164 /*V0-V7*/ "","","","","","","","",
165 /*W0-W7*/ "","","","","","","","",
166 /*X0-X7*/ "","","","","","","","",
167 /*Y0-Y7*/ "","","","","","","","",
168 /*Z0-Z7*/ "","","","","","","","",
169 /*AA0-AA7*/ "","","","","","","","",
170 /*AB0-AB7*/ "","","","","","","","",
171 /*AC0-AC7*/ "","","","","","","","";
175 gpios = <ASPEED_GPIO(P, 7) GPIO_OPEN_DRAIN>;
177 line-name = "mclr_vpp";
182 gpios = <ASPEED_GPIO(G, 6) GPIO_ACTIVE_LOW>;
184 line-name = "I2C3_MUX_OE_N";
192 &pinctrl_emmc_default {
203 #address-cells = <2>;
207 * CFAM Reset is supposed to be active low but pass1 hardware is wired
210 cfam-reset-gpios = <&gpio0 ASPEED_GPIO(Q, 0) GPIO_ACTIVE_HIGH>;
214 #address-cells = <1>;
219 compatible = "ibm,fsi2pib";
220 reg = <0x1000 0x400>;
224 compatible = "ibm,fsi-i2c-master";
225 reg = <0x1800 0x400>;
226 #address-cells = <1>;
231 compatible = "ibm,fsi2spi";
232 reg = <0x1c00 0x400>;
233 #address-cells = <1>;
238 #address-cells = <1>;
242 at25,byte-len = <0x80000>;
243 at25,addr-mode = <4>;
244 at25,page-size = <256>;
246 compatible = "atmel,at25";
248 spi-max-frequency = <1000000>;
254 #address-cells = <1>;
258 at25,byte-len = <0x80000>;
259 at25,addr-mode = <4>;
260 at25,page-size = <256>;
262 compatible = "atmel,at25";
264 spi-max-frequency = <1000000>;
270 compatible = "ibm,fsi2spi-restricted";
271 #address-cells = <1>;
275 at25,byte-len = <0x80000>;
276 at25,addr-mode = <4>;
277 at25,page-size = <256>;
279 compatible = "atmel,at25";
281 spi-max-frequency = <1000000>;
287 compatible = "ibm,fsi2spi-restricted";
288 #address-cells = <1>;
292 at25,byte-len = <0x80000>;
293 at25,addr-mode = <4>;
294 at25,page-size = <256>;
296 compatible = "atmel,at25";
298 spi-max-frequency = <1000000>;
304 compatible = "ibm,p9-sbefifo";
305 reg = <0x2400 0x400>;
306 #address-cells = <1>;
310 compatible = "ibm,p10-occ";
315 compatible = "fsi-master-hub";
316 reg = <0x3400 0x400>;
317 #address-cells = <2>;
328 #address-cells = <1>;
333 compatible = "ibm,fsi2pib";
334 reg = <0x1000 0x400>;
338 compatible = "ibm,fsi-i2c-master";
339 reg = <0x1800 0x400>;
340 #address-cells = <1>;
345 compatible = "ibm,fsi2spi";
346 reg = <0x1c00 0x400>;
347 #address-cells = <1>;
352 #address-cells = <1>;
356 at25,byte-len = <0x80000>;
357 at25,addr-mode = <4>;
358 at25,page-size = <256>;
360 compatible = "atmel,at25";
362 spi-max-frequency = <1000000>;
368 #address-cells = <1>;
372 at25,byte-len = <0x80000>;
373 at25,addr-mode = <4>;
374 at25,page-size = <256>;
376 compatible = "atmel,at25";
378 spi-max-frequency = <1000000>;
384 compatible = "ibm,fsi2spi-restricted";
385 #address-cells = <1>;
389 at25,byte-len = <0x80000>;
390 at25,addr-mode = <4>;
391 at25,page-size = <256>;
393 compatible = "atmel,at25";
395 spi-max-frequency = <1000000>;
401 compatible = "ibm,fsi2spi-restricted";
402 #address-cells = <1>;
406 at25,byte-len = <0x80000>;
407 at25,addr-mode = <4>;
408 at25,page-size = <256>;
410 compatible = "atmel,at25";
412 spi-max-frequency = <1000000>;
418 compatible = "ibm,p9-sbefifo";
419 reg = <0x2400 0x400>;
420 #address-cells = <1>;
424 compatible = "ibm,p10-occ";
429 compatible = "fsi-master-hub";
430 reg = <0x3400 0x400>;
431 #address-cells = <2>;
440 #address-cells = <1>;
445 compatible = "ibm,fsi2pib";
446 reg = <0x1000 0x400>;
450 compatible = "ibm,fsi-i2c-master";
451 reg = <0x1800 0x400>;
452 #address-cells = <1>;
457 compatible = "ibm,fsi2spi";
458 reg = <0x1c00 0x400>;
459 #address-cells = <1>;
464 #address-cells = <1>;
468 at25,byte-len = <0x80000>;
469 at25,addr-mode = <4>;
470 at25,page-size = <256>;
472 compatible = "atmel,at25";
474 spi-max-frequency = <1000000>;
480 #address-cells = <1>;
484 at25,byte-len = <0x80000>;
485 at25,addr-mode = <4>;
486 at25,page-size = <256>;
488 compatible = "atmel,at25";
490 spi-max-frequency = <1000000>;
496 compatible = "ibm,fsi2spi-restricted";
497 #address-cells = <1>;
501 at25,byte-len = <0x80000>;
502 at25,addr-mode = <4>;
503 at25,page-size = <256>;
505 compatible = "atmel,at25";
507 spi-max-frequency = <1000000>;
513 compatible = "ibm,fsi2spi-restricted";
514 #address-cells = <1>;
518 at25,byte-len = <0x80000>;
519 at25,addr-mode = <4>;
520 at25,page-size = <256>;
522 compatible = "atmel,at25";
524 spi-max-frequency = <1000000>;
530 compatible = "ibm,p9-sbefifo";
531 reg = <0x2400 0x400>;
532 #address-cells = <1>;
536 compatible = "ibm,p10-occ";
541 compatible = "fsi-master-hub";
542 reg = <0x3400 0x400>;
543 #address-cells = <2>;
551 /* Legacy OCC numbering (to get rid of when userspace is fixed) */
572 compatible = "atmel,24c64";
577 compatible = "ti,tca9554";
584 gpios = <4 GPIO_ACTIVE_HIGH>;
586 line-name = "smbus0";
604 compatible = "ibm,cffps";
609 compatible = "ibm,cffps";
618 compatible = "ti,tmp275";
623 compatible = "ti,tmp275";
628 compatible = "ti,tmp275";
633 compatible = "atmel,24c64";
638 compatible = "atmel,24c64";
643 compatible = "atmel,24c64";
652 compatible = "ti,tmp275";
657 compatible = "ti,tmp275";
662 compatible = "atmel,24c64";
667 compatible = "atmel,24c64";
676 compatible = "ti,tmp275";
681 compatible = "ti,tmp275";
686 compatible = "ti,tmp275";
691 compatible = "atmel,24c64";
696 compatible = "atmel,24c64";
701 compatible = "atmel,24c64";
706 compatible = "atmel,24c64";
716 compatible = "silabs,si7020";
721 compatible = "ti,tmp275";
726 compatible = "maxim,max31785a";
728 #address-cells = <1>;
732 compatible = "pmbus-fan";
738 compatible = "pmbus-fan";
744 compatible = "pmbus-fan";
750 compatible = "pmbus-fan";
757 compatible = "nxp,pca9552";
759 #address-cells = <1>;
767 type = <PCA955X_TYPE_GPIO>;
772 type = <PCA955X_TYPE_GPIO>;
777 type = <PCA955X_TYPE_GPIO>;
782 type = <PCA955X_TYPE_GPIO>;
787 type = <PCA955X_TYPE_GPIO>;
792 type = <PCA955X_TYPE_GPIO>;
797 type = <PCA955X_TYPE_GPIO>;
802 type = <PCA955X_TYPE_GPIO>;
807 type = <PCA955X_TYPE_GPIO>;
812 type = <PCA955X_TYPE_GPIO>;
817 type = <PCA955X_TYPE_GPIO>;
822 type = <PCA955X_TYPE_GPIO>;
827 type = <PCA955X_TYPE_GPIO>;
832 type = <PCA955X_TYPE_GPIO>;
837 type = <PCA955X_TYPE_GPIO>;
842 type = <PCA955X_TYPE_GPIO>;
847 compatible = "ibm,op-panel";
848 reg = <(0x62 | I2C_OWN_SLAVE_ADDRESS)>;
852 compatible = "infineon,dps310";
854 #io-channel-cells = <0>;
858 compatible = "atmel,24c64";
863 compatible = "atmel,24c64";
872 compatible = "ti,ucd90320";
877 compatible = "epson,rx8900";
882 compatible = "ti,tmp275";
887 compatible = "ti,tmp275";
892 compatible = "atmel,24c64";
897 compatible = "atmel,24c64";
902 compatible = "nxp,pca9552";
904 #address-cells = <1>;
911 type = <PCA955X_TYPE_GPIO>;
916 type = <PCA955X_TYPE_GPIO>;
921 type = <PCA955X_TYPE_GPIO>;
926 type = <PCA955X_TYPE_GPIO>;
931 type = <PCA955X_TYPE_GPIO>;
936 type = <PCA955X_TYPE_GPIO>;
941 type = <PCA955X_TYPE_GPIO>;
946 type = <PCA955X_TYPE_GPIO>;
951 type = <PCA955X_TYPE_GPIO>;
956 type = <PCA955X_TYPE_GPIO>;
961 type = <PCA955X_TYPE_GPIO>;
966 type = <PCA955X_TYPE_GPIO>;
971 type = <PCA955X_TYPE_GPIO>;
976 type = <PCA955X_TYPE_GPIO>;
981 type = <PCA955X_TYPE_GPIO>;
986 type = <PCA955X_TYPE_GPIO>;
996 compatible = "ti,tmp423";
1001 compatible = "ti,tmp423";
1006 compatible = "atmel,24c128";
1015 compatible = "ti,tmp423";
1020 compatible = "ti,tmp423";
1025 compatible = "atmel,24c128";
1034 compatible = "ti,tmp275";
1039 compatible = "ti,tmp275";
1044 compatible = "atmel,24c64";
1049 compatible = "atmel,24c64";
1062 compatible = "atmel,24c64";
1071 compatible = "atmel,24c64";
1080 compatible = "atmel,24c64";
1095 memory-region = <&flash_memory>;
1100 pinctrl-names = "default";
1101 pinctrl-0 = <&pinctrl_rmii3_default>;
1102 clocks = <&syscon ASPEED_CLK_GATE_MAC3CLK>,
1103 <&syscon ASPEED_CLK_MAC3RCLK>;
1104 clock-names = "MACCLK", "RCLK";
1110 pinctrl-names = "default";
1111 pinctrl-0 = <&pinctrl_rmii4_default>;
1112 clocks = <&syscon ASPEED_CLK_GATE_MAC4CLK>,
1113 <&syscon ASPEED_CLK_MAC4RCLK>;
1114 clock-names = "MACCLK", "RCLK";
1124 spi-max-frequency = <50000000>;
1125 #include "openbmc-flash-layout-128.dtsi"
1131 pinctrl-names = "default";
1132 pinctrl-0 = <&pinctrl_spi1_default>;
1138 spi-max-frequency = <100000000>;
1144 memory-region = <&vga_memory>;