0001 // SPDX-License-Identifier: GPL-2.0+
0002 /dts-v1/;
0003 #include "aspeed-g5.dtsi"
0004 #include <dt-bindings/gpio/aspeed-gpio.h>
0005 #include <dt-bindings/leds/leds-pca955x.h>
0006
0007 / {
0008 model = "Mowgli BMC";
0009 compatible = "ibm,mowgli-bmc", "aspeed,ast2500";
0010
0011
0012 chosen {
0013 stdout-path = &uart5;
0014 bootargs = "console=ttyS4,115200 earlycon";
0015 };
0016
0017 memory@80000000 {
0018 reg = <0x80000000 0x20000000>;
0019 };
0020
0021 reserved-memory {
0022 #address-cells = <1>;
0023 #size-cells = <1>;
0024 ranges;
0025
0026 flash_memory: region@98000000 {
0027 no-map;
0028 reg = <0x98000000 0x04000000>; /* 64M */
0029 };
0030
0031 gfx_memory: framebuffer {
0032 size = <0x01000000>;
0033 alignment = <0x01000000>;
0034 compatible = "shared-dma-pool";
0035 reusable;
0036 };
0037
0038 video_engine_memory: jpegbuffer {
0039 size = <0x02000000>;
0040 alignment = <0x01000000>;
0041 compatible = "shared-dma-pool";
0042 reusable;
0043 };
0044 };
0045
0046 gpio-keys {
0047 compatible = "gpio-keys";
0048
0049 event-air-water {
0050 label = "air-water";
0051 gpios = <&gpio ASPEED_GPIO(F, 6) GPIO_ACTIVE_LOW>;
0052 linux,code = <ASPEED_GPIO(F, 6)>;
0053 };
0054
0055 event-checkstop {
0056 label = "checkstop";
0057 gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
0058 linux,code = <ASPEED_GPIO(J, 2)>;
0059 };
0060
0061 event-ps0-presence {
0062 label = "ps0-presence";
0063 gpios = <&gpio ASPEED_GPIO(Z, 2) GPIO_ACTIVE_LOW>;
0064 linux,code = <ASPEED_GPIO(Z, 2)>;
0065 };
0066
0067 event-ps1-presence {
0068 label = "ps1-presence";
0069 gpios = <&gpio ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
0070 linux,code = <ASPEED_GPIO(Z, 0)>;
0071 };
0072
0073 button-id {
0074 label = "id-button";
0075 gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>;
0076 linux,code = <ASPEED_GPIO(F, 1)>;
0077 };
0078 };
0079
0080 gpio-keys-polled {
0081 compatible = "gpio-keys-polled";
0082 poll-interval = <1000>;
0083
0084 event-fan0-presence {
0085 label = "fan0-presence";
0086 gpios = <&pca9552 9 GPIO_ACTIVE_LOW>;
0087 linux,code = <9>;
0088 };
0089
0090 event-fan1-presence {
0091 label = "fan1-presence";
0092 gpios = <&pca9552 10 GPIO_ACTIVE_LOW>;
0093 linux,code = <10>;
0094 };
0095
0096 event-fan2-presence {
0097 label = "fan2-presence";
0098 gpios = <&pca9552 11 GPIO_ACTIVE_LOW>;
0099 linux,code = <11>;
0100 };
0101
0102 event-fan3-presence {
0103 label = "fan3-presence";
0104 gpios = <&pca9552 12 GPIO_ACTIVE_LOW>;
0105 linux,code = <12>;
0106 };
0107
0108 event-fan4-presence {
0109 label = "fan4-presence";
0110 gpios = <&pca9552 13 GPIO_ACTIVE_LOW>;
0111 linux,code = <13>;
0112 };
0113 };
0114
0115 leds {
0116 compatible = "gpio-leds";
0117
0118 front-fault {
0119 retain-state-shutdown;
0120 default-state = "keep";
0121 gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_LOW>;
0122 };
0123
0124 power-button {
0125 retain-state-shutdown;
0126 default-state = "keep";
0127 gpios = <&gpio ASPEED_GPIO(AA, 1) GPIO_ACTIVE_LOW>;
0128 };
0129
0130 front-id {
0131 retain-state-shutdown;
0132 default-state = "keep";
0133 gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_LOW>;
0134 };
0135
0136 fan0 {
0137 retain-state-shutdown;
0138 default-state = "keep";
0139 gpios = <&pca9552 0 GPIO_ACTIVE_LOW>;
0140 };
0141
0142 fan1 {
0143 retain-state-shutdown;
0144 default-state = "keep";
0145 gpios = <&pca9552 1 GPIO_ACTIVE_LOW>;
0146 };
0147
0148 fan2 {
0149 retain-state-shutdown;
0150 default-state = "keep";
0151 gpios = <&pca9552 2 GPIO_ACTIVE_LOW>;
0152 };
0153
0154 fan3 {
0155 retain-state-shutdown;
0156 default-state = "keep";
0157 gpios = <&pca9552 3 GPIO_ACTIVE_LOW>;
0158 };
0159
0160 fan4 {
0161 retain-state-shutdown;
0162 default-state = "keep";
0163 gpios = <&pca9552 4 GPIO_ACTIVE_LOW>;
0164 };
0165 };
0166
0167 fsi: gpio-fsi {
0168 compatible = "fsi-master-gpio", "fsi-master";
0169 #address-cells = <2>;
0170 #size-cells = <0>;
0171 no-gpio-delays;
0172
0173 clock-gpios = <&gpio ASPEED_GPIO(E, 6) GPIO_ACTIVE_HIGH>;
0174 data-gpios = <&gpio ASPEED_GPIO(E, 7) GPIO_ACTIVE_HIGH>;
0175 mux-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
0176 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
0177 trans-gpios = <&gpio ASPEED_GPIO(E, 5) GPIO_ACTIVE_HIGH>;
0178 };
0179
0180 iio-hwmon-12v {
0181 compatible = "iio-hwmon";
0182 io-channels = <&adc 0>;
0183 };
0184
0185 iio-hwmon-5v {
0186 compatible = "iio-hwmon";
0187 io-channels = <&adc 1>;
0188 };
0189
0190 iio-hwmon-3v {
0191 compatible = "iio-hwmon";
0192 io-channels = <&adc 2>;
0193 };
0194
0195 iio-hwmon-vdd {
0196 compatible = "iio-hwmon";
0197 io-channels = <&adc 3>;
0198 };
0199
0200 iio-hwmon-vcs {
0201 compatible = "iio-hwmon";
0202 io-channels = <&adc 5>;
0203 };
0204
0205 iio-hwmon-vdn {
0206 compatible = "iio-hwmon";
0207 io-channels = <&adc 7>;
0208 };
0209
0210 iio-hwmon-vio {
0211 compatible = "iio-hwmon";
0212 io-channels = <&adc 9>;
0213 };
0214
0215 iio-hwmon-vddra {
0216 compatible = "iio-hwmon";
0217 io-channels = <&adc 11>;
0218 };
0219
0220 iio-hwmon-battery {
0221 compatible = "iio-hwmon";
0222 io-channels = <&adc 12>;
0223 };
0224
0225 iio-hwmon-vddrb {
0226 compatible = "iio-hwmon";
0227 io-channels = <&adc 13>;
0228 };
0229 };
0230
0231 &pwm_tacho {
0232 status = "okay";
0233 pinctrl-names = "default";
0234 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
0235 &pinctrl_pwm2_default &pinctrl_pwm3_default
0236 &pinctrl_pwm4_default>;
0237
0238 fan@0 {
0239 reg = <0x00>;
0240 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
0241 };
0242
0243 fan@1 {
0244 reg = <0x01>;
0245 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
0246 };
0247
0248 fan@2 {
0249 reg = <0x02>;
0250 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
0251 };
0252
0253 fan@3 {
0254 reg = <0x03>;
0255 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
0256 };
0257
0258 fan@4 {
0259 reg = <0x04>;
0260 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
0261 };
0262
0263 fan@5 {
0264 reg = <0x00>;
0265 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
0266 };
0267
0268 fan@6 {
0269 reg = <0x01>;
0270 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
0271 };
0272
0273 fan@7 {
0274 reg = <0x02>;
0275 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
0276 };
0277
0278 fan@8 {
0279 reg = <0x03>;
0280 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
0281 };
0282
0283 fan@9 {
0284 reg = <0x04>;
0285 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
0286 };
0287 };
0288
0289 &fmc {
0290 status = "okay";
0291 flash@0 {
0292 status = "okay";
0293 label = "bmc";
0294 m25p,fast-read;
0295 spi-max-frequency = <50000000>;
0296 partitions {
0297 #address-cells = < 1 >;
0298 #size-cells = < 1 >;
0299 compatible = "fixed-partitions";
0300 u-boot@0 {
0301 reg = < 0 0x60000 >;
0302 label = "u-boot";
0303 };
0304 u-boot-env@60000 {
0305 reg = < 0x60000 0x20000 >;
0306 label = "u-boot-env";
0307 };
0308 obmc-ubi@80000 {
0309 reg = < 0x80000 0x1F80000 >;
0310 label = "obmc-ubi";
0311 };
0312 };
0313 };
0314 flash@1 {
0315 status = "okay";
0316 label = "alt-bmc";
0317 m25p,fast-read;
0318 spi-max-frequency = <50000000>;
0319 partitions {
0320 #address-cells = < 1 >;
0321 #size-cells = < 1 >;
0322 compatible = "fixed-partitions";
0323 u-boot@0 {
0324 reg = < 0 0x60000 >;
0325 label = "alt-u-boot";
0326 };
0327 u-boot-env@60000 {
0328 reg = < 0x60000 0x20000 >;
0329 label = "alt-u-boot-env";
0330 };
0331 obmc-ubi@80000 {
0332 reg = < 0x80000 0x1F80000 >;
0333 label = "alt-obmc-ubi";
0334 };
0335 };
0336 };
0337 };
0338
0339 &spi1 {
0340 status = "okay";
0341 pinctrl-names = "default";
0342 pinctrl-0 = <&pinctrl_spi1_default>;
0343
0344 flash@0 {
0345 status = "okay";
0346 label = "pnor";
0347 m25p,fast-read;
0348 spi-max-frequency = <100000000>;
0349 };
0350 };
0351
0352 &lpc_ctrl {
0353 status = "okay";
0354 memory-region = <&flash_memory>;
0355 flash = <&spi1>;
0356 };
0357
0358 &uart1 {
0359 /* Rear RS-232 connector */
0360 status = "okay";
0361
0362 pinctrl-names = "default";
0363 pinctrl-0 = <&pinctrl_txd1_default
0364 &pinctrl_rxd1_default
0365 &pinctrl_nrts1_default
0366 &pinctrl_ndtr1_default
0367 &pinctrl_ndsr1_default
0368 &pinctrl_ncts1_default
0369 &pinctrl_ndcd1_default
0370 &pinctrl_nri1_default>;
0371 };
0372
0373 &uart2 {
0374 /* APSS */
0375 status = "okay";
0376
0377 pinctrl-names = "default";
0378 pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
0379 };
0380
0381 &uart5 {
0382 status = "okay";
0383 };
0384
0385 &mac0 {
0386 status = "okay";
0387
0388 pinctrl-names = "default";
0389 pinctrl-0 = <&pinctrl_rmii1_default>;
0390 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
0391 <&syscon ASPEED_CLK_MAC1RCLK>;
0392 clock-names = "MACCLK", "RCLK";
0393 use-ncsi;
0394 };
0395
0396 &mac1 {
0397 status = "okay";
0398
0399 pinctrl-names = "default";
0400 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
0401 };
0402
0403 &i2c0 {
0404 status = "okay";
0405
0406 tmp275@48 {
0407 compatible = "ti,tmp275";
0408 reg = <0x48>;
0409 };
0410 };
0411
0412 &i2c1 {
0413 status = "disabled";
0414 };
0415
0416 &i2c2 {
0417 status = "okay";
0418
0419 /* CPU MFG CONN */
0420
0421 };
0422
0423 &i2c3 {
0424 status = "okay";
0425
0426 /* APSS */
0427 /* CPLD */
0428
0429 /* PCA9516 (repeater) ->
0430 * CLK Buffer 9FGS9092
0431 * Power Supply 0
0432 * Power Supply 1
0433 * PCA 9552 LED
0434 */
0435
0436 pca9552: pca9552@60 {
0437 compatible = "nxp,pca9552";
0438 reg = <0x60>;
0439 #address-cells = <1>;
0440 #size-cells = <0>;
0441 gpio-controller;
0442 #gpio-cells = <2>;
0443
0444 gpio@0 {
0445 reg = <0>;
0446 type = <PCA955X_TYPE_GPIO>;
0447 };
0448 gpio@1 {
0449 reg = <1>;
0450 type = <PCA955X_TYPE_GPIO>;
0451 };
0452 gpio@2 {
0453 reg = <2>;
0454 type = <PCA955X_TYPE_GPIO>;
0455 };
0456 gpio@3 {
0457 reg = <3>;
0458 type = <PCA955X_TYPE_GPIO>;
0459 };
0460 gpio@4 {
0461 reg = <4>;
0462 type = <PCA955X_TYPE_GPIO>;
0463 };
0464 gpio@5 {
0465 reg = <5>;
0466 type = <PCA955X_TYPE_GPIO>;
0467 };
0468 gpio@6 {
0469 reg = <6>;
0470 type = <PCA955X_TYPE_GPIO>;
0471 };
0472 gpio@7 {
0473 reg = <7>;
0474 type = <PCA955X_TYPE_GPIO>;
0475 };
0476 gpio@8 {
0477 reg = <8>;
0478 type = <PCA955X_TYPE_GPIO>;
0479 };
0480 gpio@9 {
0481 reg = <9>;
0482 type = <PCA955X_TYPE_GPIO>;
0483 };
0484 gpio@10 {
0485 reg = <10>;
0486 type = <PCA955X_TYPE_GPIO>;
0487 };
0488 gpio@11 {
0489 reg = <11>;
0490 type = <PCA955X_TYPE_GPIO>;
0491 };
0492 gpio@12 {
0493 reg = <12>;
0494 type = <PCA955X_TYPE_GPIO>;
0495 };
0496 gpio@13 {
0497 reg = <13>;
0498 type = <PCA955X_TYPE_GPIO>;
0499 };
0500 gpio@14 {
0501 reg = <14>;
0502 type = <PCA955X_TYPE_GPIO>;
0503 };
0504 gpio@15 {
0505 reg = <15>;
0506 type = <PCA955X_TYPE_GPIO>;
0507 };
0508 };
0509
0510 power-supply@68 {
0511 compatible = "ibm,cffps1";
0512 reg = <0x68>;
0513 };
0514
0515 power-supply@69 {
0516 compatible = "ibm,cffps1";
0517 reg = <0x69>;
0518 };
0519 };
0520
0521 &i2c4 {
0522 status = "okay";
0523
0524 /* CP0 VDD & VCS : IR35221 */
0525 /* CP0 VDN & VIO : IR35221 */
0526 /* CP0 VDDR : IR35221 */
0527
0528 ir35221@28 {
0529 compatible = "infineon,ir35221";
0530 reg = <0x28>;
0531 };
0532
0533 ir35221@29 {
0534 compatible = "infineon,ir35221";
0535 reg = <0x29>;
0536 };
0537
0538 ir35221@2d {
0539 compatible = "infineon,ir35221";
0540 reg = <0x2d>;
0541 };
0542
0543 };
0544
0545 &i2c5 {
0546 status = "disabled";
0547 };
0548
0549 &i2c6 {
0550 status = "disabled";
0551 };
0552
0553 &i2c7 {
0554 status = "disabled";
0555 };
0556
0557 &i2c8 {
0558 status = "okay";
0559
0560 eeprom@50 {
0561 compatible = "atmel,24c64";
0562 reg = <0x50>;
0563 };
0564 };
0565
0566 &i2c9 {
0567 status = "okay";
0568
0569 /* PCIe G3 x16 slot */
0570 };
0571
0572 &i2c10 {
0573 status = "disabled";
0574 };
0575
0576 &i2c11 {
0577 status = "okay";
0578
0579 /* CPLD */
0580 /* TPM */
0581 /* RTC RX8900CE */
0582 /* TMP275A */
0583 /* TMP275A */
0584
0585 rtc@32 {
0586 compatible = "epson,rx8900";
0587 reg = <0x32>;
0588 };
0589
0590 tmp275@48 {
0591 compatible = "ti,tmp275";
0592 reg = <0x48>;
0593 };
0594
0595 tmp275@49 {
0596 compatible = "ti,tmp275";
0597 reg = <0x49>;
0598 };
0599
0600 };
0601
0602 &i2c12 {
0603 status = "disabled";
0604 };
0605
0606 &i2c13 {
0607 status = "disabled";
0608 };
0609
0610 &vuart {
0611 status = "okay";
0612 };
0613
0614 &gfx {
0615 status = "okay";
0616 memory-region = <&gfx_memory>;
0617 };
0618
0619 &adc {
0620 status = "okay";
0621 pinctrl-names = "default";
0622 pinctrl-0 = <&pinctrl_adc0_default
0623 &pinctrl_adc1_default
0624 &pinctrl_adc2_default
0625 &pinctrl_adc3_default
0626 &pinctrl_adc4_default
0627 &pinctrl_adc5_default
0628 &pinctrl_adc6_default
0629 &pinctrl_adc7_default
0630 &pinctrl_adc8_default
0631 &pinctrl_adc9_default
0632 &pinctrl_adc10_default
0633 &pinctrl_adc11_default
0634 &pinctrl_adc12_default
0635 &pinctrl_adc13_default
0636 &pinctrl_adc14_default
0637 &pinctrl_adc15_default>;
0638 };
0639
0640 &wdt1 {
0641 aspeed,reset-type = "none";
0642 aspeed,external-signal;
0643 aspeed,ext-push-pull;
0644 aspeed,ext-active-high;
0645
0646 pinctrl-names = "default";
0647 pinctrl-0 = <&pinctrl_wdtrst1_default>;
0648 };
0649
0650 &wdt2 {
0651 aspeed,alt-boot;
0652 };
0653
0654 &ibt {
0655 status = "okay";
0656 };
0657
0658 &vhub {
0659 status = "okay";
0660 };
0661
0662 &video {
0663 status = "okay";
0664 memory-region = <&video_engine_memory>;
0665 };
0666
0667 #include "ibm-power9-dual.dtsi"