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