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,mowgli-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)>;
75 gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>;
76 linux,code = <ASPEED_GPIO(F, 1)>;
81 compatible = "gpio-keys-polled";
82 poll-interval = <1000>;
85 label = "fan0-presence";
86 gpios = <&pca9552 9 GPIO_ACTIVE_LOW>;
91 label = "fan1-presence";
92 gpios = <&pca9552 10 GPIO_ACTIVE_LOW>;
97 label = "fan2-presence";
98 gpios = <&pca9552 11 GPIO_ACTIVE_LOW>;
103 label = "fan3-presence";
104 gpios = <&pca9552 12 GPIO_ACTIVE_LOW>;
109 label = "fan4-presence";
110 gpios = <&pca9552 13 GPIO_ACTIVE_LOW>;
116 compatible = "gpio-leds";
119 retain-state-shutdown;
120 default-state = "keep";
121 gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_LOW>;
125 retain-state-shutdown;
126 default-state = "keep";
127 gpios = <&gpio ASPEED_GPIO(AA, 1) GPIO_ACTIVE_LOW>;
131 retain-state-shutdown;
132 default-state = "keep";
133 gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_LOW>;
137 retain-state-shutdown;
138 default-state = "keep";
139 gpios = <&pca9552 0 GPIO_ACTIVE_LOW>;
143 retain-state-shutdown;
144 default-state = "keep";
145 gpios = <&pca9552 1 GPIO_ACTIVE_LOW>;
149 retain-state-shutdown;
150 default-state = "keep";
151 gpios = <&pca9552 2 GPIO_ACTIVE_LOW>;
155 retain-state-shutdown;
156 default-state = "keep";
157 gpios = <&pca9552 3 GPIO_ACTIVE_LOW>;
161 retain-state-shutdown;
162 default-state = "keep";
163 gpios = <&pca9552 4 GPIO_ACTIVE_LOW>;
168 compatible = "fsi-master-gpio", "fsi-master";
169 #address-cells = <2>;
173 clock-gpios = <&gpio ASPEED_GPIO(E, 6) GPIO_ACTIVE_HIGH>;
174 data-gpios = <&gpio ASPEED_GPIO(E, 7) GPIO_ACTIVE_HIGH>;
175 mux-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
176 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
177 trans-gpios = <&gpio ASPEED_GPIO(E, 5) GPIO_ACTIVE_HIGH>;
181 compatible = "iio-hwmon";
182 io-channels = <&adc 0>;
186 compatible = "iio-hwmon";
187 io-channels = <&adc 1>;
191 compatible = "iio-hwmon";
192 io-channels = <&adc 2>;
196 compatible = "iio-hwmon";
197 io-channels = <&adc 3>;
201 compatible = "iio-hwmon";
202 io-channels = <&adc 5>;
206 compatible = "iio-hwmon";
207 io-channels = <&adc 7>;
211 compatible = "iio-hwmon";
212 io-channels = <&adc 9>;
216 compatible = "iio-hwmon";
217 io-channels = <&adc 11>;
221 compatible = "iio-hwmon";
222 io-channels = <&adc 12>;
226 compatible = "iio-hwmon";
227 io-channels = <&adc 13>;
233 pinctrl-names = "default";
234 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
235 &pinctrl_pwm2_default &pinctrl_pwm3_default
236 &pinctrl_pwm4_default>;
240 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
245 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
250 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
255 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
260 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
265 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
270 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
275 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
280 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
285 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
295 spi-max-frequency = <50000000>;
297 #address-cells = < 1 >;
299 compatible = "fixed-partitions";
305 reg = < 0x60000 0x20000 >;
306 label = "u-boot-env";
309 reg = < 0x80000 0x1F80000 >;
318 spi-max-frequency = <50000000>;
320 #address-cells = < 1 >;
322 compatible = "fixed-partitions";
325 label = "alt-u-boot";
328 reg = < 0x60000 0x20000 >;
329 label = "alt-u-boot-env";
332 reg = < 0x80000 0x1F80000 >;
333 label = "alt-obmc-ubi";
341 pinctrl-names = "default";
342 pinctrl-0 = <&pinctrl_spi1_default>;
348 spi-max-frequency = <100000000>;
354 memory-region = <&flash_memory>;
359 /* Rear RS-232 connector */
362 pinctrl-names = "default";
363 pinctrl-0 = <&pinctrl_txd1_default
364 &pinctrl_rxd1_default
365 &pinctrl_nrts1_default
366 &pinctrl_ndtr1_default
367 &pinctrl_ndsr1_default
368 &pinctrl_ncts1_default
369 &pinctrl_ndcd1_default
370 &pinctrl_nri1_default>;
377 pinctrl-names = "default";
378 pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
388 pinctrl-names = "default";
389 pinctrl-0 = <&pinctrl_rmii1_default>;
390 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
391 <&syscon ASPEED_CLK_MAC1RCLK>;
392 clock-names = "MACCLK", "RCLK";
399 pinctrl-names = "default";
400 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
407 compatible = "ti,tmp275";
429 /* PCA9516 (repeater) ->
430 * CLK Buffer 9FGS9092
436 pca9552: pca9552@60 {
437 compatible = "nxp,pca9552";
439 #address-cells = <1>;
446 type = <PCA955X_TYPE_GPIO>;
450 type = <PCA955X_TYPE_GPIO>;
454 type = <PCA955X_TYPE_GPIO>;
458 type = <PCA955X_TYPE_GPIO>;
462 type = <PCA955X_TYPE_GPIO>;
466 type = <PCA955X_TYPE_GPIO>;
470 type = <PCA955X_TYPE_GPIO>;
474 type = <PCA955X_TYPE_GPIO>;
478 type = <PCA955X_TYPE_GPIO>;
482 type = <PCA955X_TYPE_GPIO>;
486 type = <PCA955X_TYPE_GPIO>;
490 type = <PCA955X_TYPE_GPIO>;
494 type = <PCA955X_TYPE_GPIO>;
498 type = <PCA955X_TYPE_GPIO>;
502 type = <PCA955X_TYPE_GPIO>;
506 type = <PCA955X_TYPE_GPIO>;
511 compatible = "ibm,cffps1";
516 compatible = "ibm,cffps1";
524 /* CP0 VDD & VCS : IR35221 */
525 /* CP0 VDN & VIO : IR35221 */
526 /* CP0 VDDR : IR35221 */
529 compatible = "infineon,ir35221";
534 compatible = "infineon,ir35221";
539 compatible = "infineon,ir35221";
561 compatible = "atmel,24c64";
569 /* PCIe G3 x16 slot */
586 compatible = "ti,tmp275";
591 compatible = "ti,tmp275";
611 memory-region = <&gfx_memory>;
616 pinctrl-names = "default";
617 pinctrl-0 = <&pinctrl_adc0_default
618 &pinctrl_adc1_default
619 &pinctrl_adc2_default
620 &pinctrl_adc3_default
621 &pinctrl_adc4_default
622 &pinctrl_adc5_default
623 &pinctrl_adc6_default
624 &pinctrl_adc7_default
625 &pinctrl_adc8_default
626 &pinctrl_adc9_default
627 &pinctrl_adc10_default
628 &pinctrl_adc11_default
629 &pinctrl_adc12_default
630 &pinctrl_adc13_default
631 &pinctrl_adc14_default
632 &pinctrl_adc15_default>;
636 aspeed,reset-type = "none";
637 aspeed,external-signal;
638 aspeed,ext-push-pull;
639 aspeed,ext-active-high;
641 pinctrl-names = "default";
642 pinctrl-0 = <&pinctrl_wdtrst1_default>;
659 memory-region = <&video_engine_memory>;
662 #include "ibm-power9-dual.dtsi"