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>
6 #include <dt-bindings/interrupt-controller/irq.h>
9 model = "FP5280G2 BMC";
10 compatible = "inspur,fp5280g2-bmc", "aspeed,ast2500";
14 bootargs = "console=ttyS4,115200 earlycon";
18 reg = <0x80000000 0x20000000>;
26 vga_memory: framebuffer@9f000000 {
28 reg = <0x9f000000 0x01000000>; /* 16M */
31 flash_memory: region@98000000 {
33 reg = <0x98000000 0x04000000>; /* 64M */
36 coldfire_memory: codefire_memory@9ef00000 {
37 reg = <0x9ef00000 0x00100000>;
41 gfx_memory: framebuffer {
43 alignment = <0x01000000>;
44 compatible = "shared-dma-pool";
48 video_engine_memory: jpegbuffer {
49 size = <0x02000000>; /* 32M */
50 alignment = <0x01000000>;
51 compatible = "shared-dma-pool";
57 compatible = "aspeed,ast2500-cf-fsi-master", "fsi-master";
62 memory-region = <&coldfire_memory>;
63 aspeed,sram = <&sram>;
64 aspeed,cvic = <&cvic>;
66 clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
67 data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>;
68 mux-gpios = <&gpio ASPEED_GPIO(I, 2) GPIO_ACTIVE_HIGH>;
69 enable-gpios = <&gpio ASPEED_GPIO(I, 3) GPIO_ACTIVE_HIGH>;
70 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
74 compatible = "gpio-keys";
78 gpios = <&gpio ASPEED_GPIO(B, 3) GPIO_ACTIVE_LOW>;
79 linux,code = <ASPEED_GPIO(B, 3)>;
83 label = "ps0-presence";
84 gpios = <&gpio ASPEED_GPIO(F, 0) GPIO_ACTIVE_LOW>;
85 linux,code = <ASPEED_GPIO(F, 0)>;
89 label = "ps1-presence";
90 gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>;
91 linux,code = <ASPEED_GPIO(F, 1)>;
97 compatible = "gpio-keys-polled";
98 poll-interval = <1000>;
100 event-fan0-presence {
101 label = "fan0-presence";
102 gpios = <&pca1 0 GPIO_ACTIVE_LOW>;
106 event-fan1-presence {
107 label = "fan1-presence";
108 gpios = <&pca1 1 GPIO_ACTIVE_LOW>;
112 event-fan2-presence {
113 label = "fan2-presence";
114 gpios = <&pca1 2 GPIO_ACTIVE_LOW>;
118 event-fan3-presence {
119 label = "fan3-presence";
120 gpios = <&pca1 3 GPIO_ACTIVE_LOW>;
124 event-fan4-presence {
125 label = "fan4-presence";
126 gpios = <&pca1 4 GPIO_ACTIVE_LOW>;
130 event-fan5-presence {
131 label = "fan5-presence";
132 gpios = <&pca1 5 GPIO_ACTIVE_LOW>;
136 event-fan6-presence {
137 label = "fan6-presence";
138 gpios = <&pca1 6 GPIO_ACTIVE_LOW>;
142 event-fan7-presence {
143 label = "fan7-presence";
144 gpios = <&pca1 7 GPIO_ACTIVE_LOW>;
150 compatible = "gpio-leds";
154 /* TODO: dummy gpio */
155 gpios = <&gpio ASPEED_GPIO(R, 1) GPIO_ACTIVE_LOW>;
160 gpios = <&gpio ASPEED_GPIO(B, 7) GPIO_ACTIVE_LOW>;
164 label = "front-memory";
165 gpios = <&gpio ASPEED_GPIO(F, 4) GPIO_ACTIVE_LOW>;
169 label = "front-syshot";
170 gpios = <&gpio ASPEED_GPIO(I, 1) GPIO_ACTIVE_LOW>;
174 label = "front-syshealth";
175 gpios = <&gpio ASPEED_GPIO(I, 0) GPIO_ACTIVE_LOW>;
180 gpios = <&gpio ASPEED_GPIO(H, 4) GPIO_ACTIVE_LOW>;
185 gpios = <&gpio ASPEED_GPIO(B, 2) GPIO_ACTIVE_LOW>;
190 gpios = <&gpio ASPEED_GPIO(Z, 7) GPIO_ACTIVE_LOW>;
195 compatible = "iio-hwmon";
196 io-channels = <&adc 15>;
200 compatible = "iio-hwmon";
201 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>,
202 <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>,
203 <&adc 10>, <&adc 11>, <&adc 12>, <&adc 13>, <&adc 14>;
210 /*A0-A7*/ "","","","","","","","",
211 /*B0-B7*/ "","","front-psu","checkstop","cfam-reset","","","init-ok",
212 /*C0-C7*/ "","","","","","","","",
213 /*D0-D7*/ "","","","","","","","",
214 /*E0-E7*/ "","","","","","","","",
215 /*F0-F7*/ "ps0-presence","ps1-presence","","","front-memory","","","",
216 /*G0-G7*/ "","","","","","","","",
217 /*H0-H7*/ "","","","","front-fan","","","",
218 /*I0-I7*/ "front-syshealth","front-syshot","mux-gpios","enable-gpios","","","","",
219 /*J0-J7*/ "","","","","","","","",
220 /*K0-K7*/ "","","","","","","","",
221 /*L0-L7*/ "","","","","","","","",
222 /*M0-M7*/ "","","","","","","","",
223 /*N0-N7*/ "","","","","","","","",
224 /*O0-O7*/ "","","","","","","","",
225 /*P0-P7*/ "","","","","","","","",
226 /*Q0-Q7*/ "","","","","","","","",
227 /*R0-R7*/ "","power","trans-gpios","","","","","",
228 /*S0-S7*/ "","","","","","","","",
229 /*T0-T7*/ "","","","","","","","",
230 /*U0-U7*/ "","","","","","","","",
231 /*V0-V7*/ "","","","","","","","",
232 /*W0-W7*/ "","","","","","","","",
233 /*X0-X7*/ "","","","","","","","",
234 /*Y0-Y7*/ "","","","","","","","",
235 /*Z0-Z7*/ "","","","","","","","identify",
236 /*AA0-AA7*/ "clock-gpios","","data-gpios","","","","","",
237 /*AB0-AB7*/ "","","","","","","","",
238 /*AC0-AC7*/ "","","","","","","","";
248 spi-max-frequency = <50000000>;
249 #include "openbmc-flash-layout-64.dtsi"
255 pinctrl-names = "default";
256 pinctrl-0 = <&pinctrl_spi1_default>;
262 spi-max-frequency = <100000000>;
267 /* Rear RS-232 connector */
269 pinctrl-names = "default";
270 pinctrl-0 = <&pinctrl_txd1_default
271 &pinctrl_rxd1_default
272 &pinctrl_nrts1_default
273 &pinctrl_ndtr1_default
274 &pinctrl_ndsr1_default
275 &pinctrl_ncts1_default
276 &pinctrl_ndcd1_default
277 &pinctrl_nri1_default>;
283 pinctrl-names = "default";
284 pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
290 pinctrl-names = "default";
291 pinctrl-0 = <&pinctrl_txd3_default &pinctrl_rxd3_default>;
300 memory-region = <&flash_memory>;
306 pinctrl-names = "default";
307 pinctrl-0 = <&pinctrl_rmii1_default>;
308 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
309 <&syscon ASPEED_CLK_MAC1RCLK>;
310 clock-names = "MACCLK", "RCLK";
316 pinctrl-names = "default";
317 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
329 compatible = "atmel,24c256";
340 compatible = "ti,tmp112";
346 compatible = "ti,tmp112";
352 compatible = "nxp,pca9546";
354 #address-cells = <1>;
358 #address-cells = <1>;
363 compatible = "ti,tmp112";
371 #address-cells = <1>;
376 compatible = "ti,tmp112";
383 #address-cells = <1>;
388 compatible = "ti,tmp112";
395 #address-cells = <1>;
400 compatible = "microchip,emc1413";
417 compatible = "dallas,ds3232";
436 compatible = "nxp,pca9546";
438 #address-cells = <1>;
442 #address-cells = <1>;
447 compatible = "adi,adm1278";
452 compatible = "adi,adm1278";
457 compatible = "adi,adm1278";
462 compatible = "adi,adm1278";
477 compatible = "nxp,pca9555";
479 #address-cells = <1>;
487 type = <PCA955X_TYPE_GPIO>;
492 type = <PCA955X_TYPE_GPIO>;
497 type = <PCA955X_TYPE_GPIO>;
502 type = <PCA955X_TYPE_GPIO>;
507 type = <PCA955X_TYPE_GPIO>;
512 type = <PCA955X_TYPE_GPIO>;
517 type = <PCA955X_TYPE_GPIO>;
522 type = <PCA955X_TYPE_GPIO>;
528 compatible = "nxp,pca9555";
530 #address-cells = <1>;
538 type = <PCA955X_TYPE_GPIO>;
543 type = <PCA955X_TYPE_GPIO>;
548 type = <PCA955X_TYPE_GPIO>;
553 type = <PCA955X_TYPE_GPIO>;
558 type = <PCA955X_TYPE_GPIO>;
563 type = <PCA955X_TYPE_GPIO>;
568 type = <PCA955X_TYPE_GPIO>;
573 type = <PCA955X_TYPE_GPIO>;
578 compatible = "nxp,pca9555";
580 #address-cells = <1>;
588 type = <PCA955X_TYPE_GPIO>;
593 type = <PCA955X_TYPE_GPIO>;
598 type = <PCA955X_TYPE_GPIO>;
603 type = <PCA955X_TYPE_GPIO>;
608 type = <PCA955X_TYPE_GPIO>;
613 type = <PCA955X_TYPE_GPIO>;
618 type = <PCA955X_TYPE_GPIO>;
623 type = <PCA955X_TYPE_GPIO>;
628 compatible = "nxp,pca9555";
630 #address-cells = <1>;
638 type = <PCA955X_TYPE_GPIO>;
643 type = <PCA955X_TYPE_GPIO>;
648 type = <PCA955X_TYPE_GPIO>;
653 type = <PCA955X_TYPE_GPIO>;
658 type = <PCA955X_TYPE_GPIO>;
663 type = <PCA955X_TYPE_GPIO>;
668 type = <PCA955X_TYPE_GPIO>;
673 type = <PCA955X_TYPE_GPIO>;
678 compatible = "nxp,pca9555";
680 #address-cells = <1>;
688 type = <PCA955X_TYPE_GPIO>;
693 type = <PCA955X_TYPE_GPIO>;
698 type = <PCA955X_TYPE_GPIO>;
703 type = <PCA955X_TYPE_GPIO>;
708 type = <PCA955X_TYPE_GPIO>;
713 type = <PCA955X_TYPE_GPIO>;
718 type = <PCA955X_TYPE_GPIO>;
723 type = <PCA955X_TYPE_GPIO>;
728 compatible = "nxp,pca9555";
730 #address-cells = <1>;
738 type = <PCA955X_TYPE_GPIO>;
743 type = <PCA955X_TYPE_GPIO>;
748 type = <PCA955X_TYPE_GPIO>;
753 type = <PCA955X_TYPE_GPIO>;
758 type = <PCA955X_TYPE_GPIO>;
763 type = <PCA955X_TYPE_GPIO>;
768 type = <PCA955X_TYPE_GPIO>;
773 type = <PCA955X_TYPE_GPIO>;
793 compatible = "inspur,ipsps1";
798 compatible = "inspur,ipsps1";
814 memory-region = <&gfx_memory>;
818 aspeed,external-nodes = <&gfx &lhc>;
822 aspeed,reset-type = "none";
823 aspeed,external-signal;
824 aspeed,ext-push-pull;
825 aspeed,ext-active-high;
827 pinctrl-names = "default";
828 pinctrl-0 = <&pinctrl_wdtrst1_default>;
838 pinctrl-names = "default";
839 pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default
840 &pinctrl_adc2_default &pinctrl_adc3_default &pinctrl_adc4_default
841 &pinctrl_adc5_default &pinctrl_adc6_default &pinctrl_adc7_default
842 &pinctrl_adc8_default &pinctrl_adc9_default &pinctrl_adc10_default
843 &pinctrl_adc11_default &pinctrl_adc12_default &pinctrl_adc13_default
844 &pinctrl_adc14_default &pinctrl_adc15_default>;
853 memory-region = <&video_engine_memory>;
858 pinctrl-names = "default";
859 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
860 &pinctrl_pwm2_default &pinctrl_pwm3_default
861 &pinctrl_pwm4_default &pinctrl_pwm5_default
862 &pinctrl_pwm6_default &pinctrl_pwm7_default>;
866 aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>;
871 aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>;
876 aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>;
881 aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>;
886 aspeed,fan-tach-ch = /bits/ 8 <0x08 0x09>;
891 aspeed,fan-tach-ch = /bits/ 8 <0x0a 0x0b>;
896 aspeed,fan-tach-ch = /bits/ 8 <0x0c 0x0d>;
901 aspeed,fan-tach-ch = /bits/ 8 <0x0e 0x0f>;
908 aspeed,lpc-io-reg = <0xca2>;
909 aspeed,lpc-interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
912 #include "ibm-power9-dual.dtsi"