1// SPDX-License-Identifier: GPL-2.0-or-later 2// Copyright 2023 Facebook Inc. 3 4/dts-v1/; 5#include "aspeed-g6.dtsi" 6#include <dt-bindings/gpio/aspeed-gpio.h> 7#include <dt-bindings/i2c/i2c.h> 8 9/ { 10 model = "Facebook Harma"; 11 compatible = "facebook,harma-bmc", "aspeed,ast2600"; 12 13 aliases { 14 serial0 = &uart1; 15 serial1 = &uart2; 16 serial2 = &uart4; 17 serial4 = &uart5; 18 19 i2c20 = &imux20; 20 i2c21 = &imux21; 21 i2c22 = &imux22; 22 i2c23 = &imux23; 23 i2c28 = &imux28; 24 i2c29 = &imux29; 25 i2c30 = &imux30; 26 i2c31 = &imux31; 27 28 spi1 = &spi_gpio; 29 }; 30 31 chosen { 32 stdout-path = &uart5; 33 }; 34 35 memory@80000000 { 36 device_type = "memory"; 37 reg = <0x80000000 0x80000000>; 38 }; 39 40 iio-hwmon { 41 compatible = "iio-hwmon"; 42 io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>, 43 <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>, 44 <&adc1 2>; 45 }; 46 47 leds { 48 compatible = "gpio-leds"; 49 50 led-0 { 51 label = "bmc_heartbeat_amber"; 52 gpios = <&gpio0 ASPEED_GPIO(P, 7) GPIO_ACTIVE_LOW>; 53 linux,default-trigger = "heartbeat"; 54 }; 55 56 led-1 { 57 label = "fp_id_amber"; 58 default-state = "off"; 59 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; 60 }; 61 62 led-2 { 63 label = "power_blue"; 64 default-state = "off"; 65 gpios = <&gpio0 124 GPIO_ACTIVE_HIGH>; 66 }; 67 }; 68 69 spi_gpio: spi { 70 status = "okay"; 71 compatible = "spi-gpio"; 72 #address-cells = <1>; 73 #size-cells = <0>; 74 75 sck-gpios = <&gpio0 ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>; 76 mosi-gpios = <&gpio0 ASPEED_GPIO(Z, 4) GPIO_ACTIVE_HIGH>; 77 miso-gpios = <&gpio0 ASPEED_GPIO(Z, 5) GPIO_ACTIVE_HIGH>; 78 num-chipselects = <1>; 79 cs-gpios = <&gpio0 ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>; 80 81 tpm@0 { 82 compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; 83 spi-max-frequency = <33000000>; 84 reg = <0>; 85 }; 86 }; 87}; 88 89// HOST BIOS Debug 90&uart1 { 91 status = "okay"; 92}; 93 94// SOL Host Console 95&uart2 { 96 status = "okay"; 97 pinctrl-0 = <>; 98}; 99 100// SOL BMC Console 101&uart4 { 102 status = "okay"; 103 pinctrl-0 = <>; 104}; 105 106// BMC Debug Console 107&uart5 { 108 status = "okay"; 109}; 110 111// MTIA 112&uart6 { 113 status = "okay"; 114}; 115 116&uart_routing { 117 status = "okay"; 118}; 119 120&wdt1 { 121 status = "okay"; 122 pinctrl-names = "default"; 123 pinctrl-0 = <&pinctrl_wdtrst1_default>; 124 aspeed,reset-type = "soc"; 125 aspeed,external-signal; 126 aspeed,ext-push-pull; 127 aspeed,ext-active-high; 128 aspeed,ext-pulse-duration = <256>; 129}; 130 131&mac3 { 132 status = "okay"; 133 pinctrl-names = "default"; 134 pinctrl-0 = <&pinctrl_rmii4_default>; 135 use-ncsi; 136}; 137 138&fmc { 139 status = "okay"; 140 141 flash@0 { 142 status = "okay"; 143 m25p,fast-read; 144 label = "bmc"; 145 spi-max-frequency = <50000000>; 146#include "openbmc-flash-layout-128.dtsi" 147 }; 148 149 flash@1 { 150 status = "okay"; 151 m25p,fast-read; 152 label = "alt-bmc"; 153 spi-max-frequency = <50000000>; 154 }; 155}; 156 157// BIOS Flash 158&spi2 { 159 status = "okay"; 160 pinctrl-names = "default"; 161 pinctrl-0 = <&pinctrl_spi2_default>; 162 163 flash@0 { 164 status = "okay"; 165 m25p,fast-read; 166 label = "pnor"; 167 spi-max-frequency = <12000000>; 168 spi-tx-bus-width = <2>; 169 spi-rx-bus-width = <2>; 170 }; 171}; 172 173&kcs2 { 174 status = "okay"; 175 aspeed,lpc-io-reg = <0xca8>; 176}; 177 178&kcs3 { 179 status = "okay"; 180 aspeed,lpc-io-reg = <0xca2>; 181}; 182 183&i2c0 { 184 status = "okay"; 185 186 max31790@5e{ 187 compatible = "max31790"; 188 reg = <0x5e>; 189 #address-cells = <1>; 190 #size-cells = <0>; 191 }; 192 193 power-sensor@40 { 194 compatible = "ti,ina238"; 195 reg = <0x40>; 196 shunt-resistor = <1000>; 197 }; 198 199 power-sensor@41 { 200 compatible = "ti,ina238"; 201 reg = <0x41>; 202 shunt-resistor = <1000>; 203 }; 204 205 power-sensor@44 { 206 compatible = "ti,ina238"; 207 reg = <0x44>; 208 shunt-resistor = <1000>; 209 }; 210 211 power-sensor@45 { 212 compatible = "ti,ina238"; 213 reg = <0x45>; 214 shunt-resistor = <1000>; 215 }; 216 217 temperature-sensor@4b { 218 compatible = "ti,tmp75"; 219 reg = <0x4b>; 220 }; 221}; 222 223&i2c1 { 224 status = "okay"; 225 226 tmp75@4b { 227 compatible = "ti,tmp75"; 228 reg = <0x4b>; 229 }; 230 231 // MB NIC FRU 232 eeprom@50 { 233 compatible = "atmel,24c64"; 234 reg = <0x50>; 235 }; 236}; 237 238&i2c2 { 239 status = "okay"; 240 241 max31790@5e{ 242 compatible = "max31790"; 243 reg = <0x5e>; 244 #address-cells = <1>; 245 #size-cells = <0>; 246 }; 247 248 power-sensor@40 { 249 compatible = "ti,ina238"; 250 reg = <0x40>; 251 shunt-resistor = <1000>; 252 }; 253 254 power-sensor@41 { 255 compatible = "ti,ina238"; 256 reg = <0x41>; 257 shunt-resistor = <1000>; 258 }; 259 260 power-sensor@44 { 261 compatible = "ti,ina238"; 262 reg = <0x44>; 263 shunt-resistor = <1000>; 264 }; 265 266 power-sensor@45 { 267 compatible = "ti,ina238"; 268 reg = <0x45>; 269 shunt-resistor = <1000>; 270 }; 271 272 temperature-sensor@4b { 273 compatible = "ti,tmp75"; 274 reg = <0x4b>; 275 }; 276}; 277 278&i2c3 { 279 status = "okay"; 280 281 i2c-mux@70 { 282 compatible = "nxp,pca9543"; 283 reg = <0x70>; 284 #address-cells = <1>; 285 #size-cells = <0>; 286 287 imux20: i2c@0 { 288 #address-cells = <1>; 289 #size-cells = <0>; 290 reg = <0>; 291 //Retimer Flash 292 eeprom@50 { 293 compatible = "atmel,24c2048"; 294 reg = <0x50>; 295 pagesize = <128>; 296 }; 297 }; 298 imux21: i2c@1 { 299 #address-cells = <1>; 300 #size-cells = <0>; 301 reg = <1>; 302 }; 303 }; 304}; 305 306&i2c4 { 307 status = "okay"; 308 // PDB FRU 309 eeprom@52 { 310 compatible = "atmel,24c64"; 311 reg = <0x52>; 312 }; 313 314 delta_brick@69 { 315 compatible = "pmbus"; 316 reg = <0x69>; 317 }; 318 319 tmp75@49 { 320 compatible = "ti,tmp75"; 321 reg = <0x49>; 322 }; 323 324 power-monitor@44 { 325 compatible = "lltc,ltc4287"; 326 reg = <0x44>; 327 shunt-resistor-micro-ohms = <250>; 328 }; 329 330 power-monitor@40 { 331 compatible = "infineon,xdp710"; 332 reg = <0x40>; 333 }; 334}; 335 336&i2c5 { 337 status = "okay"; 338}; 339 340&i2c6 { 341 status = "okay"; 342 343 i2c-mux@70 { 344 compatible = "nxp,pca9543"; 345 reg = <0x70>; 346 #address-cells = <1>; 347 #size-cells = <0>; 348 349 imux22: i2c@0 { 350 #address-cells = <1>; 351 #size-cells = <0>; 352 reg = <0>; 353 }; 354 imux23: i2c@1 { 355 #address-cells = <1>; 356 #size-cells = <0>; 357 reg = <1>; 358 }; 359 }; 360}; 361 362&i2c7 { 363 status = "okay"; 364}; 365 366&i2c8 { 367 status = "okay"; 368}; 369 370&i2c9 { 371 status = "okay"; 372 373 mctp-controller; 374 multi-master; 375 376 mctp@10 { 377 compatible = "mctp-i2c-controller"; 378 reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; 379 }; 380 381 gpio@30 { 382 compatible = "nxp,pca9555"; 383 reg = <0x30>; 384 gpio-controller; 385 #gpio-cells = <2>; 386 }; 387 gpio@31 { 388 compatible = "nxp,pca9555"; 389 reg = <0x31>; 390 gpio-controller; 391 #gpio-cells = <2>; 392 }; 393 394 // PTTV FRU 395 eeprom@52 { 396 compatible = "atmel,24c64"; 397 reg = <0x52>; 398 }; 399}; 400 401&i2c11 { 402 status = "okay"; 403 404 gpio@30 { 405 compatible = "nxp,pca9555"; 406 reg = <0x30>; 407 gpio-controller; 408 #gpio-cells = <2>; 409 }; 410 gpio@31 { 411 compatible = "nxp,pca9555"; 412 reg = <0x31>; 413 gpio-controller; 414 #gpio-cells = <2>; 415 416 gpio-line-names = 417 "","","","", 418 "","","presence-cmm","", 419 "","","","", 420 "","","",""; 421 }; 422 423 // Aegis FRU 424 eeprom@52 { 425 compatible = "atmel,24c64"; 426 reg = <0x52>; 427 }; 428}; 429 430&i2c12 { 431 status = "okay"; 432}; 433 434&i2c13 { 435 status = "okay"; 436 437 i2c-mux@70 { 438 compatible = "nxp,pca9545"; 439 reg = <0x70>; 440 #address-cells = <1>; 441 #size-cells = <0>; 442 443 imux28: i2c@0 { 444 #address-cells = <1>; 445 #size-cells = <0>; 446 reg = <0>; 447 power-monitor@61 { 448 compatible = "isil,isl69260"; 449 reg = <0x61>; 450 }; 451 power-monitor@62 { 452 compatible = "isil,isl69260"; 453 reg = <0x62>; 454 }; 455 power-monitor@63 { 456 compatible = "isil,isl69260"; 457 reg = <0x63>; 458 }; 459 power-monitor@64 { 460 compatible = "infineon,xdpe152c4"; 461 reg = <0x64>; 462 }; 463 power-monitor@66 { 464 compatible = "infineon,xdpe152c4"; 465 reg = <0x66>; 466 }; 467 power-monitor@68 { 468 compatible = "infineon,xdpe152c4"; 469 reg = <0x68>; 470 }; 471 }; 472 imux29: i2c@1 { 473 #address-cells = <1>; 474 #size-cells = <0>; 475 reg = <1>; 476 //MB FRU 477 eeprom@54 { 478 compatible = "atmel,24c64"; 479 reg = <0x54>; 480 }; 481 }; 482 imux30: i2c@2 { 483 #address-cells = <1>; 484 #size-cells = <0>; 485 reg = <2>; 486 }; 487 imux31: i2c@3 { 488 #address-cells = <1>; 489 #size-cells = <0>; 490 reg = <3>; 491 492 rtc@51 { 493 compatible = "nxp,pcf8563"; 494 reg = <0x51>; 495 }; 496 }; 497 }; 498}; 499 500// To Debug card 501&i2c14 { 502 status = "okay"; 503 multi-master; 504 505 ipmb@10 { 506 compatible = "ipmb-dev"; 507 reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; 508 i2c-protocol; 509 }; 510}; 511 512&i2c15 { 513 status = "okay"; 514 515 // SCM FRU 516 eeprom@50 { 517 compatible = "atmel,24c64"; 518 reg = <0x50>; 519 }; 520 521 // BSM FRU 522 eeprom@56 { 523 compatible = "atmel,24c64"; 524 reg = <0x56>; 525 }; 526}; 527 528&adc0 { 529 aspeed,int-vref-microvolt = <2500000>; 530 status = "okay"; 531 pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default 532 &pinctrl_adc2_default &pinctrl_adc3_default 533 &pinctrl_adc4_default &pinctrl_adc5_default 534 &pinctrl_adc6_default &pinctrl_adc7_default>; 535}; 536 537&adc1 { 538 aspeed,int-vref-microvolt = <2500000>; 539 status = "okay"; 540 pinctrl-names = "default"; 541 pinctrl-0 = <&pinctrl_adc10_default>; 542}; 543 544&ehci0 { 545 status = "okay"; 546}; 547 548&gpio0 { 549 pinctrl-names = "default"; 550 gpio-line-names = 551 /*A0-A7*/ "","","","","","","","", 552 /*B0-B7*/ "","","","", 553 "bmc-spi-mux-select-0","led-identify","","", 554 /*C0-C7*/ "","","","","","","","", 555 /*D0-D7*/ "","","sol-uart-select","","","","","", 556 /*E0-E7*/ "","","","","","","","", 557 /*F0-F7*/ "","","","","","","","", 558 /*G0-G7*/ "","","","","","","","", 559 /*H0-H7*/ "","","","","","","","", 560 /*I0-I7*/ "","","","","","","","", 561 /*J0-J7*/ "","","","","","","","", 562 /*K0-K7*/ "","","","","","","","", 563 /*L0-L7*/ "","","","","","","","", 564 /*M0-M7*/ "","","","","","","","", 565 /*N0-N7*/ "led-postcode-0","led-postcode-1", 566 "led-postcode-2","led-postcode-3", 567 "led-postcode-4","led-postcode-5", 568 "led-postcode-6","led-postcode-7", 569 /*O0-O7*/ "","","","","","","","", 570 /*P0-P7*/ "power-button","power-host-control", 571 "reset-button","","led-power","","","", 572 /*Q0-Q7*/ "","","","","","power-chassis-control","","", 573 /*R0-R7*/ "","","","","","","","", 574 /*S0-S7*/ "","","","","","","","", 575 /*T0-T7*/ "","","","","","","","", 576 /*U0-U7*/ "","","","","","","led-identify-gate","", 577 /*V0-V7*/ "","","","", 578 "rtc-battery-voltage-read-enable","", 579 "power-chassis-good","", 580 /*W0-W7*/ "","","","","","","","", 581 /*X0-X7*/ "","","","","","","","", 582 /*Y0-Y7*/ "","","","","","","","", 583 /*Z0-Z7*/ "","","","","","","",""; 584}; 585 586&sgpiom0 { 587 status = "okay"; 588 ngpios = <128>; 589 bus-frequency = <2000000>; 590 gpio-line-names = 591 /*in - out - in - out */ 592 /*A0-A3 line 0-7*/ 593 "presence-scm-cable","power-config-disable-e1s-0", 594 "","", 595 "","power-config-disable-e1s-1", 596 "","", 597 /*A4-A7 line 8-15*/ 598 "","power-config-asic-module-enable", 599 "","power-config-asic-power-good", 600 "","power-config-pdb-power-good", 601 "presence-cpu","smi-control-n", 602 /*B0-B3 line 16-23*/ 603 "","nmi-control-n", 604 "","nmi-control-sync-flood-n", 605 "","", 606 "","", 607 /*B4-B7 line 24-31*/ 608 "","FM_CPU_SP5R1", 609 "reset-cause-rsmrst","FM_CPU_SP5R2", 610 "","FM_CPU_SP5R3", 611 "","FM_CPU_SP5R4", 612 /*C0-C3 line 32-39*/ 613 "","FM_CPU0_SA0", 614 "","FM_CPU0_SA1", 615 "","rt-cpu0-p0-enable", 616 "","rt-cpu0-p1-enable", 617 /*C4-C7 line 40-47*/ 618 "","smb-rt-rom-p0-select", 619 "","smb-rt-rom-p1-select", 620 "","i3c-cpu-mux0-oe-n", 621 "","i3c-cpu-mux0-select", 622 /*D0-D3 line 48-55*/ 623 "","i3c-cpu-mux1-oe-n", 624 "","i3c-cpu-mux1-select", 625 "","reset-control-bmc", 626 "","reset-control-cpu0-p0-mux", 627 /*D4-D7 line 56-63*/ 628 "","reset-control-cpu0-p1-mux", 629 "","reset-control-e1s-mux", 630 "power-host-good","reset-control-mb-mux", 631 "power-cpu-good","reset-control-smb-e1s-0", 632 /*E0-E3 line 64-71*/ 633 "","reset-control-smb-e1s-1", 634 "host-ready-n","reset-control-srst", 635 "presence-e1s-0","reset-control-usb-hub", 636 "","reset-control", 637 /*E4-E7 line 72-79*/ 638 "presence-e1s-1","reset-control-cpu-kbrst", 639 "","reset-control-platrst", 640 "","bmc-jtag-mux-select-0", 641 "","bmc-jtag-mux-select-1", 642 /*F0-F3 line 80-87*/ 643 "","bmc-jtag-select", 644 "","bmc-ready-n", 645 "","bmc-ready-sgpio", 646 "","rt-cpu0-p0-force-enable", 647 /*F4-F7 line 88-95*/ 648 "presence-asic-modules-0","rt-cpu0-p1-force-enable", 649 "presence-asic-modules-1","bios-debug-msg-disable", 650 "","uart-control-buffer-select", 651 "","ac-control-n", 652 /*G0-G3 line 96-103*/ 653 "FM_CPU_CORETYPE2","", 654 "FM_CPU_CORETYPE1","", 655 "FM_CPU_CORETYPE0","", 656 "FM_BOARD_REV_ID5","", 657 /*G4-G7 line 104-111*/ 658 "FM_BOARD_REV_ID4","", 659 "FM_BOARD_REV_ID3","", 660 "FM_BOARD_REV_ID2","", 661 "FM_BOARD_REV_ID1","", 662 /*H0-H3 line 112-119*/ 663 "FM_BOARD_REV_ID0","", 664 "","","","","","", 665 /*H4-H7 line 120-127*/ 666 "","", 667 "reset-control-pcie-expansion-3","", 668 "reset-control-pcie-expansion-2","", 669 "reset-control-pcie-expansion-1","", 670 /*I0-I3 line 128-135*/ 671 "reset-control-pcie-expansion-0","", 672 "FM_EXP_SLOT_ID1","", 673 "FM_EXP_SLOT_ID0","", 674 "","", 675 /*I4-I7 line 136-143*/ 676 "","","","","","","","", 677 /*J0-J3 line 144-151*/ 678 "","","","","","","","", 679 /*J4-J7 line 152-159*/ 680 "SLOT_ID_BCB_0","", 681 "SLOT_ID_BCB_1","", 682 "SLOT_ID_BCB_2","", 683 "SLOT_ID_BCB_3","", 684 /*K0-K3 line 160-167*/ 685 "","","","","","","","", 686 /*K4-K7 line 168-175*/ 687 "","","","","","","","", 688 /*L0-L3 line 176-183*/ 689 "","","","","","","","", 690 /*L4-L7 line 184-191*/ 691 "","","","","","","","", 692 /*M0-M3 line 192-199*/ 693 "","","","","","","","", 694 /*M4-M7 line 200-207*/ 695 "","","","","","","","", 696 /*N0-N3 line 208-215*/ 697 "","","","","","","","", 698 /*N4-N7 line 216-223*/ 699 "","","","","","","","", 700 /*O0-O3 line 224-231*/ 701 "","","","","","","","", 702 /*O4-O7 line 232-239*/ 703 "","","","","","","","", 704 /*P0-P3 line 240-247*/ 705 "","","","","","","","", 706 /*P4-P7 line 248-255*/ 707 "","","","","","","",""; 708}; 709