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 earlycon";
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)>;
121 gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>;
122 linux,code = <ASPEED_GPIO(F, 1)>;
127 compatible = "gpio-keys-polled";
128 poll-interval = <1000>;
130 event-fan0-presence {
131 label = "fan0-presence";
132 gpios = <&pca9552 9 GPIO_ACTIVE_LOW>;
136 event-fan1-presence {
137 label = "fan1-presence";
138 gpios = <&pca9552 10 GPIO_ACTIVE_LOW>;
142 event-fan2-presence {
143 label = "fan2-presence";
144 gpios = <&pca9552 11 GPIO_ACTIVE_LOW>;
148 event-fan3-presence {
149 label = "fan3-presence";
150 gpios = <&pca9552 12 GPIO_ACTIVE_LOW>;
154 event-fan4-presence {
155 label = "fan4-presence";
156 gpios = <&pca9552 13 GPIO_ACTIVE_LOW>;
160 event-fan5-presence {
161 label = "fan5-presence";
162 gpios = <&pca9552 14 GPIO_ACTIVE_LOW>;
168 compatible = "gpio-leds";
171 retain-state-shutdown;
172 default-state = "keep";
173 gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_LOW>;
177 retain-state-shutdown;
178 default-state = "keep";
179 gpios = <&gpio ASPEED_GPIO(AA, 1) GPIO_ACTIVE_LOW>;
183 retain-state-shutdown;
184 default-state = "keep";
185 gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_LOW>;
190 retain-state-shutdown;
191 default-state = "keep";
192 gpios = <&pca9552 0 GPIO_ACTIVE_LOW>;
196 retain-state-shutdown;
197 default-state = "keep";
198 gpios = <&pca9552 1 GPIO_ACTIVE_LOW>;
202 retain-state-shutdown;
203 default-state = "keep";
204 gpios = <&pca9552 2 GPIO_ACTIVE_LOW>;
208 retain-state-shutdown;
209 default-state = "keep";
210 gpios = <&pca9552 3 GPIO_ACTIVE_LOW>;
214 retain-state-shutdown;
215 default-state = "keep";
216 gpios = <&pca9552 4 GPIO_ACTIVE_LOW>;
220 retain-state-shutdown;
221 default-state = "keep";
222 gpios = <&pca9552 5 GPIO_ACTIVE_LOW>;
227 compatible = "fsi-master-gpio", "fsi-master";
228 #address-cells = <2>;
232 clock-gpios = <&gpio ASPEED_GPIO(E, 6) GPIO_ACTIVE_HIGH>;
233 data-gpios = <&gpio ASPEED_GPIO(E, 7) GPIO_ACTIVE_HIGH>;
234 mux-gpios = <&gpio ASPEED_GPIO(E, 5) GPIO_ACTIVE_HIGH>;
235 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
236 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
239 compatible = "iio-hwmon";
240 io-channels = <&adc 0>;
244 compatible = "iio-hwmon";
245 io-channels = <&adc 1>;
249 compatible = "iio-hwmon";
250 io-channels = <&adc 2>;
254 compatible = "iio-hwmon";
255 io-channels = <&adc 3>;
259 compatible = "iio-hwmon";
260 io-channels = <&adc 4>;
264 compatible = "iio-hwmon";
265 io-channels = <&adc 5>;
269 compatible = "iio-hwmon";
270 io-channels = <&adc 6>;
274 compatible = "iio-hwmon";
275 io-channels = <&adc 7>;
279 compatible = "iio-hwmon";
280 io-channels = <&adc 8>;
284 compatible = "iio-hwmon";
285 io-channels = <&adc 9>;
289 compatible = "iio-hwmon";
290 io-channels = <&adc 10>;
294 compatible = "iio-hwmon";
295 io-channels = <&adc 11>;
299 compatible = "iio-hwmon";
300 io-channels = <&adc 12>;
304 compatible = "iio-hwmon";
305 io-channels = <&adc 13>;
309 compatible = "iio-hwmon";
310 io-channels = <&adc 14>;
314 compatible = "iio-hwmon";
315 io-channels = <&adc 15>;
321 pinctrl-names = "default";
322 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
323 &pinctrl_pwm2_default &pinctrl_pwm3_default
324 &pinctrl_pwm4_default &pinctrl_pwm5_default>;
328 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
333 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
338 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
343 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
348 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
353 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
358 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
363 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
368 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
373 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
378 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
383 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
389 /*A0-A7*/ "","cfam-reset","","","","","","",
390 /*B0-B7*/ "","","","","","","","",
391 /*C0-C7*/ "","","","","","","","",
392 /*D0-D7*/ "fsi-enable","","","","","","","",
393 /*E0-E7*/ "","","","","","fsi-mux","fsi-clock","fsi-data",
394 /*F0-F7*/ "","id-button","","","","","air-water","",
395 /*G0-G7*/ "","","","","","","","",
396 /*H0-H7*/ "","","","","","","","",
397 /*I0-I7*/ "","","","","","","","",
398 /*J0-J7*/ "","","checkstop","","","","","",
399 /*K0-K7*/ "","","","","","","","",
400 /*L0-L7*/ "","","","","","","","",
401 /*M0-M7*/ "","","","","","","","",
402 /*N0-N7*/ "","","","","","","","",
403 /*O0-O7*/ "","","","","","","","",
404 /*P0-P7*/ "","","","","","","","",
405 /*Q0-Q7*/ "","","","","","","","",
406 /*R0-R7*/ "","","fsi-trans","","","","","",
407 /*S0-S7*/ "","","","","","","","",
408 /*T0-T7*/ "","","","","","","","",
409 /*U0-U7*/ "","","","","","","","",
410 /*V0-V7*/ "","","","","","","","",
411 /*W0-W7*/ "","","","","","","","",
412 /*X0-X7*/ "","","","","","","","",
413 /*Y0-Y7*/ "","","","","","","","",
414 /*Z0-Z7*/ "presence-ps1","","presence-ps0","","","","","",
415 /*AA0-AA7*/ "led-front-fault","power-button","led-front-id","","","","","",
416 /*AB0-AB7*/ "","","","","","","","",
417 /*AC0-AC7*/ "","","","","","","","";
426 spi-max-frequency = <50000000>;
428 #address-cells = < 1 >;
430 compatible = "fixed-partitions";
436 reg = < 0x60000 0x20000 >;
437 label = "u-boot-env";
440 reg = < 0x80000 0x1F80000 >;
449 spi-max-frequency = <50000000>;
451 #address-cells = < 1 >;
453 compatible = "fixed-partitions";
456 label = "alt-u-boot";
459 reg = < 0x60000 0x20000 >;
460 label = "alt-u-boot-env";
463 reg = < 0x80000 0x1F80000 >;
464 label = "alt-obmc-ubi";
472 pinctrl-names = "default";
473 pinctrl-0 = <&pinctrl_spi1_default>;
479 spi-max-frequency = <100000000>;
485 memory-region = <&flash_memory>;
490 /* Rear RS-232 connector */
493 pinctrl-names = "default";
494 pinctrl-0 = <&pinctrl_txd1_default
495 &pinctrl_rxd1_default
496 &pinctrl_nrts1_default
497 &pinctrl_ndtr1_default
498 &pinctrl_ndsr1_default
499 &pinctrl_ncts1_default
500 &pinctrl_ndcd1_default
501 &pinctrl_nri1_default>;
508 pinctrl-names = "default";
509 pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
519 pinctrl-names = "default";
520 pinctrl-0 = <&pinctrl_rmii1_default>;
521 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
522 <&syscon ASPEED_CLK_MAC1RCLK>;
523 clock-names = "MACCLK", "RCLK";
530 pinctrl-names = "default";
531 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
556 /* PCA9516 (repeater) ->
557 * CLK Buffer 9FGS9092
558 * CLK Buffer 9DBL0651BKILFT
559 * CLK Buffer 9DBL0651BKILFT
566 compatible = "ibm,cffps1";
571 compatible = "ibm,cffps1";
575 pca9552: pca9552@60 {
576 compatible = "nxp,pca9552";
578 #address-cells = <1>;
585 type = <PCA955X_TYPE_GPIO>;
589 type = <PCA955X_TYPE_GPIO>;
593 type = <PCA955X_TYPE_GPIO>;
597 type = <PCA955X_TYPE_GPIO>;
601 type = <PCA955X_TYPE_GPIO>;
605 type = <PCA955X_TYPE_GPIO>;
609 type = <PCA955X_TYPE_GPIO>;
613 type = <PCA955X_TYPE_GPIO>;
617 type = <PCA955X_TYPE_GPIO>;
621 type = <PCA955X_TYPE_GPIO>;
625 type = <PCA955X_TYPE_GPIO>;
629 type = <PCA955X_TYPE_GPIO>;
633 type = <PCA955X_TYPE_GPIO>;
637 type = <PCA955X_TYPE_GPIO>;
641 type = <PCA955X_TYPE_GPIO>;
645 type = <PCA955X_TYPE_GPIO>;
655 /* CP0 VDD & VCS : IR35221 */
656 /* CP0 VDN : IR35221 */
657 /* CP0 VIO : IR38064 */
658 /* CP0 VDDR : PXM1330 */
661 compatible = "infineon,ir35221";
666 compatible = "infineon,ir35221";
675 /* CP0 VDD & VCS : IR35221 */
676 /* CP0 VDN : IR35221 */
677 /* CP0 VIO : IR38064 */
678 /* CP0 VDDR : PXM1330 */
681 compatible = "infineon,ir35221";
686 compatible = "infineon,ir35221";
695 /* pca9548 -> NVMe1 to 8 */
698 compatible = "nxp,pca9548";
699 #address-cells = <1>;
704 #address-cells = <1>;
710 #address-cells = <1>;
716 #address-cells = <1>;
722 #address-cells = <1>;
728 #address-cells = <1>;
734 #address-cells = <1>;
740 #address-cells = <1>;
746 #address-cells = <1>;
757 /* pca9548 -> NVMe9 to 16 */
760 compatible = "nxp,pca9548";
761 #address-cells = <1>;
766 #address-cells = <1>;
772 #address-cells = <1>;
778 #address-cells = <1>;
784 #address-cells = <1>;
790 #address-cells = <1>;
796 #address-cells = <1>;
802 #address-cells = <1>;
808 #address-cells = <1>;
820 compatible = "atmel,24c64";
832 * I2C BMC RISER PCA9554
833 * BMC SCL/SDA PCA9554
844 compatible = "nxp,pca9545";
845 #address-cells = <1>;
849 i2c-mux-idle-disconnect;
850 interrupt-controller;
851 #interrupt-cells = <2>;
854 #address-cells = <1>;
859 compatible = "ti,tca9554";
866 gpios = <4 GPIO_ACTIVE_HIGH>;
868 line-name = "smbus0";
873 compatible = "ti,tmp401";
879 #address-cells = <1>;
884 compatible = "ti,tca9554";
891 gpios = <4 GPIO_ACTIVE_HIGH>;
893 line-name = "smbus1";
898 compatible = "ti,tmp401";
904 #address-cells = <1>;
910 #address-cells = <1>;
917 compatible = "nxp,pca9545";
918 #address-cells = <1>;
922 i2c-mux-idle-disconnect;
923 interrupt-controller;
924 #interrupt-cells = <2>;
927 #address-cells = <1>;
932 compatible = "ti,tca9554";
939 gpios = <4 GPIO_ACTIVE_HIGH>;
941 line-name = "smbus2";
946 compatible = "ti,tmp401";
952 #address-cells = <1>;
957 compatible = "ti,tca9554";
964 gpios = <4 GPIO_ACTIVE_HIGH>;
966 line-name = "smbus3";
971 compatible = "ti,tmp401";
977 #address-cells = <1>;
983 #address-cells = <1>;
997 * I2C BMC RISER PCA9554
998 * BMC SCL/SDA PCA9554
1009 compatible = "nxp,pca9545";
1010 #address-cells = <1>;
1014 i2c-mux-idle-disconnect;
1015 interrupt-controller;
1016 #interrupt-cells = <2>;
1018 bus10_mux239: i2c@0 {
1019 #address-cells = <1>;
1024 compatible = "ti,tca9554";
1031 gpios = <4 GPIO_ACTIVE_HIGH>;
1033 line-name = "smbus4";
1038 compatible = "ti,tmp401";
1043 bus10_mux240: i2c@1 {
1044 #address-cells = <1>;
1049 compatible = "ti,tca9554";
1056 gpios = <4 GPIO_ACTIVE_HIGH>;
1058 line-name = "smbus5";
1063 compatible = "ti,tmp401";
1068 bus10_mux241: i2c@2 {
1069 #address-cells = <1>;
1074 bus10_mux242: i2c@3 {
1075 #address-cells = <1>;
1082 compatible = "nxp,pca9545";
1083 #address-cells = <1>;
1087 i2c-mux-idle-disconnect;
1088 interrupt-controller;
1089 #interrupt-cells = <2>;
1091 bus10_mux243: i2c@0 {
1092 #address-cells = <1>;
1097 compatible = "ti,tca9554";
1104 gpios = <4 GPIO_ACTIVE_HIGH>;
1106 line-name = "smbus6";
1111 compatible = "ti,tmp401";
1116 bus10_mux244: i2c@1 {
1117 #address-cells = <1>;
1122 compatible = "ti,tca9554";
1129 gpios = <4 GPIO_ACTIVE_HIGH>;
1131 line-name = "smbus7";
1136 compatible = "ti,tmp401";
1141 bus10_mux245: i2c@2 {
1142 #address-cells = <1>;
1147 bus10_mux246: i2c@3 {
1148 #address-cells = <1>;
1160 /* FPGA for power sequence */
1166 compatible = "infineon,slb9645tt";
1171 compatible = "epson,rx8900";
1176 compatible = "ti,tmp275";
1181 compatible = "ti,tmp275";
1185 /* chip emc1462 use emc1403 driver */
1187 compatible = "smsc,emc1403";
1204 compatible = "nxp,pca9545";
1205 #address-cells = <1>;
1209 interrupt-controller;
1210 #interrupt-cells = <2>;
1212 bus12_mux247: i2c@0 {
1213 #address-cells = <1>;
1218 compatible = "atmel,24c64";
1223 bus12_mux248: i2c@1 {
1224 #address-cells = <1>;
1229 compatible = "atmel,24c64";
1234 bus12_mux249: i2c@2 {
1235 #address-cells = <1>;
1240 compatible = "atmel,24c64";
1245 bus12_mux250: i2c@3 {
1246 #address-cells = <1>;
1251 compatible = "ti,tmp275";
1269 compatible = "nxp,pca9548";
1270 #address-cells = <1>;
1273 bus13_mux251: i2c@0 {
1274 #address-cells = <1>;
1279 bus13_mux252: i2c@1 {
1280 #address-cells = <1>;
1285 bus13_mux253: i2c@2 {
1286 #address-cells = <1>;
1291 bus13_mux254: i2c@3 {
1292 #address-cells = <1>;
1297 bus13_mux255: i2c@4 {
1298 #address-cells = <1>;
1303 bus13_mux256: i2c@5 {
1304 #address-cells = <1>;
1309 bus13_mux257: i2c@6 {
1310 #address-cells = <1>;
1315 bus13_mux258: i2c@7 {
1316 #address-cells = <1>;
1329 memory-region = <&gfx_memory>;
1334 pinctrl-names = "default";
1335 pinctrl-0 = <&pinctrl_adc0_default
1336 &pinctrl_adc1_default
1337 &pinctrl_adc2_default
1338 &pinctrl_adc3_default
1339 &pinctrl_adc4_default
1340 &pinctrl_adc5_default
1341 &pinctrl_adc6_default
1342 &pinctrl_adc7_default
1343 &pinctrl_adc8_default
1344 &pinctrl_adc9_default
1345 &pinctrl_adc10_default
1346 &pinctrl_adc11_default
1347 &pinctrl_adc12_default
1348 &pinctrl_adc13_default
1349 &pinctrl_adc14_default
1350 &pinctrl_adc15_default>;
1354 aspeed,reset-type = "none";
1355 aspeed,external-signal;
1356 aspeed,ext-push-pull;
1357 aspeed,ext-active-high;
1359 pinctrl-names = "default";
1360 pinctrl-0 = <&pinctrl_wdtrst1_default>;
1377 memory-region = <&video_engine_memory>;
1380 #include "ibm-power9-dual.dtsi"