0001 // SPDX-License-Identifier: GPL-2.0+
0002 // Copyright (c) 2021 Facebook Inc.
0003 /dts-v1/;
0004
0005 #include "aspeed-g6.dtsi"
0006 #include <dt-bindings/gpio/aspeed-gpio.h>
0007 #include <dt-bindings/usb/pd.h>
0008 #include <dt-bindings/leds/leds-pca955x.h>
0009 #include <dt-bindings/interrupt-controller/irq.h>
0010
0011 / {
0012 model = "Facebook Bletchley BMC";
0013 compatible = "facebook,bletchley-bmc", "aspeed,ast2600";
0014
0015 aliases {
0016 serial4 = &uart5;
0017 };
0018
0019 chosen {
0020 bootargs = "console=ttyS4,57600n8";
0021 };
0022
0023 memory@80000000 {
0024 device_type = "memory";
0025 reg = <0x80000000 0x80000000>;
0026 };
0027
0028 iio-hwmon {
0029 compatible = "iio-hwmon";
0030 io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>,
0031 <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>,
0032 <&adc1 0>, <&adc1 1>, <&adc1 2>, <&adc1 3>,
0033 <&adc1 4>, <&adc1 5>, <&adc1 6>, <&adc1 7>;
0034 };
0035
0036 spi1_gpio: spi1-gpio {
0037 compatible = "spi-gpio";
0038 #address-cells = <1>;
0039 #size-cells = <0>;
0040
0041 gpio-sck = <&gpio0 ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
0042 gpio-mosi = <&gpio0 ASPEED_GPIO(Z, 4) GPIO_ACTIVE_HIGH>;
0043 gpio-miso = <&gpio0 ASPEED_GPIO(Z, 5) GPIO_ACTIVE_HIGH>;
0044 num-chipselects = <1>;
0045 cs-gpios = <&gpio0 ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
0046
0047 tpmdev@0 {
0048 compatible = "tcg,tpm_tis-spi";
0049 spi-max-frequency = <33000000>;
0050 reg = <0>;
0051 };
0052 };
0053
0054 switchphy: ethernet-phy@0 {
0055 // Fixed link
0056 };
0057
0058 front_gpio_leds {
0059 compatible = "gpio-leds";
0060 sys_log_id {
0061 default-state = "off";
0062 gpios = <&front_leds 0 GPIO_ACTIVE_HIGH>;
0063 };
0064 };
0065
0066 fan_gpio_leds {
0067 compatible = "gpio-leds";
0068 fan0_blue {
0069 retain-state-shutdown;
0070 default-state = "on";
0071 gpios = <&fan_leds 8 GPIO_ACTIVE_HIGH>;
0072 };
0073 fan1_blue {
0074 retain-state-shutdown;
0075 default-state = "on";
0076 gpios = <&fan_leds 9 GPIO_ACTIVE_HIGH>;
0077 };
0078 fan2_blue {
0079 retain-state-shutdown;
0080 default-state = "on";
0081 gpios = <&fan_leds 10 GPIO_ACTIVE_HIGH>;
0082 };
0083 fan3_blue {
0084 retain-state-shutdown;
0085 default-state = "on";
0086 gpios = <&fan_leds 11 GPIO_ACTIVE_HIGH>;
0087 };
0088 fan0_amber {
0089 retain-state-shutdown;
0090 default-state = "off";
0091 gpios = <&fan_leds 12 GPIO_ACTIVE_HIGH>;
0092 };
0093 fan1_amber {
0094 retain-state-shutdown;
0095 default-state = "off";
0096 gpios = <&fan_leds 13 GPIO_ACTIVE_HIGH>;
0097 };
0098 fan2_amber {
0099 retain-state-shutdown;
0100 default-state = "off";
0101 gpios = <&fan_leds 14 GPIO_ACTIVE_HIGH>;
0102 };
0103 fan3_amber {
0104 retain-state-shutdown;
0105 default-state = "off";
0106 gpios = <&fan_leds 15 GPIO_ACTIVE_HIGH>;
0107 };
0108 };
0109
0110 sled1_gpio_leds {
0111 compatible = "gpio-leds";
0112 sled1_amber {
0113 retain-state-shutdown;
0114 default-state = "keep";
0115 gpios = <&sled1_leds 0 GPIO_ACTIVE_LOW>;
0116 };
0117 sled1_blue {
0118 retain-state-shutdown;
0119 default-state = "keep";
0120 gpios = <&sled1_leds 1 GPIO_ACTIVE_LOW>;
0121 };
0122 };
0123
0124 sled2_gpio_leds {
0125 compatible = "gpio-leds";
0126 sled2_amber {
0127 retain-state-shutdown;
0128 default-state = "keep";
0129 gpios = <&sled2_leds 0 GPIO_ACTIVE_LOW>;
0130 };
0131 sled2_blue {
0132 retain-state-shutdown;
0133 default-state = "keep";
0134 gpios = <&sled2_leds 1 GPIO_ACTIVE_LOW>;
0135 };
0136 };
0137
0138 sled3_gpio_leds {
0139 compatible = "gpio-leds";
0140 sled3_amber {
0141 retain-state-shutdown;
0142 default-state = "keep";
0143 gpios = <&sled3_leds 0 GPIO_ACTIVE_LOW>;
0144 };
0145 sled3_blue {
0146 retain-state-shutdown;
0147 default-state = "keep";
0148 gpios = <&sled3_leds 1 GPIO_ACTIVE_LOW>;
0149 };
0150 };
0151
0152 sled4_gpio_leds {
0153 compatible = "gpio-leds";
0154 sled4_amber {
0155 retain-state-shutdown;
0156 default-state = "keep";
0157 gpios = <&sled4_leds 0 GPIO_ACTIVE_LOW>;
0158 };
0159 sled4_blue {
0160 retain-state-shutdown;
0161 default-state = "keep";
0162 gpios = <&sled4_leds 1 GPIO_ACTIVE_LOW>;
0163 };
0164 };
0165
0166 sled5_gpio_leds {
0167 compatible = "gpio-leds";
0168 sled5_amber {
0169 retain-state-shutdown;
0170 default-state = "keep";
0171 gpios = <&sled5_leds 0 GPIO_ACTIVE_LOW>;
0172 };
0173 sled5_blue {
0174 retain-state-shutdown;
0175 default-state = "keep";
0176 gpios = <&sled5_leds 1 GPIO_ACTIVE_LOW>;
0177 };
0178 };
0179
0180 sled6_gpio_leds {
0181 compatible = "gpio-leds";
0182 sled6_amber {
0183 retain-state-shutdown;
0184 default-state = "keep";
0185 gpios = <&sled6_leds 0 GPIO_ACTIVE_LOW>;
0186 };
0187 sled6_blue {
0188 retain-state-shutdown;
0189 default-state = "keep";
0190 gpios = <&sled6_leds 1 GPIO_ACTIVE_LOW>;
0191 };
0192 };
0193 };
0194
0195 &mac2 {
0196 status = "okay";
0197 phy-mode = "rgmii";
0198 phy-handle = <&switchphy>;
0199 pinctrl-names = "default";
0200 pinctrl-0 = <&pinctrl_rgmii3_default>;
0201
0202 fixed-link {
0203 speed = <1000>;
0204 full-duplex;
0205 };
0206 };
0207
0208 &fmc {
0209 status = "okay";
0210 flash@0 {
0211 status = "okay";
0212 m25p,fast-read;
0213 label = "bmc";
0214 spi-max-frequency = <50000000>;
0215 #include "openbmc-flash-layout-128.dtsi"
0216 };
0217 flash@1 {
0218 status = "okay";
0219 m25p,fast-read;
0220 label = "flash1";
0221 spi-max-frequency = <50000000>;
0222 };
0223 };
0224
0225 &spi2 {
0226 status = "okay";
0227 pinctrl-names = "default";
0228 pinctrl-0 = <&pinctrl_spi2_default>;
0229
0230 flash@0 {
0231 status = "okay";
0232 m25p,fast-read;
0233 label = "pnor";
0234 spi-max-frequency = <50000000>;
0235 };
0236 };
0237
0238 &i2c0 {
0239 status = "okay";
0240 ina230@45 {
0241 compatible = "ti,ina230";
0242 reg = <0x45>;
0243 shunt-resistor = <2000>;
0244 };
0245
0246 mp5023@40 {
0247 compatible = "mps,mp5023";
0248 reg = <0x40>;
0249 };
0250
0251 tmp421@4f {
0252 compatible = "ti,tmp421";
0253 reg = <0x4f>;
0254 };
0255
0256 sled1_ioexp41: pca9536@41 {
0257 compatible = "nxp,pca9536";
0258 reg = <0x41>;
0259 gpio-controller;
0260 #gpio-cells = <2>;
0261
0262 gpio-line-names =
0263 "SLED1_SWD_MUX", "SLED1_XRES_SWD_N",
0264 "SLED1_CLKREQ_N", "SLED1_PCIE_PWR_EN";
0265 };
0266
0267 sled1_ioexp: pca9539@76 {
0268 compatible = "nxp,pca9539";
0269 reg = <0x76>;
0270 #address-cells = <1>;
0271 #size-cells = <0>;
0272 gpio-controller;
0273 #gpio-cells = <2>;
0274
0275 interrupt-parent = <&gpio0>;
0276 interrupts = <ASPEED_GPIO(M, 0) IRQ_TYPE_LEVEL_LOW>;
0277
0278 gpio-line-names =
0279 "SLED1_MS_DETECT1","SLED1_VBUS_BMC_EN","SLED1_INA230_ALERT","SLED1_P12V_STBY_ALERT",
0280 "SLED1_SSD_ALERT","SLED1_MS_DETECT0","SLED1_RST_CCG5","SLED1_FUSB302_INT",
0281 "SLED1_MD_STBY_RESET","SLED1_MD_IOEXP_EN_FAULT","SLED1_MD_DIR","SLED1_MD_DECAY",
0282 "SLED1_MD_MODE1","SLED1_MD_MODE2","SLED1_MD_MODE3","power-host1";
0283 };
0284
0285 sled1_leds: pca9552@67 {
0286 compatible = "nxp,pca9552";
0287 reg = <0x67>;
0288 #address-cells = <1>;
0289 #size-cells = <0>;
0290 gpio-controller;
0291 #gpio-cells = <2>;
0292
0293 gpio-line-names =
0294 "led-sled1-amber","led-sled1-blue","SLED1_RST_IOEXP","SLED1_MD_REF_PWM",
0295 "","","","",
0296 "","","","",
0297 "","","","";
0298 };
0299
0300 sled1_fusb302: typec-portc@22 {
0301 compatible = "fcs,fusb302";
0302 reg = <0x22>;
0303
0304 connector {
0305 compatible = "usb-c-connector";
0306 label = "USB-C";
0307 power-role = "dual";
0308 try-power-role = "sink";
0309 data-role = "dual";
0310 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
0311 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
0312 PDO_VAR(3000, 12000, 3000)
0313 PDO_PPS_APDO(3000, 11000, 3000)>;
0314 op-sink-microwatt = <10000000>;
0315 };
0316 };
0317
0318 eeprom@54 {
0319 compatible = "atmel,24c64";
0320 reg = <0x54>;
0321 };
0322 };
0323
0324 &i2c1 {
0325 status = "okay";
0326 ina230@45 {
0327 compatible = "ti,ina230";
0328 reg = <0x45>;
0329 shunt-resistor = <2000>;
0330 };
0331
0332 mp5023@40 {
0333 compatible = "mps,mp5023";
0334 reg = <0x40>;
0335 };
0336
0337 tmp421@4f {
0338 compatible = "ti,tmp421";
0339 reg = <0x4f>;
0340 };
0341
0342 sled2_ioexp41: pca9536@41 {
0343 compatible = "nxp,pca9536";
0344 reg = <0x41>;
0345 gpio-controller;
0346 #gpio-cells = <2>;
0347
0348 gpio-line-names =
0349 "SLED2_SWD_MUX", "SLED2_XRES_SWD_N",
0350 "SLED2_CLKREQ_N", "SLED2_PCIE_PWR_EN";
0351 };
0352
0353 sled2_ioexp: pca9539@76 {
0354 compatible = "nxp,pca9539";
0355 reg = <0x76>;
0356 #address-cells = <1>;
0357 #size-cells = <0>;
0358 gpio-controller;
0359 #gpio-cells = <2>;
0360
0361 interrupt-parent = <&gpio0>;
0362 interrupts = <ASPEED_GPIO(M, 1) IRQ_TYPE_LEVEL_LOW>;
0363
0364 gpio-line-names =
0365 "SLED2_MS_DETECT1","SLED2_VBUS_BMC_EN","SLED2_INA230_ALERT","SLED2_P12V_STBY_ALERT",
0366 "SLED2_SSD_ALERT","SLED2_MS_DETECT0","SLED2_RST_CCG5","SLED2_FUSB302_INT",
0367 "SLED2_MD_STBY_RESET","SLED2_MD_IOEXP_EN_FAULT","SLED2_MD_DIR","SLED2_MD_DECAY",
0368 "SLED2_MD_MODE1","SLED2_MD_MODE2","SLED2_MD_MODE3","power-host2";
0369 };
0370
0371 sled2_leds: pca9552@67 {
0372 compatible = "nxp,pca9552";
0373 reg = <0x67>;
0374 #address-cells = <1>;
0375 #size-cells = <0>;
0376 gpio-controller;
0377 #gpio-cells = <2>;
0378
0379 gpio-line-names =
0380 "led-sled2-amber","led-sled2-blue","SLED2_RST_IOEXP","SLED2_MD_REF_PWM",
0381 "","","","",
0382 "","","","",
0383 "","","","";
0384 };
0385
0386 sled2_fusb302: typec-portc@22 {
0387 compatible = "fcs,fusb302";
0388 reg = <0x22>;
0389
0390 connector {
0391 compatible = "usb-c-connector";
0392 label = "USB-C";
0393 power-role = "dual";
0394 try-power-role = "sink";
0395 data-role = "dual";
0396 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
0397 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
0398 PDO_VAR(3000, 12000, 3000)
0399 PDO_PPS_APDO(3000, 11000, 3000)>;
0400 op-sink-microwatt = <10000000>;
0401 };
0402 };
0403
0404 eeprom@54 {
0405 compatible = "atmel,24c64";
0406 reg = <0x54>;
0407 };
0408 };
0409
0410 &i2c2 {
0411 status = "okay";
0412 ina230@45 {
0413 compatible = "ti,ina230";
0414 reg = <0x45>;
0415 shunt-resistor = <2000>;
0416 };
0417
0418 mp5023@40 {
0419 compatible = "mps,mp5023";
0420 reg = <0x40>;
0421 };
0422
0423 tmp421@4f {
0424 compatible = "ti,tmp421";
0425 reg = <0x4f>;
0426 };
0427
0428 sled3_ioexp41: pca9536@41 {
0429 compatible = "nxp,pca9536";
0430 reg = <0x41>;
0431 gpio-controller;
0432 #gpio-cells = <2>;
0433
0434 gpio-line-names =
0435 "SLED3_SWD_MUX", "SLED3_XRES_SWD_N",
0436 "SLED3_CLKREQ_N", "SLED3_PCIE_PWR_EN";
0437 };
0438
0439 sled3_ioexp: pca9539@76 {
0440 compatible = "nxp,pca9539";
0441 reg = <0x76>;
0442 #address-cells = <1>;
0443 #size-cells = <0>;
0444 gpio-controller;
0445 #gpio-cells = <2>;
0446
0447 interrupt-parent = <&gpio0>;
0448 interrupts = <ASPEED_GPIO(M, 2) IRQ_TYPE_LEVEL_LOW>;
0449
0450 gpio-line-names =
0451 "SLED3_MS_DETECT1","SLED3_VBUS_BMC_EN","SLED3_INA230_ALERT","SLED3_P12V_STBY_ALERT",
0452 "SLED3_SSD_ALERT","SLED3_MS_DETECT0","SLED3_RST_CCG5","SLED3_FUSB302_INT",
0453 "SLED3_MD_STBY_RESET","SLED3_MD_IOEXP_EN_FAULT","SLED3_MD_DIR","SLED3_MD_DECAY",
0454 "SLED3_MD_MODE1","SLED3_MD_MODE2","SLED3_MD_MODE3","power-host3";
0455 };
0456
0457 sled3_leds: pca9552@67 {
0458 compatible = "nxp,pca9552";
0459 reg = <0x67>;
0460 #address-cells = <1>;
0461 #size-cells = <0>;
0462 gpio-controller;
0463 #gpio-cells = <2>;
0464
0465 gpio-line-names =
0466 "led-sled3-amber","led-sled3-blue","SLED3_RST_IOEXP","SLED3_MD_REF_PWM",
0467 "","","","",
0468 "","","","",
0469 "","","","";
0470 };
0471
0472 sled3_fusb302: typec-portc@22 {
0473 compatible = "fcs,fusb302";
0474 reg = <0x22>;
0475
0476 connector {
0477 compatible = "usb-c-connector";
0478 label = "USB-C";
0479 power-role = "dual";
0480 try-power-role = "sink";
0481 data-role = "dual";
0482 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
0483 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
0484 PDO_VAR(3000, 12000, 3000)
0485 PDO_PPS_APDO(3000, 11000, 3000)>;
0486 op-sink-microwatt = <10000000>;
0487 };
0488 };
0489
0490 eeprom@54 {
0491 compatible = "atmel,24c64";
0492 reg = <0x54>;
0493 };
0494 };
0495
0496 &i2c3 {
0497 status = "okay";
0498 ina230@45 {
0499 compatible = "ti,ina230";
0500 reg = <0x45>;
0501 shunt-resistor = <2000>;
0502 };
0503
0504 mp5023@40 {
0505 compatible = "mps,mp5023";
0506 reg = <0x40>;
0507 };
0508
0509 tmp421@4f {
0510 compatible = "ti,tmp421";
0511 reg = <0x4f>;
0512 };
0513
0514 sled4_ioexp41: pca9536@41 {
0515 compatible = "nxp,pca9536";
0516 reg = <0x41>;
0517 gpio-controller;
0518 #gpio-cells = <2>;
0519
0520 gpio-line-names =
0521 "SLED4_SWD_MUX", "SLED4_XRES_SWD_N",
0522 "SLED4_CLKREQ_N", "SLED4_PCIE_PWR_EN";
0523 };
0524
0525 sled4_ioexp: pca9539@76 {
0526 compatible = "nxp,pca9539";
0527 reg = <0x76>;
0528 #address-cells = <1>;
0529 #size-cells = <0>;
0530 gpio-controller;
0531 #gpio-cells = <2>;
0532
0533 interrupt-parent = <&gpio0>;
0534 interrupts = <ASPEED_GPIO(M, 3) IRQ_TYPE_LEVEL_LOW>;
0535
0536 gpio-line-names =
0537 "SLED4_MS_DETECT1","SLED4_VBUS_BMC_EN","SLED4_INA230_ALERT","SLED4_P12V_STBY_ALERT",
0538 "SLED4_SSD_ALERT","SLED4_MS_DETECT0","SLED4_RST_CCG5","SLED4_FUSB302_INT",
0539 "SLED4_MD_STBY_RESET","SLED4_MD_IOEXP_EN_FAULT","SLED4_MD_DIR","SLED4_MD_DECAY",
0540 "SLED4_MD_MODE1","SLED4_MD_MODE2","SLED4_MD_MODE3","power-host4";
0541 };
0542
0543 sled4_leds: pca9552@67 {
0544 compatible = "nxp,pca9552";
0545 reg = <0x67>;
0546 #address-cells = <1>;
0547 #size-cells = <0>;
0548 gpio-controller;
0549 #gpio-cells = <2>;
0550
0551 gpio-line-names =
0552 "led-sled4-amber","led-sled4-blue","SLED4_RST_IOEXP","SLED4_MD_REF_PWM",
0553 "","","","",
0554 "","","","",
0555 "","","","";
0556 };
0557
0558 sled4_fusb302: typec-portc@22 {
0559 compatible = "fcs,fusb302";
0560 reg = <0x22>;
0561
0562 connector {
0563 compatible = "usb-c-connector";
0564 label = "USB-C";
0565 power-role = "dual";
0566 try-power-role = "sink";
0567 data-role = "dual";
0568 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
0569 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
0570 PDO_VAR(3000, 12000, 3000)
0571 PDO_PPS_APDO(3000, 11000, 3000)>;
0572 op-sink-microwatt = <10000000>;
0573 };
0574 };
0575
0576 eeprom@54 {
0577 compatible = "atmel,24c64";
0578 reg = <0x54>;
0579 };
0580 };
0581
0582 &i2c4 {
0583 status = "okay";
0584 ina230@45 {
0585 compatible = "ti,ina230";
0586 reg = <0x45>;
0587 shunt-resistor = <2000>;
0588 };
0589
0590 mp5023@40 {
0591 compatible = "mps,mp5023";
0592 reg = <0x40>;
0593 };
0594
0595 tmp421@4f {
0596 compatible = "ti,tmp421";
0597 reg = <0x4f>;
0598 };
0599
0600 sled5_ioexp41: pca9536@41 {
0601 compatible = "nxp,pca9536";
0602 reg = <0x41>;
0603 gpio-controller;
0604 #gpio-cells = <2>;
0605
0606 gpio-line-names =
0607 "SLED5_SWD_MUX", "SLED5_XRES_SWD_N",
0608 "SLED5_CLKREQ_N", "SLED5_PCIE_PWR_EN";
0609 };
0610
0611 sled5_ioexp: pca9539@76 {
0612 compatible = "nxp,pca9539";
0613 reg = <0x76>;
0614 #address-cells = <1>;
0615 #size-cells = <0>;
0616 gpio-controller;
0617 #gpio-cells = <2>;
0618
0619 interrupt-parent = <&gpio0>;
0620 interrupts = <ASPEED_GPIO(M, 4) IRQ_TYPE_LEVEL_LOW>;
0621
0622 gpio-line-names =
0623 "SLED5_MS_DETECT1","SLED5_VBUS_BMC_EN","SLED5_INA230_ALERT","SLED5_P12V_STBY_ALERT",
0624 "SLED5_SSD_ALERT","SLED5_MS_DETECT0","SLED5_RST_CCG5","SLED5_FUSB302_INT",
0625 "SLED5_MD_STBY_RESET","SLED5_MD_IOEXP_EN_FAULT","SLED5_MD_DIR","SLED5_MD_DECAY",
0626 "SLED5_MD_MODE1","SLED5_MD_MODE2","SLED5_MD_MODE3","power-host5";
0627 };
0628
0629 sled5_leds: pca9552@67 {
0630 compatible = "nxp,pca9552";
0631 reg = <0x67>;
0632 #address-cells = <1>;
0633 #size-cells = <0>;
0634 gpio-controller;
0635 #gpio-cells = <2>;
0636
0637 gpio-line-names =
0638 "led-sled5-amber","led-sled5-blue","SLED5_RST_IOEXP","SLED5_MD_REF_PWM",
0639 "","","","",
0640 "","","","",
0641 "","","","";
0642 };
0643
0644 sled5_fusb302: typec-portc@22 {
0645 compatible = "fcs,fusb302";
0646 reg = <0x22>;
0647
0648 connector {
0649 compatible = "usb-c-connector";
0650 label = "USB-C";
0651 power-role = "dual";
0652 try-power-role = "sink";
0653 data-role = "dual";
0654 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
0655 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
0656 PDO_VAR(3000, 12000, 3000)
0657 PDO_PPS_APDO(3000, 11000, 3000)>;
0658 op-sink-microwatt = <10000000>;
0659 };
0660 };
0661
0662 eeprom@54 {
0663 compatible = "atmel,24c64";
0664 reg = <0x54>;
0665 };
0666 };
0667
0668 &i2c5 {
0669 status = "okay";
0670 ina230@45 {
0671 compatible = "ti,ina230";
0672 reg = <0x45>;
0673 shunt-resistor = <2000>;
0674 };
0675
0676 mp5023@40 {
0677 compatible = "mps,mp5023";
0678 reg = <0x40>;
0679 };
0680
0681 tmp421@4f {
0682 compatible = "ti,tmp421";
0683 reg = <0x4f>;
0684 };
0685
0686 sled6_ioexp41: pca9536@41 {
0687 compatible = "nxp,pca9536";
0688 reg = <0x41>;
0689 gpio-controller;
0690 #gpio-cells = <2>;
0691
0692 gpio-line-names =
0693 "SLED6_SWD_MUX", "SLED6_XRES_SWD_N",
0694 "SLED6_CLKREQ_N", "SLED6_PCIE_PWR_EN";
0695 };
0696
0697 sled6_ioexp: pca9539@76 {
0698 compatible = "nxp,pca9539";
0699 reg = <0x76>;
0700 #address-cells = <1>;
0701 #size-cells = <0>;
0702 gpio-controller;
0703 #gpio-cells = <2>;
0704
0705 interrupt-parent = <&gpio0>;
0706 interrupts = <ASPEED_GPIO(M, 5) IRQ_TYPE_LEVEL_LOW>;
0707
0708 gpio-line-names =
0709 "SLED6_MS_DETECT1","SLED6_VBUS_BMC_EN","SLED6_INA230_ALERT","SLED6_P12V_STBY_ALERT",
0710 "SLED6_SSD_ALERT","SLED6_MS_DETECT0","SLED6_RST_CCG5","SLED6_FUSB302_INT",
0711 "SLED6_MD_STBY_RESET","SLED6_MD_IOEXP_EN_FAULT","SLED6_MD_DIR","SLED6_MD_DECAY",
0712 "SLED6_MD_MODE1","SLED6_MD_MODE2","SLED6_MD_MODE3","power-host6";
0713 };
0714
0715 sled6_leds: pca9552@67 {
0716 compatible = "nxp,pca9552";
0717 reg = <0x67>;
0718 #address-cells = <1>;
0719 #size-cells = <0>;
0720 gpio-controller;
0721 #gpio-cells = <2>;
0722
0723 gpio-line-names =
0724 "led-sled6-amber","led-sled6-blue","SLED6_RST_IOEXP","SLED6_MD_REF_PWM",
0725 "","","","",
0726 "","","","",
0727 "","","","";
0728 };
0729
0730 sled6_fusb302: typec-portc@22 {
0731 compatible = "fcs,fusb302";
0732 reg = <0x22>;
0733
0734 connector {
0735 compatible = "usb-c-connector";
0736 label = "USB-C";
0737 power-role = "dual";
0738 try-power-role = "sink";
0739 data-role = "dual";
0740 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
0741 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
0742 PDO_VAR(3000, 12000, 3000)
0743 PDO_PPS_APDO(3000, 11000, 3000)>;
0744 op-sink-microwatt = <10000000>;
0745 };
0746 };
0747
0748 eeprom@54 {
0749 compatible = "atmel,24c64";
0750 reg = <0x54>;
0751 };
0752 };
0753
0754 &i2c6 {
0755 status = "okay";
0756
0757 eeprom@56 {
0758 compatible = "atmel,24c64";
0759 reg = <0x56>;
0760 };
0761
0762 rtc@51 {
0763 /* in-chip rtc disabled, use external rtc (battery-backed) */
0764 compatible = "nxp,pcf85263";
0765 reg = <0x51>;
0766 };
0767 };
0768
0769 &i2c7 {
0770 status = "okay";
0771
0772 eeprom@54 {
0773 compatible = "atmel,24c64";
0774 reg = <0x54>;
0775 };
0776 };
0777
0778 &i2c9 {
0779 status = "okay";
0780
0781 tmp421@4f {
0782 compatible = "ti,tmp421";
0783 reg = <0x4f>;
0784 };
0785 };
0786
0787 &i2c10 {
0788 status = "okay";
0789
0790 tmp421@4f {
0791 compatible = "ti,tmp421";
0792 reg = <0x4f>;
0793 };
0794
0795 hdc1080@40 {
0796 compatible = "ti,hdc1080";
0797 reg = <0x40>;
0798 };
0799
0800 front_leds: pca9552@67 {
0801 compatible = "nxp,pca9552";
0802 reg = <0x67>;
0803 #address-cells = <1>;
0804 #size-cells = <0>;
0805 gpio-controller;
0806 #gpio-cells = <2>;
0807
0808 gpio-line-names =
0809 "led-fault-identify","power-p5v-stby-good",
0810 "power-p1v0-dvdd-good","power-p1v0-avdd-good",
0811 "","","","",
0812 "","","","",
0813 "","","","";
0814 };
0815 };
0816
0817 &i2c12 {
0818 status = "okay";
0819
0820 adm1278@11 {
0821 compatible = "adi,adm1278";
0822 reg = <0x11>;
0823 shunt-resistor-micro-ohms = <300>;
0824 adi,volt-curr-sample-average = <128>;
0825 adi,power-sample-average = <128>;
0826 };
0827
0828 tmp421@4c {
0829 compatible = "ti,tmp421";
0830 reg = <0x4c>;
0831 };
0832
0833 tmp421@4d {
0834 compatible = "ti,tmp421";
0835 reg = <0x4d>;
0836 };
0837
0838 fan_leds: pca9552@67 {
0839 compatible = "nxp,pca9552";
0840 reg = <0x67>;
0841 #address-cells = <1>;
0842 #size-cells = <0>;
0843 gpio-controller;
0844 #gpio-cells = <2>;
0845
0846 gpio-line-names =
0847 "presence-fan0","presence-fan1",
0848 "presence-fan2","presence-fan3",
0849 "power-fan0-good","power-fan1-good",
0850 "power-fan2-good","power-fan3-good",
0851 "","","","",
0852 "","","","";
0853 };
0854 };
0855
0856 &i2c13 {
0857 multi-master;
0858 aspeed,hw-timeout-ms = <1000>;
0859 status = "okay";
0860 };
0861
0862 &gpio0 {
0863 gpio-line-names =
0864 /*A0-A7*/ "","","","","","","","",
0865 /*B0-B7*/ "FUSB302_SLED1_INT_N","FUSB302_SLED2_INT_N",
0866 "SEL_SPI2_MUX","SPI2_MUX1",
0867 "SPI2_MUX2","SPI2_MUX3",
0868 "","FUSB302_SLED3_INT_N",
0869 /*C0-C7*/ "","","","","","","","",
0870 /*D0-D7*/ "","","","","","","","",
0871 /*E0-E7*/ "","","","","","","","",
0872 /*F0-F7*/ "BMC_SLED1_STCK","BMC_SLED2_STCK",
0873 "BMC_SLED3_STCK","BMC_SLED4_STCK",
0874 "BMC_SLED5_STCK","BMC_SLED6_STCK",
0875 "","",
0876 /*G0-G7*/ "BSM_FRU_WP","SWITCH_FRU_MUX","","FM_SOL_UART_CH_SEL",
0877 "PWRGD_P1V05_VDDCORE","PWRGD_P1V5_VDD","","",
0878 /*H0-H7*/ "presence-riser1","presence-riser2",
0879 "presence-sled1","presence-sled2",
0880 "presence-sled3","presence-sled4",
0881 "presence-sled5","presence-sled6",
0882 /*I0-I7*/ "REV_ID0","",
0883 "REV_ID1","REV_ID2",
0884 "","BSM_FLASH_WP_STATUS",
0885 "BMC_TPM_PRES_N","FUSB302_SLED6_INT_N",
0886 /*J0-J7*/ "","","","","","","","",
0887 /*K0-K7*/ "","","","","","","","",
0888 /*L0-L7*/ "","","","","","BMC_RTC_INT","","",
0889 /*M0-M7*/ "ALERT_SLED1_N","ALERT_SLED2_N",
0890 "ALERT_SLED3_N","ALERT_SLED4_N",
0891 "ALERT_SLED5_N","ALERT_SLED6_N",
0892 "","",
0893 /*N0-N7*/ "LED_POSTCODE_0","LED_POSTCODE_1",
0894 "LED_POSTCODE_2","LED_POSTCODE_3",
0895 "LED_POSTCODE_4","LED_POSTCODE_5",
0896 "LED_POSTCODE_5","LED_POSTCODE_7",
0897 /*O0-O7*/ "","","","",
0898 "","BOARD_ID0","BOARD_ID1","BOARD_ID2",
0899 /*P0-P7*/ "","","","","","","","BMC_HEARTBEAT",
0900 /*Q0-Q7*/ "","","","","","","","",
0901 /*R0-R7*/ "","","","","","","","",
0902 /*S0-S7*/ "","","","BAT_DETECT",
0903 "BMC_BT_WP0_N","BMC_BT_WP1_N","","FUSB302_SLED4_INT_N",
0904 /*T0-T7*/ "","","","","","","","",
0905 /*U0-U7*/ "","","","","","","","",
0906 /*V0-V7*/ "PWRGD_CNS_PSU","RST_BMC_MVL_N",
0907 "P12V_AUX_ALERT1_N","PSU_PRSNT",
0908 "USB2_SEL0_A","USB2_SEL1_A",
0909 "USB2_SEL0_B","USB2_SEL1_B",
0910 /*W0-W7*/ "RST_FRONT_IOEXP_N","","","","","","","",
0911 /*X0-X7*/ "","","","","","","","",
0912 /*Y0-Y7*/ "BMC_SELF_HW_RST","BSM_PRSNT_N",
0913 "BSM_FLASH_LATCH_N","FUSB302_SLED5_INT_N",
0914 "","","","",
0915 /*Z0-Z7*/ "","","","","","","","";
0916 };
0917
0918 &adc0 {
0919 vref = <1800>;
0920 status = "okay";
0921
0922 pinctrl-names = "default";
0923 pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default
0924 &pinctrl_adc2_default &pinctrl_adc3_default
0925 &pinctrl_adc4_default &pinctrl_adc5_default
0926 &pinctrl_adc6_default &pinctrl_adc7_default>;
0927 };
0928
0929 &adc1 {
0930 vref = <2500>;
0931 status = "okay";
0932
0933 pinctrl-names = "default";
0934 pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default
0935 &pinctrl_adc10_default &pinctrl_adc11_default
0936 &pinctrl_adc12_default &pinctrl_adc13_default
0937 &pinctrl_adc14_default &pinctrl_adc15_default>;
0938 };
0939
0940 &mdio0 {
0941 status = "okay";
0942 /* TODO: Add Marvell 88E6191X */
0943 };
0944
0945 &mdio3 {
0946 status = "okay";
0947 /* TODO: Add Marvell 88X3310 */
0948 };
0949
0950 &ehci0 {
0951 status = "okay";
0952 };