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";
14 bootargs = "console=ttyS4,115200 earlyprintk";
18 reg = <0x80000000 0x20000000>;
26 flash_memory: region@98000000 {
28 reg = <0x98000000 0x04000000>; /* 64M */
31 gfx_memory: framebuffer {
33 alignment = <0x01000000>;
34 compatible = "shared-dma-pool";
38 video_engine_memory: jpegbuffer {
40 alignment = <0x01000000>;
41 compatible = "shared-dma-pool";
47 compatible = "gpio-keys";
51 gpios = <&gpio ASPEED_GPIO(F, 6) GPIO_ACTIVE_LOW>;
52 linux,code = <ASPEED_GPIO(F, 6)>;
57 gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
58 linux,code = <ASPEED_GPIO(J, 2)>;
62 label = "ps0-presence";
63 gpios = <&gpio ASPEED_GPIO(Z, 2) GPIO_ACTIVE_LOW>;
64 linux,code = <ASPEED_GPIO(Z, 2)>;
68 label = "ps1-presence";
69 gpios = <&gpio ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
70 linux,code = <ASPEED_GPIO(Z, 0)>;
74 gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>;
75 linux,code = <ASPEED_GPIO(F, 1)>;
80 compatible = "gpio-keys-polled";
81 poll-interval = <1000>;
84 label = "fan0-presence";
85 gpios = <&pca9552 9 GPIO_ACTIVE_LOW>;
90 label = "fan1-presence";
91 gpios = <&pca9552 10 GPIO_ACTIVE_LOW>;
96 label = "fan2-presence";
97 gpios = <&pca9552 11 GPIO_ACTIVE_LOW>;
102 label = "fan3-presence";
103 gpios = <&pca9552 12 GPIO_ACTIVE_LOW>;
108 label = "fan4-presence";
109 gpios = <&pca9552 13 GPIO_ACTIVE_LOW>;
114 label = "fan5-presence";
115 gpios = <&pca9552 14 GPIO_ACTIVE_LOW>;
121 compatible = "gpio-leds";
124 retain-state-shutdown;
125 default-state = "keep";
126 gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_LOW>;
130 retain-state-shutdown;
131 default-state = "keep";
132 gpios = <&gpio ASPEED_GPIO(AA, 1) GPIO_ACTIVE_LOW>;
136 retain-state-shutdown;
137 default-state = "keep";
138 gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_LOW>;
142 retain-state-shutdown;
143 default-state = "keep";
144 gpios = <&gpio ASPEED_GPIO(AA, 4) GPIO_ACTIVE_LOW>;
148 retain-state-shutdown;
149 default-state = "keep";
150 gpios = <&gpio ASPEED_GPIO(Y, 0) GPIO_ACTIVE_LOW>;
154 retain-state-shutdown;
155 default-state = "keep";
156 gpios = <&pca9552 0 GPIO_ACTIVE_LOW>;
160 retain-state-shutdown;
161 default-state = "keep";
162 gpios = <&pca9552 1 GPIO_ACTIVE_LOW>;
166 retain-state-shutdown;
167 default-state = "keep";
168 gpios = <&pca9552 2 GPIO_ACTIVE_LOW>;
172 retain-state-shutdown;
173 default-state = "keep";
174 gpios = <&pca9552 3 GPIO_ACTIVE_LOW>;
178 retain-state-shutdown;
179 default-state = "keep";
180 gpios = <&pca9552 4 GPIO_ACTIVE_LOW>;
184 retain-state-shutdown;
185 default-state = "keep";
186 gpios = <&pca9552 5 GPIO_ACTIVE_LOW>;
191 compatible = "fsi-master-gpio", "fsi-master";
192 #address-cells = <2>;
196 clock-gpios = <&gpio ASPEED_GPIO(E, 6) GPIO_ACTIVE_HIGH>;
197 data-gpios = <&gpio ASPEED_GPIO(E, 7) GPIO_ACTIVE_HIGH>;
198 mux-gpios = <&gpio ASPEED_GPIO(E, 5) GPIO_ACTIVE_HIGH>;
199 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
200 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
203 compatible = "iio-hwmon";
204 io-channels = <&adc 0>;
208 compatible = "iio-hwmon";
209 io-channels = <&adc 1>;
213 compatible = "iio-hwmon";
214 io-channels = <&adc 2>;
218 compatible = "iio-hwmon";
219 io-channels = <&adc 3>;
223 compatible = "iio-hwmon";
224 io-channels = <&adc 4>;
228 compatible = "iio-hwmon";
229 io-channels = <&adc 5>;
233 compatible = "iio-hwmon";
234 io-channels = <&adc 6>;
238 compatible = "iio-hwmon";
239 io-channels = <&adc 7>;
243 compatible = "iio-hwmon";
244 io-channels = <&adc 8>;
248 compatible = "iio-hwmon";
249 io-channels = <&adc 9>;
253 compatible = "iio-hwmon";
254 io-channels = <&adc 10>;
258 compatible = "iio-hwmon";
259 io-channels = <&adc 11>;
263 compatible = "iio-hwmon";
264 io-channels = <&adc 12>;
268 compatible = "iio-hwmon";
269 io-channels = <&adc 13>;
273 compatible = "iio-hwmon";
274 io-channels = <&adc 14>;
278 compatible = "iio-hwmon";
279 io-channels = <&adc 15>;
285 pinctrl-names = "default";
286 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
287 &pinctrl_pwm2_default &pinctrl_pwm3_default
288 &pinctrl_pwm4_default &pinctrl_pwm5_default>;
292 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
297 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
302 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
307 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
312 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
317 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
322 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
327 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
332 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
337 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
342 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
347 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
357 spi-max-frequency = <50000000>;
359 #address-cells = < 1 >;
361 compatible = "fixed-partitions";
367 reg = < 0x60000 0x20000 >;
368 label = "u-boot-env";
371 reg = < 0x80000 0x1F80000 >;
380 spi-max-frequency = <50000000>;
382 #address-cells = < 1 >;
384 compatible = "fixed-partitions";
387 label = "alt-u-boot";
390 reg = < 0x60000 0x20000 >;
391 label = "alt-u-boot-env";
394 reg = < 0x80000 0x1F80000 >;
395 label = "alt-obmc-ubi";
403 pinctrl-names = "default";
404 pinctrl-0 = <&pinctrl_spi1_default>;
410 spi-max-frequency = <100000000>;
416 memory-region = <&flash_memory>;
421 /* Rear RS-232 connector */
424 pinctrl-names = "default";
425 pinctrl-0 = <&pinctrl_txd1_default
426 &pinctrl_rxd1_default
427 &pinctrl_nrts1_default
428 &pinctrl_ndtr1_default
429 &pinctrl_ndsr1_default
430 &pinctrl_ncts1_default
431 &pinctrl_ndcd1_default
432 &pinctrl_nri1_default>;
439 pinctrl-names = "default";
440 pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
450 pinctrl-names = "default";
451 pinctrl-0 = <&pinctrl_rmii1_default>;
452 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
453 <&syscon ASPEED_CLK_MAC1RCLK>;
454 clock-names = "MACCLK", "RCLK";
461 pinctrl-names = "default";
462 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
487 /* PCA9516 (repeater) ->
488 * CLK Buffer 9FGS9092
489 * CLK Buffer 9DBL0651BKILFT
490 * CLK Buffer 9DBL0651BKILFT
497 compatible = "ibm,cffps1";
502 compatible = "ibm,cffps1";
506 pca9552: pca9552@60 {
507 compatible = "nxp,pca9552";
509 #address-cells = <1>;
516 type = <PCA955X_TYPE_GPIO>;
520 type = <PCA955X_TYPE_GPIO>;
524 type = <PCA955X_TYPE_GPIO>;
528 type = <PCA955X_TYPE_GPIO>;
532 type = <PCA955X_TYPE_GPIO>;
536 type = <PCA955X_TYPE_GPIO>;
540 type = <PCA955X_TYPE_GPIO>;
544 type = <PCA955X_TYPE_GPIO>;
548 type = <PCA955X_TYPE_GPIO>;
552 type = <PCA955X_TYPE_GPIO>;
556 type = <PCA955X_TYPE_GPIO>;
560 type = <PCA955X_TYPE_GPIO>;
564 type = <PCA955X_TYPE_GPIO>;
568 type = <PCA955X_TYPE_GPIO>;
572 type = <PCA955X_TYPE_GPIO>;
576 type = <PCA955X_TYPE_GPIO>;
586 /* CP0 VDD & VCS : IR35221 */
587 /* CP0 VDN : IR35221 */
588 /* CP0 VIO : IR38064 */
589 /* CP0 VDDR : PXM1330 */
592 compatible = "infineon,ir35221";
597 compatible = "infineon,ir35221";
606 /* CP0 VDD & VCS : IR35221 */
607 /* CP0 VDN : IR35221 */
608 /* CP0 VIO : IR38064 */
609 /* CP0 VDDR : PXM1330 */
612 compatible = "infineon,ir35221";
617 compatible = "infineon,ir35221";
626 /* pca9548 -> NVMe1 to 8 */
629 compatible = "nxp,pca9548";
630 #address-cells = <1>;
640 /* pca9548 -> NVMe9 to 16 */
643 compatible = "nxp,pca9548";
644 #address-cells = <1>;
655 compatible = "atmel,24c64";
667 * I2C BMC RISER PCA9554
668 * BMC SCL/SDA PCA9554
679 compatible = "nxp,pca9545";
680 #address-cells = <1>;
684 i2c-mux-idle-disconnect;
685 interrupt-controller;
686 #interrupt-cells = <2>;
690 compatible = "nxp,pca9545";
691 #address-cells = <1>;
695 i2c-mux-idle-disconnect;
696 interrupt-controller;
697 #interrupt-cells = <2>;
708 * I2C BMC RISER PCA9554
709 * BMC SCL/SDA PCA9554
720 compatible = "nxp,pca9545";
721 #address-cells = <1>;
725 i2c-mux-idle-disconnect;
726 interrupt-controller;
727 #interrupt-cells = <2>;
731 compatible = "nxp,pca9545";
732 #address-cells = <1>;
736 i2c-mux-idle-disconnect;
737 interrupt-controller;
738 #interrupt-cells = <2>;
747 /* FPGA for power sequence */
753 compatible = "infineon,slb9645tt";
758 compatible = "epson,rx8900";
763 compatible = "ti,tmp275";
768 compatible = "ti,tmp275";
772 /* chip emc1462 use emc1403 driver */
774 compatible = "smsc,emc1403";
791 compatible = "nxp,pca9545";
792 #address-cells = <1>;
796 interrupt-controller;
797 #interrupt-cells = <2>;
800 #address-cells = <1>;
805 compatible = "atmel,24c64";
811 #address-cells = <1>;
816 compatible = "atmel,24c64";
822 #address-cells = <1>;
827 compatible = "atmel,24c64";
833 #address-cells = <1>;
838 compatible = "ti,tmp275";
856 compatible = "nxp,pca9548";
857 #address-cells = <1>;
869 memory-region = <&gfx_memory>;
874 pinctrl-names = "default";
875 pinctrl-0 = <&pinctrl_adc0_default
876 &pinctrl_adc1_default
877 &pinctrl_adc2_default
878 &pinctrl_adc3_default
879 &pinctrl_adc4_default
880 &pinctrl_adc5_default
881 &pinctrl_adc6_default
882 &pinctrl_adc7_default
883 &pinctrl_adc8_default
884 &pinctrl_adc9_default
885 &pinctrl_adc10_default
886 &pinctrl_adc11_default
887 &pinctrl_adc12_default
888 &pinctrl_adc13_default
889 &pinctrl_adc14_default
890 &pinctrl_adc15_default>;
894 aspeed,reset-type = "none";
895 aspeed,external-signal;
896 aspeed,ext-push-pull;
897 aspeed,ext-active-high;
899 pinctrl-names = "default";
900 pinctrl-0 = <&pinctrl_wdtrst1_default>;
917 memory-region = <&video_engine_memory>;
920 #include "ibm-power9-dual.dtsi"