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>;
826 #address-cells = <1>;
832 #address-cells = <1>;
838 #address-cells = <1>;
845 compatible = "nxp,pca9545";
846 #address-cells = <1>;
850 i2c-mux-idle-disconnect;
851 interrupt-controller;
852 #interrupt-cells = <2>;
855 #address-cells = <1>;
861 #address-cells = <1>;
867 #address-cells = <1>;
873 #address-cells = <1>;
887 * I2C BMC RISER PCA9554
888 * BMC SCL/SDA PCA9554
899 compatible = "nxp,pca9545";
900 #address-cells = <1>;
904 i2c-mux-idle-disconnect;
905 interrupt-controller;
906 #interrupt-cells = <2>;
908 bus10_mux239: i2c@0 {
909 #address-cells = <1>;
914 bus10_mux240: i2c@1 {
915 #address-cells = <1>;
920 bus10_mux241: i2c@2 {
921 #address-cells = <1>;
926 bus10_mux242: i2c@3 {
927 #address-cells = <1>;
934 compatible = "nxp,pca9545";
935 #address-cells = <1>;
939 i2c-mux-idle-disconnect;
940 interrupt-controller;
941 #interrupt-cells = <2>;
943 bus10_mux243: i2c@0 {
944 #address-cells = <1>;
949 bus10_mux244: i2c@1 {
950 #address-cells = <1>;
955 bus10_mux245: i2c@2 {
956 #address-cells = <1>;
961 bus10_mux246: i2c@3 {
962 #address-cells = <1>;
974 /* FPGA for power sequence */
980 compatible = "infineon,slb9645tt";
985 compatible = "epson,rx8900";
990 compatible = "ti,tmp275";
995 compatible = "ti,tmp275";
999 /* chip emc1462 use emc1403 driver */
1001 compatible = "smsc,emc1403";
1018 compatible = "nxp,pca9545";
1019 #address-cells = <1>;
1023 interrupt-controller;
1024 #interrupt-cells = <2>;
1026 bus12_mux247: i2c@0 {
1027 #address-cells = <1>;
1032 compatible = "atmel,24c64";
1037 bus12_mux248: i2c@1 {
1038 #address-cells = <1>;
1043 compatible = "atmel,24c64";
1048 bus12_mux249: i2c@2 {
1049 #address-cells = <1>;
1054 compatible = "atmel,24c64";
1059 bus12_mux250: i2c@3 {
1060 #address-cells = <1>;
1065 compatible = "ti,tmp275";
1083 compatible = "nxp,pca9548";
1084 #address-cells = <1>;
1087 bus13_mux251: i2c@0 {
1088 #address-cells = <1>;
1093 bus13_mux252: i2c@1 {
1094 #address-cells = <1>;
1099 bus13_mux253: i2c@2 {
1100 #address-cells = <1>;
1105 bus13_mux254: i2c@3 {
1106 #address-cells = <1>;
1111 bus13_mux255: i2c@4 {
1112 #address-cells = <1>;
1117 bus13_mux256: i2c@5 {
1118 #address-cells = <1>;
1123 bus13_mux257: i2c@6 {
1124 #address-cells = <1>;
1129 bus13_mux258: i2c@7 {
1130 #address-cells = <1>;
1143 memory-region = <&gfx_memory>;
1148 pinctrl-names = "default";
1149 pinctrl-0 = <&pinctrl_adc0_default
1150 &pinctrl_adc1_default
1151 &pinctrl_adc2_default
1152 &pinctrl_adc3_default
1153 &pinctrl_adc4_default
1154 &pinctrl_adc5_default
1155 &pinctrl_adc6_default
1156 &pinctrl_adc7_default
1157 &pinctrl_adc8_default
1158 &pinctrl_adc9_default
1159 &pinctrl_adc10_default
1160 &pinctrl_adc11_default
1161 &pinctrl_adc12_default
1162 &pinctrl_adc13_default
1163 &pinctrl_adc14_default
1164 &pinctrl_adc15_default>;
1168 aspeed,reset-type = "none";
1169 aspeed,external-signal;
1170 aspeed,ext-push-pull;
1171 aspeed,ext-active-high;
1173 pinctrl-names = "default";
1174 pinctrl-0 = <&pinctrl_wdtrst1_default>;
1191 memory-region = <&video_engine_memory>;
1194 #include "ibm-power9-dual.dtsi"