1 // SPDX-License-Identifier: GPL-2.0+
3 #include "aspeed-g5.dtsi"
4 #include <dt-bindings/gpio/aspeed-gpio.h>
5 #include <dt-bindings/leds/leds-pca955x.h>
9 compatible = "ibm,mihawk-bmc", "aspeed,ast2500";
12 i2c215 = &bus6_mux215;
13 i2c216 = &bus6_mux216;
14 i2c217 = &bus6_mux217;
15 i2c218 = &bus6_mux218;
16 i2c219 = &bus6_mux219;
17 i2c220 = &bus6_mux220;
18 i2c221 = &bus6_mux221;
19 i2c222 = &bus6_mux222;
20 i2c223 = &bus7_mux223;
21 i2c224 = &bus7_mux224;
22 i2c225 = &bus7_mux225;
23 i2c226 = &bus7_mux226;
24 i2c227 = &bus7_mux227;
25 i2c228 = &bus7_mux228;
26 i2c229 = &bus7_mux229;
27 i2c230 = &bus7_mux230;
28 i2c231 = &bus9_mux231;
29 i2c232 = &bus9_mux232;
30 i2c233 = &bus9_mux233;
31 i2c234 = &bus9_mux234;
32 i2c235 = &bus9_mux235;
33 i2c236 = &bus9_mux236;
34 i2c237 = &bus9_mux237;
35 i2c238 = &bus9_mux238;
36 i2c239 = &bus10_mux239;
37 i2c240 = &bus10_mux240;
38 i2c241 = &bus10_mux241;
39 i2c242 = &bus10_mux242;
40 i2c243 = &bus10_mux243;
41 i2c244 = &bus10_mux244;
42 i2c245 = &bus10_mux245;
43 i2c246 = &bus10_mux246;
44 i2c247 = &bus12_mux247;
45 i2c248 = &bus12_mux248;
46 i2c249 = &bus12_mux249;
47 i2c250 = &bus12_mux250;
48 i2c251 = &bus13_mux251;
49 i2c252 = &bus13_mux252;
50 i2c253 = &bus13_mux253;
51 i2c254 = &bus13_mux254;
52 i2c255 = &bus13_mux255;
53 i2c256 = &bus13_mux256;
54 i2c257 = &bus13_mux257;
55 i2c258 = &bus13_mux258;
60 bootargs = "console=ttyS4,115200 earlyprintk";
64 reg = <0x80000000 0x20000000>;
72 flash_memory: region@98000000 {
74 reg = <0x98000000 0x04000000>; /* 64M */
77 gfx_memory: framebuffer {
79 alignment = <0x01000000>;
80 compatible = "shared-dma-pool";
84 video_engine_memory: jpegbuffer {
86 alignment = <0x01000000>;
87 compatible = "shared-dma-pool";
93 compatible = "gpio-keys";
97 gpios = <&gpio ASPEED_GPIO(F, 6) GPIO_ACTIVE_LOW>;
98 linux,code = <ASPEED_GPIO(F, 6)>;
103 gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
104 linux,code = <ASPEED_GPIO(J, 2)>;
108 label = "ps0-presence";
109 gpios = <&gpio ASPEED_GPIO(Z, 2) GPIO_ACTIVE_LOW>;
110 linux,code = <ASPEED_GPIO(Z, 2)>;
114 label = "ps1-presence";
115 gpios = <&gpio ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
116 linux,code = <ASPEED_GPIO(Z, 0)>;
120 gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>;
121 linux,code = <ASPEED_GPIO(F, 1)>;
126 compatible = "gpio-keys-polled";
127 poll-interval = <1000>;
130 label = "fan0-presence";
131 gpios = <&pca9552 9 GPIO_ACTIVE_LOW>;
136 label = "fan1-presence";
137 gpios = <&pca9552 10 GPIO_ACTIVE_LOW>;
142 label = "fan2-presence";
143 gpios = <&pca9552 11 GPIO_ACTIVE_LOW>;
148 label = "fan3-presence";
149 gpios = <&pca9552 12 GPIO_ACTIVE_LOW>;
154 label = "fan4-presence";
155 gpios = <&pca9552 13 GPIO_ACTIVE_LOW>;
160 label = "fan5-presence";
161 gpios = <&pca9552 14 GPIO_ACTIVE_LOW>;
167 compatible = "gpio-leds";
170 retain-state-shutdown;
171 default-state = "keep";
172 gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_LOW>;
176 retain-state-shutdown;
177 default-state = "keep";
178 gpios = <&gpio ASPEED_GPIO(AA, 1) GPIO_ACTIVE_LOW>;
182 retain-state-shutdown;
183 default-state = "keep";
184 gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_LOW>;
189 retain-state-shutdown;
190 default-state = "keep";
191 gpios = <&pca9552 0 GPIO_ACTIVE_LOW>;
195 retain-state-shutdown;
196 default-state = "keep";
197 gpios = <&pca9552 1 GPIO_ACTIVE_LOW>;
201 retain-state-shutdown;
202 default-state = "keep";
203 gpios = <&pca9552 2 GPIO_ACTIVE_LOW>;
207 retain-state-shutdown;
208 default-state = "keep";
209 gpios = <&pca9552 3 GPIO_ACTIVE_LOW>;
213 retain-state-shutdown;
214 default-state = "keep";
215 gpios = <&pca9552 4 GPIO_ACTIVE_LOW>;
219 retain-state-shutdown;
220 default-state = "keep";
221 gpios = <&pca9552 5 GPIO_ACTIVE_LOW>;
226 compatible = "fsi-master-gpio", "fsi-master";
227 #address-cells = <2>;
231 clock-gpios = <&gpio ASPEED_GPIO(E, 6) GPIO_ACTIVE_HIGH>;
232 data-gpios = <&gpio ASPEED_GPIO(E, 7) GPIO_ACTIVE_HIGH>;
233 mux-gpios = <&gpio ASPEED_GPIO(E, 5) GPIO_ACTIVE_HIGH>;
234 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
235 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
238 compatible = "iio-hwmon";
239 io-channels = <&adc 0>;
243 compatible = "iio-hwmon";
244 io-channels = <&adc 1>;
248 compatible = "iio-hwmon";
249 io-channels = <&adc 2>;
253 compatible = "iio-hwmon";
254 io-channels = <&adc 3>;
258 compatible = "iio-hwmon";
259 io-channels = <&adc 4>;
263 compatible = "iio-hwmon";
264 io-channels = <&adc 5>;
268 compatible = "iio-hwmon";
269 io-channels = <&adc 6>;
273 compatible = "iio-hwmon";
274 io-channels = <&adc 7>;
278 compatible = "iio-hwmon";
279 io-channels = <&adc 8>;
283 compatible = "iio-hwmon";
284 io-channels = <&adc 9>;
288 compatible = "iio-hwmon";
289 io-channels = <&adc 10>;
293 compatible = "iio-hwmon";
294 io-channels = <&adc 11>;
298 compatible = "iio-hwmon";
299 io-channels = <&adc 12>;
303 compatible = "iio-hwmon";
304 io-channels = <&adc 13>;
308 compatible = "iio-hwmon";
309 io-channels = <&adc 14>;
313 compatible = "iio-hwmon";
314 io-channels = <&adc 15>;
320 pinctrl-names = "default";
321 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
322 &pinctrl_pwm2_default &pinctrl_pwm3_default
323 &pinctrl_pwm4_default &pinctrl_pwm5_default>;
327 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
332 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
337 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
342 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
347 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
352 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
357 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
362 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
367 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
372 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
377 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
382 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
388 /*A0-A7*/ "","cfam-reset","","","","","","",
389 /*B0-B7*/ "","","","","","","","",
390 /*C0-C7*/ "","","","","","","","",
391 /*D0-D7*/ "fsi-enable","","","","","","","",
392 /*E0-E7*/ "","","","","","fsi-mux","fsi-clock","fsi-data",
393 /*F0-F7*/ "","id-button","","","","","air-water","",
394 /*G0-G7*/ "","","","","","","","",
395 /*H0-H7*/ "","","","","","","","",
396 /*I0-I7*/ "","","","","","","","",
397 /*J0-J7*/ "","","checkstop","","","","","",
398 /*K0-K7*/ "","","","","","","","",
399 /*L0-L7*/ "","","","","","","","",
400 /*M0-M7*/ "","","","","","","","",
401 /*N0-N7*/ "","","","","","","","",
402 /*O0-O7*/ "","","","","","","","",
403 /*P0-P7*/ "","","","","","","","",
404 /*Q0-Q7*/ "","","","","","","","",
405 /*R0-R7*/ "","","fsi-trans","","","","","",
406 /*S0-S7*/ "","","","","","","","",
407 /*T0-T7*/ "","","","","","","","",
408 /*U0-U7*/ "","","","","","","","",
409 /*V0-V7*/ "","","","","","","","",
410 /*W0-W7*/ "","","","","","","","",
411 /*X0-X7*/ "","","","","","","","",
412 /*Y0-Y7*/ "","","","","","","","",
413 /*Z0-Z7*/ "presence-ps1","","presence-ps0","","","","","",
414 /*AA0-AA7*/ "led-front-fault","power-button","led-front-id","","","","","",
415 /*AB0-AB7*/ "","","","","","","","",
416 /*AC0-AC7*/ "","","","","","","","";
425 spi-max-frequency = <50000000>;
427 #address-cells = < 1 >;
429 compatible = "fixed-partitions";
435 reg = < 0x60000 0x20000 >;
436 label = "u-boot-env";
439 reg = < 0x80000 0x1F80000 >;
448 spi-max-frequency = <50000000>;
450 #address-cells = < 1 >;
452 compatible = "fixed-partitions";
455 label = "alt-u-boot";
458 reg = < 0x60000 0x20000 >;
459 label = "alt-u-boot-env";
462 reg = < 0x80000 0x1F80000 >;
463 label = "alt-obmc-ubi";
471 pinctrl-names = "default";
472 pinctrl-0 = <&pinctrl_spi1_default>;
478 spi-max-frequency = <100000000>;
484 memory-region = <&flash_memory>;
489 /* Rear RS-232 connector */
492 pinctrl-names = "default";
493 pinctrl-0 = <&pinctrl_txd1_default
494 &pinctrl_rxd1_default
495 &pinctrl_nrts1_default
496 &pinctrl_ndtr1_default
497 &pinctrl_ndsr1_default
498 &pinctrl_ncts1_default
499 &pinctrl_ndcd1_default
500 &pinctrl_nri1_default>;
507 pinctrl-names = "default";
508 pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
518 pinctrl-names = "default";
519 pinctrl-0 = <&pinctrl_rmii1_default>;
520 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
521 <&syscon ASPEED_CLK_MAC1RCLK>;
522 clock-names = "MACCLK", "RCLK";
529 pinctrl-names = "default";
530 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
555 /* PCA9516 (repeater) ->
556 * CLK Buffer 9FGS9092
557 * CLK Buffer 9DBL0651BKILFT
558 * CLK Buffer 9DBL0651BKILFT
565 compatible = "ibm,cffps1";
570 compatible = "ibm,cffps1";
574 pca9552: pca9552@60 {
575 compatible = "nxp,pca9552";
577 #address-cells = <1>;
584 type = <PCA955X_TYPE_GPIO>;
588 type = <PCA955X_TYPE_GPIO>;
592 type = <PCA955X_TYPE_GPIO>;
596 type = <PCA955X_TYPE_GPIO>;
600 type = <PCA955X_TYPE_GPIO>;
604 type = <PCA955X_TYPE_GPIO>;
608 type = <PCA955X_TYPE_GPIO>;
612 type = <PCA955X_TYPE_GPIO>;
616 type = <PCA955X_TYPE_GPIO>;
620 type = <PCA955X_TYPE_GPIO>;
624 type = <PCA955X_TYPE_GPIO>;
628 type = <PCA955X_TYPE_GPIO>;
632 type = <PCA955X_TYPE_GPIO>;
636 type = <PCA955X_TYPE_GPIO>;
640 type = <PCA955X_TYPE_GPIO>;
644 type = <PCA955X_TYPE_GPIO>;
654 /* CP0 VDD & VCS : IR35221 */
655 /* CP0 VDN : IR35221 */
656 /* CP0 VIO : IR38064 */
657 /* CP0 VDDR : PXM1330 */
660 compatible = "infineon,ir35221";
665 compatible = "infineon,ir35221";
674 /* CP0 VDD & VCS : IR35221 */
675 /* CP0 VDN : IR35221 */
676 /* CP0 VIO : IR38064 */
677 /* CP0 VDDR : PXM1330 */
680 compatible = "infineon,ir35221";
685 compatible = "infineon,ir35221";
694 /* pca9548 -> NVMe1 to 8 */
697 compatible = "nxp,pca9548";
698 #address-cells = <1>;
703 #address-cells = <1>;
709 #address-cells = <1>;
715 #address-cells = <1>;
721 #address-cells = <1>;
727 #address-cells = <1>;
733 #address-cells = <1>;
739 #address-cells = <1>;
745 #address-cells = <1>;
756 /* pca9548 -> NVMe9 to 16 */
759 compatible = "nxp,pca9548";
760 #address-cells = <1>;
765 #address-cells = <1>;
771 #address-cells = <1>;
777 #address-cells = <1>;
783 #address-cells = <1>;
789 #address-cells = <1>;
795 #address-cells = <1>;
801 #address-cells = <1>;
807 #address-cells = <1>;
819 compatible = "atmel,24c64";
831 * I2C BMC RISER PCA9554
832 * BMC SCL/SDA PCA9554
843 compatible = "nxp,pca9545";
844 #address-cells = <1>;
848 i2c-mux-idle-disconnect;
849 interrupt-controller;
850 #interrupt-cells = <2>;
853 #address-cells = <1>;
858 compatible = "ti,tca9554";
865 gpios = <4 GPIO_ACTIVE_HIGH>;
867 line-name = "smbus0";
872 compatible = "ti,tmp401";
878 #address-cells = <1>;
883 compatible = "ti,tca9554";
890 gpios = <4 GPIO_ACTIVE_HIGH>;
892 line-name = "smbus1";
897 compatible = "ti,tmp401";
903 #address-cells = <1>;
909 #address-cells = <1>;
916 compatible = "nxp,pca9545";
917 #address-cells = <1>;
921 i2c-mux-idle-disconnect;
922 interrupt-controller;
923 #interrupt-cells = <2>;
926 #address-cells = <1>;
931 compatible = "ti,tca9554";
938 gpios = <4 GPIO_ACTIVE_HIGH>;
940 line-name = "smbus2";
945 compatible = "ti,tmp401";
951 #address-cells = <1>;
956 compatible = "ti,tca9554";
963 gpios = <4 GPIO_ACTIVE_HIGH>;
965 line-name = "smbus3";
970 compatible = "ti,tmp401";
976 #address-cells = <1>;
982 #address-cells = <1>;
996 * I2C BMC RISER PCA9554
997 * BMC SCL/SDA PCA9554
1008 compatible = "nxp,pca9545";
1009 #address-cells = <1>;
1013 i2c-mux-idle-disconnect;
1014 interrupt-controller;
1015 #interrupt-cells = <2>;
1017 bus10_mux239: i2c@0 {
1018 #address-cells = <1>;
1023 compatible = "ti,tca9554";
1030 gpios = <4 GPIO_ACTIVE_HIGH>;
1032 line-name = "smbus4";
1037 compatible = "ti,tmp401";
1042 bus10_mux240: i2c@1 {
1043 #address-cells = <1>;
1048 compatible = "ti,tca9554";
1055 gpios = <4 GPIO_ACTIVE_HIGH>;
1057 line-name = "smbus5";
1062 compatible = "ti,tmp401";
1067 bus10_mux241: i2c@2 {
1068 #address-cells = <1>;
1073 bus10_mux242: i2c@3 {
1074 #address-cells = <1>;
1081 compatible = "nxp,pca9545";
1082 #address-cells = <1>;
1086 i2c-mux-idle-disconnect;
1087 interrupt-controller;
1088 #interrupt-cells = <2>;
1090 bus10_mux243: i2c@0 {
1091 #address-cells = <1>;
1096 compatible = "ti,tca9554";
1103 gpios = <4 GPIO_ACTIVE_HIGH>;
1105 line-name = "smbus6";
1110 compatible = "ti,tmp401";
1115 bus10_mux244: i2c@1 {
1116 #address-cells = <1>;
1121 compatible = "ti,tca9554";
1128 gpios = <4 GPIO_ACTIVE_HIGH>;
1130 line-name = "smbus7";
1135 compatible = "ti,tmp401";
1140 bus10_mux245: i2c@2 {
1141 #address-cells = <1>;
1146 bus10_mux246: i2c@3 {
1147 #address-cells = <1>;
1159 /* FPGA for power sequence */
1165 compatible = "infineon,slb9645tt";
1170 compatible = "epson,rx8900";
1175 compatible = "ti,tmp275";
1180 compatible = "ti,tmp275";
1184 /* chip emc1462 use emc1403 driver */
1186 compatible = "smsc,emc1403";
1203 compatible = "nxp,pca9545";
1204 #address-cells = <1>;
1208 interrupt-controller;
1209 #interrupt-cells = <2>;
1211 bus12_mux247: i2c@0 {
1212 #address-cells = <1>;
1217 compatible = "atmel,24c64";
1222 bus12_mux248: i2c@1 {
1223 #address-cells = <1>;
1228 compatible = "atmel,24c64";
1233 bus12_mux249: i2c@2 {
1234 #address-cells = <1>;
1239 compatible = "atmel,24c64";
1244 bus12_mux250: i2c@3 {
1245 #address-cells = <1>;
1250 compatible = "ti,tmp275";
1268 compatible = "nxp,pca9548";
1269 #address-cells = <1>;
1272 bus13_mux251: i2c@0 {
1273 #address-cells = <1>;
1278 bus13_mux252: i2c@1 {
1279 #address-cells = <1>;
1284 bus13_mux253: i2c@2 {
1285 #address-cells = <1>;
1290 bus13_mux254: i2c@3 {
1291 #address-cells = <1>;
1296 bus13_mux255: i2c@4 {
1297 #address-cells = <1>;
1302 bus13_mux256: i2c@5 {
1303 #address-cells = <1>;
1308 bus13_mux257: i2c@6 {
1309 #address-cells = <1>;
1314 bus13_mux258: i2c@7 {
1315 #address-cells = <1>;
1328 memory-region = <&gfx_memory>;
1333 pinctrl-names = "default";
1334 pinctrl-0 = <&pinctrl_adc0_default
1335 &pinctrl_adc1_default
1336 &pinctrl_adc2_default
1337 &pinctrl_adc3_default
1338 &pinctrl_adc4_default
1339 &pinctrl_adc5_default
1340 &pinctrl_adc6_default
1341 &pinctrl_adc7_default
1342 &pinctrl_adc8_default
1343 &pinctrl_adc9_default
1344 &pinctrl_adc10_default
1345 &pinctrl_adc11_default
1346 &pinctrl_adc12_default
1347 &pinctrl_adc13_default
1348 &pinctrl_adc14_default
1349 &pinctrl_adc15_default>;
1353 aspeed,reset-type = "none";
1354 aspeed,external-signal;
1355 aspeed,ext-push-pull;
1356 aspeed,ext-active-high;
1358 pinctrl-names = "default";
1359 pinctrl-0 = <&pinctrl_wdtrst1_default>;
1376 memory-region = <&video_engine_memory>;
1379 #include "ibm-power9-dual.dtsi"