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 203&i2c1 { 204 status = "okay"; 205 206 temperature-sensor@4b { 207 compatible = "ti,tmp75"; 208 reg = <0x4b>; 209 }; 210 211 // MB NIC FRU 212 eeprom@50 { 213 compatible = "atmel,24c64"; 214 reg = <0x50>; 215 }; 216}; 217 218&i2c2 { 219 status = "okay"; 220 221 pwm@5e{ 222 compatible = "max31790"; 223 reg = <0x5e>; 224 #address-cells = <1>; 225 #size-cells = <0>; 226 }; 227}; 228 229&i2c3 { 230 status = "okay"; 231 232 i2c-mux@70 { 233 compatible = "nxp,pca9543"; 234 reg = <0x70>; 235 #address-cells = <1>; 236 #size-cells = <0>; 237 238 imux20: i2c@0 { 239 #address-cells = <1>; 240 #size-cells = <0>; 241 reg = <0>; 242 //Retimer Flash 243 eeprom@50 { 244 compatible = "atmel,24c2048"; 245 reg = <0x50>; 246 pagesize = <128>; 247 }; 248 }; 249 imux21: i2c@1 { 250 #address-cells = <1>; 251 #size-cells = <0>; 252 reg = <1>; 253 retimer@24 { 254 compatible = "asteralabs,pt5161l"; 255 reg = <0x24>; 256 }; 257 }; 258 }; 259}; 260 261&i2c4 { 262 status = "okay"; 263 // PDB FRU 264 eeprom@52 { 265 compatible = "atmel,24c64"; 266 reg = <0x52>; 267 }; 268 269 power-monitor@69 { 270 compatible = "pmbus"; 271 reg = <0x69>; 272 }; 273 274 temperature-sensor@49 { 275 compatible = "ti,tmp75"; 276 reg = <0x49>; 277 }; 278 279 power-monitor@44 { 280 compatible = "lltc,ltc4287"; 281 reg = <0x44>; 282 shunt-resistor-micro-ohms = <250>; 283 }; 284}; 285 286&i2c5 { 287 status = "okay"; 288}; 289 290&i2c6 { 291 status = "okay"; 292 293 i2c-mux@70 { 294 compatible = "nxp,pca9543"; 295 reg = <0x70>; 296 #address-cells = <1>; 297 #size-cells = <0>; 298 299 imux22: i2c@0 { 300 #address-cells = <1>; 301 #size-cells = <0>; 302 reg = <0>; 303 }; 304 imux23: i2c@1 { 305 #address-cells = <1>; 306 #size-cells = <0>; 307 reg = <1>; 308 }; 309 }; 310}; 311 312&i2c7 { 313 status = "okay"; 314}; 315 316&i2c8 { 317 status = "okay"; 318}; 319 320&i2c9 { 321 status = "okay"; 322 323 gpio@30 { 324 compatible = "nxp,pca9555"; 325 reg = <0x30>; 326 gpio-controller; 327 #gpio-cells = <2>; 328 }; 329 gpio@31 { 330 compatible = "nxp,pca9555"; 331 reg = <0x31>; 332 gpio-controller; 333 #gpio-cells = <2>; 334 335 gpio-line-names = 336 "","","","", 337 "","","presence-cmm","", 338 "","","","", 339 "","","",""; 340 }; 341 342 i2c-mux@71 { 343 compatible = "nxp,pca9546"; 344 reg = <0x71>; 345 #address-cells = <1>; 346 #size-cells = <0>; 347 348 imux24: i2c@0 { 349 #address-cells = <1>; 350 #size-cells = <0>; 351 reg = <0>; 352 }; 353 imux25: i2c@1 { 354 #address-cells = <1>; 355 #size-cells = <0>; 356 reg = <1>; 357 }; 358 imux26: i2c@2 { 359 #address-cells = <1>; 360 #size-cells = <0>; 361 reg = <2>; 362 }; 363 imux27: i2c@3 { 364 #address-cells = <1>; 365 #size-cells = <0>; 366 reg = <3>; 367 }; 368 }; 369 // PTTV FRU 370 eeprom@52 { 371 compatible = "atmel,24c64"; 372 reg = <0x52>; 373 }; 374}; 375 376&i2c11 { 377 status = "okay"; 378}; 379 380&i2c12 { 381 status = "okay"; 382 retimer@24 { 383 compatible = "asteralabs,pt5161l"; 384 reg = <0x24>; 385 }; 386}; 387 388&i2c13 { 389 status = "okay"; 390 391 i2c-mux@70 { 392 compatible = "nxp,pca9545"; 393 reg = <0x70>; 394 #address-cells = <1>; 395 #size-cells = <0>; 396 397 imux28: i2c@0 { 398 #address-cells = <1>; 399 #size-cells = <0>; 400 reg = <0>; 401 }; 402 imux29: i2c@1 { 403 #address-cells = <1>; 404 #size-cells = <0>; 405 reg = <1>; 406 //MB FRU 407 eeprom@54 { 408 compatible = "atmel,24c64"; 409 reg = <0x54>; 410 }; 411 }; 412 imux30: i2c@2 { 413 #address-cells = <1>; 414 #size-cells = <0>; 415 reg = <2>; 416 }; 417 imux31: i2c@3 { 418 #address-cells = <1>; 419 #size-cells = <0>; 420 reg = <3>; 421 }; 422 }; 423}; 424 425// To Debug card 426&i2c14 { 427 status = "okay"; 428 multi-master; 429 430 ipmb@10 { 431 compatible = "ipmb-dev"; 432 reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; 433 i2c-protocol; 434 }; 435}; 436 437&i2c15 { 438 status = "okay"; 439 440 // SCM FRU 441 eeprom@50 { 442 compatible = "atmel,24c64"; 443 reg = <0x50>; 444 }; 445 446 // BSM FRU 447 eeprom@56 { 448 compatible = "atmel,24c64"; 449 reg = <0x56>; 450 }; 451}; 452 453&adc0 { 454 aspeed,int-vref-microvolt = <2500000>; 455 status = "okay"; 456 pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default 457 &pinctrl_adc2_default &pinctrl_adc3_default 458 &pinctrl_adc4_default &pinctrl_adc5_default 459 &pinctrl_adc6_default &pinctrl_adc7_default>; 460}; 461 462&adc1 { 463 aspeed,int-vref-microvolt = <2500000>; 464 status = "okay"; 465 pinctrl-names = "default"; 466 pinctrl-0 = <&pinctrl_adc10_default>; 467}; 468 469&ehci0 { 470 status = "okay"; 471}; 472 473&gpio0 { 474 pinctrl-names = "default"; 475 gpio-line-names = 476 /*A0-A7*/ "","","","","","","","", 477 /*B0-B7*/ "","","","", 478 "bmc-spi-mux-select-0","led-identify","","", 479 /*C0-C7*/ "reset-cause-platrst","","","","", 480 "cpu0-err-alert","","", 481 /*D0-D7*/ "","","sol-uart-select","","","","","", 482 /*E0-E7*/ "","","","","","","","", 483 /*F0-F7*/ "","","","","","","","", 484 /*G0-G7*/ "","","","","","","","", 485 /*H0-H7*/ "","","","","","","","", 486 /*I0-I7*/ "","","","","","","","", 487 /*J0-J7*/ "","","","","","","","", 488 /*K0-K7*/ "","","","","","","","", 489 /*L0-L7*/ "","","","", 490 "leakage-detect-alert","","","", 491 /*M0-M7*/ "","","","","","","","", 492 /*N0-N7*/ "led-postcode-0","led-postcode-1", 493 "led-postcode-2","led-postcode-3", 494 "led-postcode-4","led-postcode-5", 495 "led-postcode-6","led-postcode-7", 496 /*O0-O7*/ "","","","","","","","", 497 /*P0-P7*/ "power-button","power-host-control", 498 "reset-button","","led-power","","","", 499 /*Q0-Q7*/ "","","","","","","","", 500 /*R0-R7*/ "","","","","","","","", 501 /*S0-S7*/ "","","","","","","","", 502 /*T0-T7*/ "","","","","","","","", 503 /*U0-U7*/ "","","","","","","led-identify-gate","", 504 /*V0-V7*/ "","","","", 505 "rtc-battery-voltage-read-enable","","","", 506 /*W0-W7*/ "","","","","","","","", 507 /*X0-X7*/ "","","","","","","","", 508 /*Y0-Y7*/ "","","","","","","","", 509 /*Z0-Z7*/ "","","","","","","presence-post-card",""; 510}; 511 512&gpio1 { 513 gpio-line-names = 514 /*18A0-18A7*/ "ac-power-button","","","","","","","", 515 /*18B0-18B7*/ "","","","","","","","", 516 /*18C0-18C7*/ "","","","","","","","", 517 /*18D0-18D7*/ "","","","","","","","", 518 /*18E0-18E3*/ "","","","","","","",""; 519}; 520 521&sgpiom0 { 522 status = "okay"; 523 max-ngpios = <128>; 524 ngpios = <128>; 525 bus-frequency = <2000000>; 526 gpio-line-names = 527 /*in - out - in - out */ 528 /*A0-A3 line 0-7*/ 529 "presence-scm-cable","power-config-disable-e1s-0", 530 "","", 531 "","power-config-disable-e1s-1", 532 "","", 533 /*A4-A7 line 8-15*/ 534 "","power-config-asic-module-enable", 535 "","power-config-asic-power-good", 536 "","power-config-pdb-power-good", 537 "presence-cpu","smi-control-n", 538 /*B0-B3 line 16-23*/ 539 "","nmi-control-n", 540 "","nmi-control-sync-flood-n", 541 "","", 542 "","", 543 /*B4-B7 line 24-31*/ 544 "","FM_CPU_SP5R1", 545 "reset-cause-rsmrst","FM_CPU_SP5R2", 546 "","FM_CPU_SP5R3", 547 "","FM_CPU_SP5R4", 548 /*C0-C3 line 32-39*/ 549 "","FM_CPU0_SA0", 550 "","FM_CPU0_SA1", 551 "","rt-cpu0-p0-enable", 552 "","rt-cpu0-p1-enable", 553 /*C4-C7 line 40-47*/ 554 "","smb-rt-rom-p0-select", 555 "","smb-rt-rom-p1-select", 556 "","i3c-cpu-mux0-oe-n", 557 "","i3c-cpu-mux0-select", 558 /*D0-D3 line 48-55*/ 559 "","i3c-cpu-mux1-oe-n", 560 "","i3c-cpu-mux1-select", 561 "","reset-control-bmc", 562 "","reset-control-cpu0-p0-mux", 563 /*D4-D7 line 56-63*/ 564 "","reset-control-cpu0-p1-mux", 565 "","reset-control-e1s-mux", 566 "power-host-good","reset-control-mb-mux", 567 "host0-ready","reset-control-smb-e1s-0", 568 /*E0-E3 line 64-71*/ 569 "","reset-control-smb-e1s-1", 570 "post-end-n","reset-control-srst", 571 "presence-e1s-0","reset-control-usb-hub", 572 "","reset-control", 573 /*E4-E7 line 72-79*/ 574 "presence-e1s-1","reset-control-cpu-kbrst", 575 "","reset-control-platrst", 576 "","bmc-jtag-mux-select-0", 577 "","bmc-jtag-mux-select-1", 578 /*F0-F3 line 80-87*/ 579 "","bmc-jtag-select", 580 "","bmc-ready-n", 581 "","bmc-ready-sgpio", 582 "","rt-cpu0-p0-force-enable", 583 /*F4-F7 line 88-95*/ 584 "presence-asic-modules-0","rt-cpu0-p1-force-enable", 585 "presence-asic-modules-1","bios-debug-msg-disable", 586 "","uart-control-buffer-select", 587 "","ac-control-n", 588 /*G0-G3 line 96-103*/ 589 "FM_CPU_CORETYPE2","", 590 "FM_CPU_CORETYPE1","", 591 "FM_CPU_CORETYPE0","", 592 "FM_BOARD_REV_ID5","", 593 /*G4-G7 line 104-111*/ 594 "FM_BOARD_REV_ID4","", 595 "FM_BOARD_REV_ID3","", 596 "FM_BOARD_REV_ID2","", 597 "FM_BOARD_REV_ID1","", 598 /*H0-H3 line 112-119*/ 599 "FM_BOARD_REV_ID0","", 600 "","","","","","", 601 /*H4-H7 line 120-127*/ 602 "","", 603 "reset-control-pcie-expansion-3","", 604 "reset-control-pcie-expansion-2","", 605 "reset-control-pcie-expansion-1","", 606 /*I0-I3 line 128-135*/ 607 "reset-control-pcie-expansion-0","", 608 "FM_EXP_SLOT_ID1","", 609 "FM_EXP_SLOT_ID0","", 610 "","", 611 /*I4-I7 line 136-143*/ 612 "","","","","","","","", 613 /*J0-J3 line 144-151*/ 614 "","","","","","","","", 615 /*J4-J7 line 152-159*/ 616 "SLOT_ID_BCB_0","", 617 "SLOT_ID_BCB_1","", 618 "SLOT_ID_BCB_2","", 619 "SLOT_ID_BCB_3","", 620 /*K0-K3 line 160-167*/ 621 "","","","","","","P0_I3C_APML_ALERT_L","", 622 /*K4-K7 line 168-175*/ 623 "","","","","","","irq-uv-detect-alert","", 624 /*L0-L3 line 176-183*/ 625 "irq-hsc-alert","", 626 "cpu0-prochot-alert","", 627 "cpu0-thermtrip-alert","", 628 "reset-cause-pcie","", 629 /*L4-L7 line 184-191*/ 630 "pvdd11-ocp-alert","","","","","","","", 631 /*M0-M3 line 192-199*/ 632 "","","","","","","","", 633 /*M4-M7 line 200-207*/ 634 "","","","","","","","", 635 /*N0-N3 line 208-215*/ 636 "","","","","","","","", 637 /*N4-N7 line 216-223*/ 638 "","","","","","","","", 639 /*O0-O3 line 224-231*/ 640 "","","","","","","","", 641 /*O4-O7 line 232-239*/ 642 "","","","","","","","", 643 /*P0-P3 line 240-247*/ 644 "","","","","","","","", 645 /*P4-P7 line 248-255*/ 646 "","","","","","","",""; 647}; 648