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>;
392 spi-max-frequency = <50000000>;
394 #address-cells = < 1 >;
396 compatible = "fixed-partitions";
402 reg = < 0x60000 0x20000 >;
403 label = "u-boot-env";
406 reg = < 0x80000 0x1F80000 >;
415 spi-max-frequency = <50000000>;
417 #address-cells = < 1 >;
419 compatible = "fixed-partitions";
422 label = "alt-u-boot";
425 reg = < 0x60000 0x20000 >;
426 label = "alt-u-boot-env";
429 reg = < 0x80000 0x1F80000 >;
430 label = "alt-obmc-ubi";
438 pinctrl-names = "default";
439 pinctrl-0 = <&pinctrl_spi1_default>;
445 spi-max-frequency = <100000000>;
451 memory-region = <&flash_memory>;
456 /* Rear RS-232 connector */
459 pinctrl-names = "default";
460 pinctrl-0 = <&pinctrl_txd1_default
461 &pinctrl_rxd1_default
462 &pinctrl_nrts1_default
463 &pinctrl_ndtr1_default
464 &pinctrl_ndsr1_default
465 &pinctrl_ncts1_default
466 &pinctrl_ndcd1_default
467 &pinctrl_nri1_default>;
474 pinctrl-names = "default";
475 pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
485 pinctrl-names = "default";
486 pinctrl-0 = <&pinctrl_rmii1_default>;
487 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
488 <&syscon ASPEED_CLK_MAC1RCLK>;
489 clock-names = "MACCLK", "RCLK";
496 pinctrl-names = "default";
497 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
522 /* PCA9516 (repeater) ->
523 * CLK Buffer 9FGS9092
524 * CLK Buffer 9DBL0651BKILFT
525 * CLK Buffer 9DBL0651BKILFT
532 compatible = "ibm,cffps1";
537 compatible = "ibm,cffps1";
541 pca9552: pca9552@60 {
542 compatible = "nxp,pca9552";
544 #address-cells = <1>;
551 type = <PCA955X_TYPE_GPIO>;
555 type = <PCA955X_TYPE_GPIO>;
559 type = <PCA955X_TYPE_GPIO>;
563 type = <PCA955X_TYPE_GPIO>;
567 type = <PCA955X_TYPE_GPIO>;
571 type = <PCA955X_TYPE_GPIO>;
575 type = <PCA955X_TYPE_GPIO>;
579 type = <PCA955X_TYPE_GPIO>;
583 type = <PCA955X_TYPE_GPIO>;
587 type = <PCA955X_TYPE_GPIO>;
591 type = <PCA955X_TYPE_GPIO>;
595 type = <PCA955X_TYPE_GPIO>;
599 type = <PCA955X_TYPE_GPIO>;
603 type = <PCA955X_TYPE_GPIO>;
607 type = <PCA955X_TYPE_GPIO>;
611 type = <PCA955X_TYPE_GPIO>;
621 /* CP0 VDD & VCS : IR35221 */
622 /* CP0 VDN : IR35221 */
623 /* CP0 VIO : IR38064 */
624 /* CP0 VDDR : PXM1330 */
627 compatible = "infineon,ir35221";
632 compatible = "infineon,ir35221";
641 /* CP0 VDD & VCS : IR35221 */
642 /* CP0 VDN : IR35221 */
643 /* CP0 VIO : IR38064 */
644 /* CP0 VDDR : PXM1330 */
647 compatible = "infineon,ir35221";
652 compatible = "infineon,ir35221";
661 /* pca9548 -> NVMe1 to 8 */
664 compatible = "nxp,pca9548";
665 #address-cells = <1>;
670 #address-cells = <1>;
676 #address-cells = <1>;
682 #address-cells = <1>;
688 #address-cells = <1>;
694 #address-cells = <1>;
700 #address-cells = <1>;
706 #address-cells = <1>;
712 #address-cells = <1>;
723 /* pca9548 -> NVMe9 to 16 */
726 compatible = "nxp,pca9548";
727 #address-cells = <1>;
732 #address-cells = <1>;
738 #address-cells = <1>;
744 #address-cells = <1>;
750 #address-cells = <1>;
756 #address-cells = <1>;
762 #address-cells = <1>;
768 #address-cells = <1>;
774 #address-cells = <1>;
786 compatible = "atmel,24c64";
798 * I2C BMC RISER PCA9554
799 * BMC SCL/SDA PCA9554
810 compatible = "nxp,pca9545";
811 #address-cells = <1>;
815 i2c-mux-idle-disconnect;
816 interrupt-controller;
817 #interrupt-cells = <2>;
820 #address-cells = <1>;
825 compatible = "ti,tca9554";
832 gpios = <4 GPIO_ACTIVE_HIGH>;
834 line-name = "smbus0";
839 compatible = "ti,tmp401";
845 #address-cells = <1>;
850 compatible = "ti,tca9554";
857 gpios = <4 GPIO_ACTIVE_HIGH>;
859 line-name = "smbus1";
864 compatible = "ti,tmp401";
870 #address-cells = <1>;
876 #address-cells = <1>;
883 compatible = "nxp,pca9545";
884 #address-cells = <1>;
888 i2c-mux-idle-disconnect;
889 interrupt-controller;
890 #interrupt-cells = <2>;
893 #address-cells = <1>;
898 compatible = "ti,tca9554";
905 gpios = <4 GPIO_ACTIVE_HIGH>;
907 line-name = "smbus2";
912 compatible = "ti,tmp401";
918 #address-cells = <1>;
923 compatible = "ti,tca9554";
930 gpios = <4 GPIO_ACTIVE_HIGH>;
932 line-name = "smbus3";
937 compatible = "ti,tmp401";
943 #address-cells = <1>;
949 #address-cells = <1>;
963 * I2C BMC RISER PCA9554
964 * BMC SCL/SDA PCA9554
975 compatible = "nxp,pca9545";
976 #address-cells = <1>;
980 i2c-mux-idle-disconnect;
981 interrupt-controller;
982 #interrupt-cells = <2>;
984 bus10_mux239: i2c@0 {
985 #address-cells = <1>;
990 compatible = "ti,tca9554";
997 gpios = <4 GPIO_ACTIVE_HIGH>;
999 line-name = "smbus4";
1004 compatible = "ti,tmp401";
1009 bus10_mux240: i2c@1 {
1010 #address-cells = <1>;
1015 compatible = "ti,tca9554";
1022 gpios = <4 GPIO_ACTIVE_HIGH>;
1024 line-name = "smbus5";
1029 compatible = "ti,tmp401";
1034 bus10_mux241: i2c@2 {
1035 #address-cells = <1>;
1040 bus10_mux242: i2c@3 {
1041 #address-cells = <1>;
1048 compatible = "nxp,pca9545";
1049 #address-cells = <1>;
1053 i2c-mux-idle-disconnect;
1054 interrupt-controller;
1055 #interrupt-cells = <2>;
1057 bus10_mux243: i2c@0 {
1058 #address-cells = <1>;
1063 compatible = "ti,tca9554";
1070 gpios = <4 GPIO_ACTIVE_HIGH>;
1072 line-name = "smbus6";
1077 compatible = "ti,tmp401";
1082 bus10_mux244: i2c@1 {
1083 #address-cells = <1>;
1088 compatible = "ti,tca9554";
1095 gpios = <4 GPIO_ACTIVE_HIGH>;
1097 line-name = "smbus7";
1102 compatible = "ti,tmp401";
1107 bus10_mux245: i2c@2 {
1108 #address-cells = <1>;
1113 bus10_mux246: i2c@3 {
1114 #address-cells = <1>;
1126 /* FPGA for power sequence */
1132 compatible = "infineon,slb9645tt";
1137 compatible = "epson,rx8900";
1142 compatible = "ti,tmp275";
1147 compatible = "ti,tmp275";
1151 /* chip emc1462 use emc1403 driver */
1153 compatible = "smsc,emc1403";
1170 compatible = "nxp,pca9545";
1171 #address-cells = <1>;
1175 interrupt-controller;
1176 #interrupt-cells = <2>;
1178 bus12_mux247: i2c@0 {
1179 #address-cells = <1>;
1184 compatible = "atmel,24c64";
1189 bus12_mux248: i2c@1 {
1190 #address-cells = <1>;
1195 compatible = "atmel,24c64";
1200 bus12_mux249: i2c@2 {
1201 #address-cells = <1>;
1206 compatible = "atmel,24c64";
1211 bus12_mux250: i2c@3 {
1212 #address-cells = <1>;
1217 compatible = "ti,tmp275";
1235 compatible = "nxp,pca9548";
1236 #address-cells = <1>;
1239 bus13_mux251: i2c@0 {
1240 #address-cells = <1>;
1245 bus13_mux252: i2c@1 {
1246 #address-cells = <1>;
1251 bus13_mux253: i2c@2 {
1252 #address-cells = <1>;
1257 bus13_mux254: i2c@3 {
1258 #address-cells = <1>;
1263 bus13_mux255: i2c@4 {
1264 #address-cells = <1>;
1269 bus13_mux256: i2c@5 {
1270 #address-cells = <1>;
1275 bus13_mux257: i2c@6 {
1276 #address-cells = <1>;
1281 bus13_mux258: i2c@7 {
1282 #address-cells = <1>;
1295 memory-region = <&gfx_memory>;
1300 pinctrl-names = "default";
1301 pinctrl-0 = <&pinctrl_adc0_default
1302 &pinctrl_adc1_default
1303 &pinctrl_adc2_default
1304 &pinctrl_adc3_default
1305 &pinctrl_adc4_default
1306 &pinctrl_adc5_default
1307 &pinctrl_adc6_default
1308 &pinctrl_adc7_default
1309 &pinctrl_adc8_default
1310 &pinctrl_adc9_default
1311 &pinctrl_adc10_default
1312 &pinctrl_adc11_default
1313 &pinctrl_adc12_default
1314 &pinctrl_adc13_default
1315 &pinctrl_adc14_default
1316 &pinctrl_adc15_default>;
1320 aspeed,reset-type = "none";
1321 aspeed,external-signal;
1322 aspeed,ext-push-pull;
1323 aspeed,ext-active-high;
1325 pinctrl-names = "default";
1326 pinctrl-0 = <&pinctrl_wdtrst1_default>;
1343 memory-region = <&video_engine_memory>;
1346 #include "ibm-power9-dual.dtsi"