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";
85 poll-interval = <1000>;
88 label = "scm0-presence";
89 gpios = <&pca9552 6 GPIO_ACTIVE_LOW>;
94 label = "scm1-presence";
95 gpios = <&pca9552 7 GPIO_ACTIVE_LOW>;
100 label = "cpu0vrm-presence";
101 gpios = <&pca9552 12 GPIO_ACTIVE_LOW>;
106 label = "cpu1vrm-presence";
107 gpios = <&pca9552 13 GPIO_ACTIVE_LOW>;
112 label = "fan0-presence";
113 gpios = <&pca0 5 GPIO_ACTIVE_LOW>;
118 label = "fan1-presence";
119 gpios = <&pca0 6 GPIO_ACTIVE_LOW>;
124 label = "fan2-presence";
125 gpios = <&pca0 7 GPIO_ACTIVE_LOW>;
130 label = "fan3-presence";
131 gpios = <&pca0 8 GPIO_ACTIVE_LOW>;
136 label = "fanboost-presence";
137 gpios = <&pca0 9 GPIO_ACTIVE_LOW>;
143 compatible = "gpio-leds";
146 retain-state-shutdown;
147 default-state = "keep";
148 gpios = <&pca0 0 GPIO_ACTIVE_LOW>;
152 retain-state-shutdown;
153 default-state = "keep";
154 gpios = <&pca0 1 GPIO_ACTIVE_LOW>;
158 retain-state-shutdown;
159 default-state = "keep";
160 gpios = <&pca0 2 GPIO_ACTIVE_LOW>;
164 retain-state-shutdown;
165 default-state = "keep";
166 gpios = <&pca0 3 GPIO_ACTIVE_LOW>;
170 retain-state-shutdown;
171 default-state = "keep";
172 gpios = <&pca0 4 GPIO_ACTIVE_LOW>;
176 retain-state-shutdown;
177 default-state = "keep";
178 gpios = <&pca1 2 GPIO_ACTIVE_LOW>;
182 retain-state-shutdown;
183 default-state = "keep";
184 gpios = <&pca1 3 GPIO_ACTIVE_LOW>;
188 retain-state-shutdown;
189 default-state = "keep";
190 gpios = <&pca1 0 GPIO_ACTIVE_LOW>;
194 gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>;
198 gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_LOW>;
203 compatible = "fsi-master-gpio", "fsi-master";
204 #address-cells = <2>;
208 clock-gpios = <&gpio ASPEED_GPIO(P, 1) GPIO_ACTIVE_HIGH>;
209 data-gpios = <&gpio ASPEED_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
210 mux-gpios = <&gpio ASPEED_GPIO(P, 4) GPIO_ACTIVE_HIGH>;
211 enable-gpios = <&gpio ASPEED_GPIO(P, 0) GPIO_ACTIVE_HIGH>;
212 trans-gpios = <&gpio ASPEED_GPIO(P, 3) GPIO_ACTIVE_HIGH>;
216 compatible = "iio-hwmon";
217 io-channels = <&dps 0>;
229 spi-max-frequency = <100000000>;
231 #address-cells = < 1 >;
233 compatible = "fixed-partitions";
239 reg = < 0x60000 0x20000 >;
240 label = "u-boot-env";
243 reg = < 0x80000 0x7F80000>;
253 spi-max-frequency = <100000000>;
255 #address-cells = < 1 >;
257 compatible = "fixed-partitions";
260 label = "alt-u-boot";
263 reg = < 0x60000 0x20000 >;
264 label = "alt-u-boot-env";
267 reg = < 0x80000 0x7F80000>;
268 label = "alt-obmc-ubi";
276 pinctrl-names = "default";
277 pinctrl-0 = <&pinctrl_spi1_default>;
283 spi-max-frequency = <100000000>;
288 /* Rear RS-232 connector */
290 pinctrl-names = "default";
291 pinctrl-0 = <&pinctrl_txd1_default
292 &pinctrl_rxd1_default
293 &pinctrl_nrts1_default
294 &pinctrl_ndtr1_default
295 &pinctrl_ndsr1_default
296 &pinctrl_ncts1_default
297 &pinctrl_ndcd1_default
298 &pinctrl_nri1_default>;
304 pinctrl-names = "default";
305 pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
314 memory-region = <&flash_memory>;
320 pinctrl-names = "default";
321 pinctrl-0 = <&pinctrl_rmii1_default>;
323 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
324 <&syscon ASPEED_CLK_MAC1RCLK>;
325 clock-names = "MACCLK", "RCLK";
341 compatible = "maxim,max31785a";
343 #address-cells = <1>;
347 compatible = "pmbus-fan";
350 maxim,fan-rotor-input = "tach";
351 maxim,fan-pwm-freq = <25000>;
352 maxim,fan-no-watchdog;
353 maxim,fan-no-fault-ramp;
354 maxim,fan-ramp = <2>;
355 maxim,fan-fault-pin-mon;
359 compatible = "pmbus-fan";
362 maxim,fan-rotor-input = "tach";
363 maxim,fan-pwm-freq = <25000>;
364 maxim,fan-no-watchdog;
365 maxim,fan-no-fault-ramp;
366 maxim,fan-ramp = <2>;
367 maxim,fan-fault-pin-mon;
371 compatible = "pmbus-fan";
374 maxim,fan-rotor-input = "tach";
375 maxim,fan-pwm-freq = <25000>;
376 maxim,fan-no-watchdog;
377 maxim,fan-no-fault-ramp;
378 maxim,fan-ramp = <2>;
379 maxim,fan-fault-pin-mon;
383 compatible = "pmbus-fan";
386 maxim,fan-rotor-input = "tach";
387 maxim,fan-pwm-freq = <25000>;
388 maxim,fan-no-watchdog;
389 maxim,fan-no-fault-ramp;
390 maxim,fan-ramp = <2>;
391 maxim,fan-fault-pin-mon;
395 compatible = "pmbus-fan";
398 maxim,fan-rotor-input = "tach";
399 maxim,fan-pwm-freq = <25000>;
400 maxim,fan-no-watchdog;
401 maxim,fan-no-fault-ramp;
402 maxim,fan-ramp = <2>;
403 maxim,fan-fault-pin-mon;
408 compatible = "nxp,pca9552";
410 #address-cells = <1>;
418 type = <PCA955X_TYPE_GPIO>;
423 type = <PCA955X_TYPE_GPIO>;
428 type = <PCA955X_TYPE_GPIO>;
433 type = <PCA955X_TYPE_GPIO>;
438 type = <PCA955X_TYPE_GPIO>;
443 type = <PCA955X_TYPE_GPIO>;
448 type = <PCA955X_TYPE_GPIO>;
453 type = <PCA955X_TYPE_GPIO>;
458 type = <PCA955X_TYPE_GPIO>;
463 type = <PCA955X_TYPE_GPIO>;
468 type = <PCA955X_TYPE_GPIO>;
473 type = <PCA955X_TYPE_GPIO>;
478 type = <PCA955X_TYPE_GPIO>;
483 type = <PCA955X_TYPE_GPIO>;
488 type = <PCA955X_TYPE_GPIO>;
493 type = <PCA955X_TYPE_GPIO>;
498 compatible = "ibm,cffps2";
503 compatible = "atmel,24c64";
508 compatible = "ibm,cffps2";
513 compatible = "atmel,24c64";
522 compatible = "infineon,dps310";
524 #io-channel-cells = <0>;
528 compatible = "ti,tmp275";
533 compatible = "si,si7021a20";
538 compatible = "atmel,24c64";
543 compatible = "nxp,pca9551";
545 #address-cells = <1>;
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 type = <PCA955X_TYPE_GPIO>;
583 type = <PCA955X_TYPE_GPIO>;
588 type = <PCA955X_TYPE_GPIO>;
596 pca9552: pca9552@60 {
597 compatible = "nxp,pca9552";
599 #address-cells = <1>;
604 gpio-line-names = "PS_SMBUS_RESET_N", "APSS_RESET_N",
605 "GPU0_TH_OVERT_N_BUFF", "GPU1_TH_OVERT_N_BUFF",
606 "GPU2_TH_OVERT_N_BUFF", "GPU3_TH_OVERT_N_BUFF",
607 "P9_SCM0_PRES", "P9_SCM1_PRES",
608 "GPU0_PWR_GOOD_BUFF", "GPU1_PWR_GOOD_BUFF",
609 "GPU2_PWR_GOOD_BUFF", "GPU3_PWR_GOOD_BUFF",
610 "PRESENT_VRM_CP0_N", "PRESENT_VRM_CP1_N",
611 "12V_BREAKER_FLT_N", "THROTTLE_UNLATCHED_N";
615 type = <PCA955X_TYPE_GPIO>;
620 type = <PCA955X_TYPE_GPIO>;
625 type = <PCA955X_TYPE_GPIO>;
630 type = <PCA955X_TYPE_GPIO>;
635 type = <PCA955X_TYPE_GPIO>;
640 type = <PCA955X_TYPE_GPIO>;
645 type = <PCA955X_TYPE_GPIO>;
650 type = <PCA955X_TYPE_GPIO>;
655 type = <PCA955X_TYPE_GPIO>;
660 type = <PCA955X_TYPE_GPIO>;
665 type = <PCA955X_TYPE_GPIO>;
670 type = <PCA955X_TYPE_GPIO>;
675 type = <PCA955X_TYPE_GPIO>;
680 type = <PCA955X_TYPE_GPIO>;
685 type = <PCA955X_TYPE_GPIO>;
690 type = <PCA955X_TYPE_GPIO>;
695 compatible = "epson,rx8900";
700 compatible = "atmel,24c64";
705 compatible = "ti,ucd90160";
714 compatible = "atmel,24c64";
719 compatible = "ti,tmp423";
724 compatible = "infineon,ir35221";
729 compatible = "infineon,ir35221";
734 compatible = "nxp,pca9539";
736 #address-cells = <1>;
811 compatible = "atmel,24c64";
816 compatible = "ti,tmp423";
821 compatible = "infineon,ir35221";
826 compatible = "infineon,ir35221";
831 compatible = "nxp,pca9539";
833 #address-cells = <1>;
918 compatible = "ti,tmp275";
923 compatible = "ti,tmp275";
938 memory-region = <&gfx_memory>;
942 aspeed,external-nodes = <&gfx &lhc>;
946 aspeed,reset-type = "none";
947 aspeed,external-signal;
948 aspeed,ext-push-pull;
949 aspeed,ext-active-high;
951 pinctrl-names = "default";
952 pinctrl-0 = <&pinctrl_wdtrst1_default>;
974 pinctrl-names = "default";
975 pinctrl-0 = <&pinctrl_sd2_default>;
978 #include "ibm-power9-dual.dtsi"