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,swift-bmc", "aspeed,ast2500";
13 bootargs = "console=ttyS4,115200 earlyprintk";
17 reg = <0x80000000 0x20000000>;
25 flash_memory: region@98000000 {
27 reg = <0x98000000 0x04000000>; /* 64M */
30 gfx_memory: framebuffer {
32 alignment = <0x01000000>;
33 compatible = "shared-dma-pool";
39 compatible = "gpio-keys";
43 gpios = <&gpio ASPEED_GPIO(B, 5) GPIO_ACTIVE_LOW>;
44 linux,code = <ASPEED_GPIO(B, 5)>;
49 gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
50 linux,code = <ASPEED_GPIO(J, 2)>;
54 label = "ps0-presence";
55 gpios = <&gpio ASPEED_GPIO(R, 7) GPIO_ACTIVE_LOW>;
56 linux,code = <ASPEED_GPIO(R, 7)>;
60 label = "ps1-presence";
61 gpios = <&gpio ASPEED_GPIO(N, 0) GPIO_ACTIVE_LOW>;
62 linux,code = <ASPEED_GPIO(N, 0)>;
66 label = "oppanel-presence";
67 gpios = <&gpio ASPEED_GPIO(A, 7) GPIO_ACTIVE_LOW>;
68 linux,code = <ASPEED_GPIO(A, 7)>;
71 opencapi-riser-presence {
72 label = "opencapi-riser-presence";
73 gpios = <&gpio ASPEED_GPIO(I, 0) GPIO_ACTIVE_LOW>;
74 linux,code = <ASPEED_GPIO(I, 0)>;
79 compatible = "iio-hwmon";
80 io-channels = <&adc 12>;
84 compatible = "gpio-keys-polled";
87 poll-interval = <1000>;
90 label = "scm0-presence";
91 gpios = <&pca9552 6 GPIO_ACTIVE_LOW>;
96 label = "scm1-presence";
97 gpios = <&pca9552 7 GPIO_ACTIVE_LOW>;
102 label = "cpu0vrm-presence";
103 gpios = <&pca9552 12 GPIO_ACTIVE_LOW>;
108 label = "cpu1vrm-presence";
109 gpios = <&pca9552 13 GPIO_ACTIVE_LOW>;
114 label = "fan0-presence";
115 gpios = <&pca0 5 GPIO_ACTIVE_LOW>;
120 label = "fan1-presence";
121 gpios = <&pca0 6 GPIO_ACTIVE_LOW>;
126 label = "fan2-presence";
127 gpios = <&pca0 7 GPIO_ACTIVE_LOW>;
132 label = "fan3-presence";
133 gpios = <&pca0 8 GPIO_ACTIVE_LOW>;
138 label = "fanboost-presence";
139 gpios = <&pca0 9 GPIO_ACTIVE_LOW>;
145 compatible = "gpio-leds";
148 retain-state-shutdown;
149 default-state = "keep";
150 gpios = <&pca0 0 GPIO_ACTIVE_LOW>;
154 retain-state-shutdown;
155 default-state = "keep";
156 gpios = <&pca0 1 GPIO_ACTIVE_LOW>;
160 retain-state-shutdown;
161 default-state = "keep";
162 gpios = <&pca0 2 GPIO_ACTIVE_LOW>;
166 retain-state-shutdown;
167 default-state = "keep";
168 gpios = <&pca0 3 GPIO_ACTIVE_LOW>;
172 retain-state-shutdown;
173 default-state = "keep";
174 gpios = <&pca0 4 GPIO_ACTIVE_LOW>;
178 retain-state-shutdown;
179 default-state = "keep";
180 gpios = <&pca1 2 GPIO_ACTIVE_LOW>;
184 retain-state-shutdown;
185 default-state = "keep";
186 gpios = <&pca1 3 GPIO_ACTIVE_LOW>;
190 retain-state-shutdown;
191 default-state = "keep";
192 gpios = <&pca1 0 GPIO_ACTIVE_LOW>;
196 gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>;
200 gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_LOW>;
205 compatible = "fsi-master-gpio", "fsi-master";
206 #address-cells = <2>;
210 clock-gpios = <&gpio ASPEED_GPIO(P, 1) GPIO_ACTIVE_HIGH>;
211 data-gpios = <&gpio ASPEED_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
212 mux-gpios = <&gpio ASPEED_GPIO(P, 4) GPIO_ACTIVE_HIGH>;
213 enable-gpios = <&gpio ASPEED_GPIO(P, 0) GPIO_ACTIVE_HIGH>;
214 trans-gpios = <&gpio ASPEED_GPIO(P, 3) GPIO_ACTIVE_HIGH>;
218 compatible = "iio-hwmon";
219 io-channels = <&dps 0>;
231 spi-max-frequency = <100000000>;
233 #address-cells = < 1 >;
235 compatible = "fixed-partitions";
241 reg = < 0x60000 0x20000 >;
242 label = "u-boot-env";
245 reg = < 0x80000 0x7F80000>;
255 spi-max-frequency = <100000000>;
257 #address-cells = < 1 >;
259 compatible = "fixed-partitions";
262 label = "alt-u-boot";
265 reg = < 0x60000 0x20000 >;
266 label = "alt-u-boot-env";
269 reg = < 0x80000 0x7F80000>;
270 label = "alt-obmc-ubi";
278 pinctrl-names = "default";
279 pinctrl-0 = <&pinctrl_spi1_default>;
285 spi-max-frequency = <100000000>;
290 /* Rear RS-232 connector */
292 pinctrl-names = "default";
293 pinctrl-0 = <&pinctrl_txd1_default
294 &pinctrl_rxd1_default
295 &pinctrl_nrts1_default
296 &pinctrl_ndtr1_default
297 &pinctrl_ndsr1_default
298 &pinctrl_ncts1_default
299 &pinctrl_ndcd1_default
300 &pinctrl_nri1_default>;
306 pinctrl-names = "default";
307 pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
316 memory-region = <&flash_memory>;
322 pinctrl-names = "default";
323 pinctrl-0 = <&pinctrl_rmii1_default>;
325 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
326 <&syscon ASPEED_CLK_MAC1RCLK>;
327 clock-names = "MACCLK", "RCLK";
343 compatible = "maxim,max31785a";
345 #address-cells = <1>;
349 compatible = "pmbus-fan";
352 maxim,fan-rotor-input = "tach";
353 maxim,fan-pwm-freq = <25000>;
354 maxim,fan-no-watchdog;
355 maxim,fan-no-fault-ramp;
356 maxim,fan-ramp = <2>;
357 maxim,fan-fault-pin-mon;
361 compatible = "pmbus-fan";
364 maxim,fan-rotor-input = "tach";
365 maxim,fan-pwm-freq = <25000>;
366 maxim,fan-no-watchdog;
367 maxim,fan-no-fault-ramp;
368 maxim,fan-ramp = <2>;
369 maxim,fan-fault-pin-mon;
373 compatible = "pmbus-fan";
376 maxim,fan-rotor-input = "tach";
377 maxim,fan-pwm-freq = <25000>;
378 maxim,fan-no-watchdog;
379 maxim,fan-no-fault-ramp;
380 maxim,fan-ramp = <2>;
381 maxim,fan-fault-pin-mon;
385 compatible = "pmbus-fan";
388 maxim,fan-rotor-input = "tach";
389 maxim,fan-pwm-freq = <25000>;
390 maxim,fan-no-watchdog;
391 maxim,fan-no-fault-ramp;
392 maxim,fan-ramp = <2>;
393 maxim,fan-fault-pin-mon;
397 compatible = "pmbus-fan";
400 maxim,fan-rotor-input = "tach";
401 maxim,fan-pwm-freq = <25000>;
402 maxim,fan-no-watchdog;
403 maxim,fan-no-fault-ramp;
404 maxim,fan-ramp = <2>;
405 maxim,fan-fault-pin-mon;
410 compatible = "nxp,pca9552";
412 #address-cells = <1>;
420 type = <PCA955X_TYPE_GPIO>;
425 type = <PCA955X_TYPE_GPIO>;
430 type = <PCA955X_TYPE_GPIO>;
435 type = <PCA955X_TYPE_GPIO>;
440 type = <PCA955X_TYPE_GPIO>;
445 type = <PCA955X_TYPE_GPIO>;
450 type = <PCA955X_TYPE_GPIO>;
455 type = <PCA955X_TYPE_GPIO>;
460 type = <PCA955X_TYPE_GPIO>;
465 type = <PCA955X_TYPE_GPIO>;
470 type = <PCA955X_TYPE_GPIO>;
475 type = <PCA955X_TYPE_GPIO>;
480 type = <PCA955X_TYPE_GPIO>;
485 type = <PCA955X_TYPE_GPIO>;
490 type = <PCA955X_TYPE_GPIO>;
495 type = <PCA955X_TYPE_GPIO>;
500 compatible = "ibm,cffps2";
505 compatible = "atmel,24c64";
510 compatible = "ibm,cffps2";
515 compatible = "atmel,24c64";
524 compatible = "infineon,dps310";
526 #io-channel-cells = <0>;
530 compatible = "ti,tmp275";
535 compatible = "si,si7021a20";
540 compatible = "atmel,24c64";
545 compatible = "nxp,pca9551";
547 #address-cells = <1>;
555 type = <PCA955X_TYPE_GPIO>;
560 type = <PCA955X_TYPE_GPIO>;
565 type = <PCA955X_TYPE_GPIO>;
570 type = <PCA955X_TYPE_GPIO>;
575 type = <PCA955X_TYPE_GPIO>;
580 type = <PCA955X_TYPE_GPIO>;
585 type = <PCA955X_TYPE_GPIO>;
590 type = <PCA955X_TYPE_GPIO>;
598 pca9552: pca9552@60 {
599 compatible = "nxp,pca9552";
601 #address-cells = <1>;
606 gpio-line-names = "PS_SMBUS_RESET_N", "APSS_RESET_N",
607 "GPU0_TH_OVERT_N_BUFF", "GPU1_TH_OVERT_N_BUFF",
608 "GPU2_TH_OVERT_N_BUFF", "GPU3_TH_OVERT_N_BUFF",
609 "P9_SCM0_PRES", "P9_SCM1_PRES",
610 "GPU0_PWR_GOOD_BUFF", "GPU1_PWR_GOOD_BUFF",
611 "GPU2_PWR_GOOD_BUFF", "GPU3_PWR_GOOD_BUFF",
612 "PRESENT_VRM_CP0_N", "PRESENT_VRM_CP1_N",
613 "12V_BREAKER_FLT_N", "THROTTLE_UNLATCHED_N";
617 type = <PCA955X_TYPE_GPIO>;
622 type = <PCA955X_TYPE_GPIO>;
627 type = <PCA955X_TYPE_GPIO>;
632 type = <PCA955X_TYPE_GPIO>;
637 type = <PCA955X_TYPE_GPIO>;
642 type = <PCA955X_TYPE_GPIO>;
647 type = <PCA955X_TYPE_GPIO>;
652 type = <PCA955X_TYPE_GPIO>;
657 type = <PCA955X_TYPE_GPIO>;
662 type = <PCA955X_TYPE_GPIO>;
667 type = <PCA955X_TYPE_GPIO>;
672 type = <PCA955X_TYPE_GPIO>;
677 type = <PCA955X_TYPE_GPIO>;
682 type = <PCA955X_TYPE_GPIO>;
687 type = <PCA955X_TYPE_GPIO>;
692 type = <PCA955X_TYPE_GPIO>;
697 compatible = "epson,rx8900";
702 compatible = "atmel,24c64";
707 compatible = "ti,ucd90160";
716 compatible = "atmel,24c64";
721 compatible = "ti,tmp423";
726 compatible = "infineon,ir35221";
731 compatible = "infineon,ir35221";
736 compatible = "nxp,pca9539";
738 #address-cells = <1>;
813 compatible = "atmel,24c64";
818 compatible = "ti,tmp423";
823 compatible = "infineon,ir35221";
828 compatible = "infineon,ir35221";
833 compatible = "nxp,pca9539";
835 #address-cells = <1>;
920 compatible = "ti,tmp275";
925 compatible = "ti,tmp275";
940 memory-region = <&gfx_memory>;
944 aspeed,external-nodes = <&gfx &lhc>;
948 aspeed,reset-type = "none";
949 aspeed,external-signal;
950 aspeed,ext-push-pull;
951 aspeed,ext-active-high;
953 pinctrl-names = "default";
954 pinctrl-0 = <&pinctrl_wdtrst1_default>;
976 pinctrl-names = "default";
977 pinctrl-0 = <&pinctrl_sd2_default>;
980 #include "ibm-power9-dual.dtsi"