1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 3 #include "aspeed-g5.dtsi" 4 #include <dt-bindings/gpio/aspeed-gpio.h> 5 #include <dt-bindings/leds/leds-pca955x.h> 6 #include <dt-bindings/interrupt-controller/irq 7 8 / { 9 model = "FP5280G2 BMC"; 10 compatible = "inspur,fp5280g2-bmc", "a 11 12 chosen { 13 stdout-path = &uart5; 14 bootargs = "console=ttyS4,1152 15 }; 16 17 memory@80000000 { 18 reg = <0x80000000 0x20000000>; 19 }; 20 21 reserved-memory { 22 #address-cells = <1>; 23 #size-cells = <1>; 24 ranges; 25 26 vga_memory: framebuffer@9f0000 27 no-map; 28 reg = <0x9f000000 0x01 29 }; 30 31 flash_memory: region@98000000 32 no-map; 33 reg = <0x98000000 0x04 34 }; 35 36 coldfire_memory: codefire_memo 37 reg = <0x9ef00000 0x00 38 no-map; 39 }; 40 41 gfx_memory: framebuffer { 42 size = <0x01000000>; 43 alignment = <0x0100000 44 compatible = "shared-d 45 reusable; 46 }; 47 48 video_engine_memory: jpegbuffe 49 size = <0x02000000>; 50 alignment = <0x0100000 51 compatible = "shared-d 52 reusable; 53 }; 54 }; 55 56 fsi: gpio-fsi { 57 compatible = "aspeed,ast2500-c 58 #address-cells = <2>; 59 #size-cells = <0>; 60 no-gpio-delays; 61 62 memory-region = <&coldfire_mem 63 aspeed,sram = <&sram>; 64 aspeed,cvic = <&cvic>; 65 66 clock-gpios = <&gpio ASPEED_GP 67 data-gpios = <&gpio ASPEED_GPI 68 mux-gpios = <&gpio ASPEED_GPIO 69 enable-gpios = <&gpio ASPEED_G 70 trans-gpios = <&gpio ASPEED_GP 71 }; 72 73 gpio-keys { 74 compatible = "gpio-keys"; 75 76 event-checkstop { 77 label = "checkstop"; 78 gpios = <&gpio ASPEED_ 79 linux,code = <ASPEED_G 80 }; 81 82 event-ps0-presence { 83 label = "ps0-presence" 84 gpios = <&gpio ASPEED_ 85 linux,code = <ASPEED_G 86 }; 87 88 event-ps1-presence { 89 label = "ps1-presence" 90 gpios = <&gpio ASPEED_ 91 linux,code = <ASPEED_G 92 }; 93 94 }; 95 96 gpio-keys-polled { 97 compatible = "gpio-keys-polled 98 poll-interval = <1000>; 99 100 event-fan0-presence { 101 label = "fan0-presence 102 gpios = <&pca1 0 GPIO_ 103 linux,code = <1>; 104 }; 105 106 event-fan1-presence { 107 label = "fan1-presence 108 gpios = <&pca1 1 GPIO_ 109 linux,code = <2>; 110 }; 111 112 event-fan2-presence { 113 label = "fan2-presence 114 gpios = <&pca1 2 GPIO_ 115 linux,code = <3>; 116 }; 117 118 event-fan3-presence { 119 label = "fan3-presence 120 gpios = <&pca1 3 GPIO_ 121 linux,code = <4>; 122 }; 123 124 event-fan4-presence { 125 label = "fan4-presence 126 gpios = <&pca1 4 GPIO_ 127 linux,code = <5>; 128 }; 129 130 event-fan5-presence { 131 label = "fan5-presence 132 gpios = <&pca1 5 GPIO_ 133 linux,code = <6>; 134 }; 135 136 event-fan6-presence { 137 label = "fan6-presence 138 gpios = <&pca1 6 GPIO_ 139 linux,code = <7>; 140 }; 141 142 event-fan7-presence { 143 label = "fan7-presence 144 gpios = <&pca1 7 GPIO_ 145 linux,code = <8>; 146 }; 147 }; 148 149 leds { 150 compatible = "gpio-leds"; 151 152 power { 153 label = "power"; 154 /* TODO: dummy gpio */ 155 gpios = <&gpio ASPEED_ 156 }; 157 158 init-ok { 159 label = "init-ok"; 160 gpios = <&gpio ASPEED_ 161 }; 162 163 front-memory { 164 label = "front-memory" 165 gpios = <&gpio ASPEED_ 166 }; 167 168 front-syshot { 169 label = "front-syshot" 170 gpios = <&gpio ASPEED_ 171 }; 172 173 front-syshealth { 174 label = "front-sysheal 175 gpios = <&gpio ASPEED_ 176 }; 177 178 front-fan { 179 label = "front-fan"; 180 gpios = <&gpio ASPEED_ 181 }; 182 183 front-psu { 184 label = "front-psu"; 185 gpios = <&gpio ASPEED_ 186 }; 187 188 identify { 189 label = "identify"; 190 gpios = <&gpio ASPEED_ 191 }; 192 }; 193 194 iio-hwmon-battery { 195 compatible = "iio-hwmon"; 196 io-channels = <&adc 15>; 197 }; 198 199 iio-hwmon { 200 compatible = "iio-hwmon"; 201 io-channels = <&adc 0>, <&adc 202 <&adc 5>, <&adc 6>, <& 203 <&adc 10>, <&adc 11>, 204 }; 205 206 }; 207 208 &gpio { 209 gpio-line-names = 210 /*A0-A7*/ "","","","","","",""," 211 /*B0-B7*/ "","","front-psu","che 212 /*C0-C7*/ "","","","","","",""," 213 /*D0-D7*/ "","","","","","",""," 214 /*E0-E7*/ "","","","","","",""," 215 /*F0-F7*/ "ps0-presence","ps1-pr 216 /*G0-G7*/ "","","","","","",""," 217 /*H0-H7*/ "","","","","front-fan 218 /*I0-I7*/ "front-syshealth","fro 219 /*J0-J7*/ "","","","","","",""," 220 /*K0-K7*/ "","","","","","",""," 221 /*L0-L7*/ "","","","","","",""," 222 /*M0-M7*/ "","","","","","",""," 223 /*N0-N7*/ "","","","","","",""," 224 /*O0-O7*/ "","","","","","",""," 225 /*P0-P7*/ "","","","","","",""," 226 /*Q0-Q7*/ "","","","","","",""," 227 /*R0-R7*/ "","power","trans-gpio 228 /*S0-S7*/ "","","","","","",""," 229 /*T0-T7*/ "","","","","","",""," 230 /*U0-U7*/ "","","","","","",""," 231 /*V0-V7*/ "","","","","","",""," 232 /*W0-W7*/ "","","","","","",""," 233 /*X0-X7*/ "","","","","","",""," 234 /*Y0-Y7*/ "","","","","","",""," 235 /*Z0-Z7*/ "","","","","","",""," 236 /*AA0-AA7*/ "clock-gpios","","data 237 /*AB0-AB7*/ "","","","","","",""," 238 /*AC0-AC7*/ "","","","","","",""," 239 }; 240 241 &fmc { 242 status = "okay"; 243 244 flash@0 { 245 status = "okay"; 246 label = "bmc"; 247 m25p,fast-read; 248 spi-max-frequency = <50000000> 249 #include "openbmc-flash-layout-64.dtsi" 250 }; 251 }; 252 253 &spi1 { 254 status = "okay"; 255 pinctrl-names = "default"; 256 pinctrl-0 = <&pinctrl_spi1_default>; 257 258 flash@0 { 259 status = "okay"; 260 label = "pnor"; 261 m25p,fast-read; 262 spi-max-frequency = <100000000 263 }; 264 }; 265 266 &uart1 { 267 /* Rear RS-232 connector */ 268 status = "okay"; 269 pinctrl-names = "default"; 270 pinctrl-0 = <&pinctrl_txd1_default 271 &pinctrl_rxd1_default 272 &pinctrl_nrts1_default 273 &pinctrl_ndtr1_default 274 &pinctrl_ndsr1_default 275 &pinctrl_ncts1_default 276 &pinctrl_ndcd1_default 277 &pinctrl_nri1_default> 278 }; 279 280 &uart2 { 281 /* Test Point */ 282 status = "okay"; 283 pinctrl-names = "default"; 284 pinctrl-0 = <&pinctrl_txd2_default &pi 285 }; 286 287 &uart3 { 288 /* APSS */ 289 status = "okay"; 290 pinctrl-names = "default"; 291 pinctrl-0 = <&pinctrl_txd3_default &pi 292 }; 293 294 &uart5 { 295 status = "okay"; 296 }; 297 298 &lpc_ctrl { 299 status = "okay"; 300 memory-region = <&flash_memory>; 301 flash = <&spi1>; 302 }; 303 304 &mac0 { 305 status = "okay"; 306 pinctrl-names = "default"; 307 pinctrl-0 = <&pinctrl_rmii1_default>; 308 clocks = <&syscon ASPEED_CLK_GATE_MAC1 309 <&syscon ASPEED_CLK_MAC1RCLK> 310 clock-names = "MACCLK", "RCLK"; 311 use-ncsi; 312 }; 313 314 &mac1 { 315 status = "okay"; 316 pinctrl-names = "default"; 317 pinctrl-0 = <&pinctrl_rgmii2_default & 318 }; 319 320 &i2c0 { 321 /* LCD */ 322 status = "okay"; 323 }; 324 325 &i2c1 { 326 status = "okay"; 327 328 eeprom@50 { 329 compatible = "atmel,24c256"; 330 reg = <0x50>; 331 label = "fru"; 332 }; 333 334 }; 335 336 &i2c2 { 337 status = "okay"; 338 339 tmp112@48 { 340 compatible = "ti,tmp112"; 341 reg = <0x48>; 342 label = "inlet"; 343 }; 344 345 tmp112@49 { 346 compatible = "ti,tmp112"; 347 reg = <0x49>; 348 label = "outlet"; 349 }; 350 351 i2c-mux@70 { 352 compatible = "nxp,pca9546"; 353 reg = <0x70>; 354 #address-cells = <1>; 355 #size-cells = <0>; 356 357 i2c@0 { 358 #address-cells = <1>; 359 #size-cells = <0>; 360 reg = <0>; 361 362 tmp112@4a { 363 compatible = " 364 reg = <0x4a>; 365 label = "psu_i 366 }; 367 368 }; 369 370 i2c@1 { 371 #address-cells = <1>; 372 #size-cells = <0>; 373 reg = <1>; 374 375 tmp112@4a { 376 compatible = " 377 reg = <0x4a>; 378 label = "ocp_z 379 }; 380 }; 381 382 i2c@2 { 383 #address-cells = <1>; 384 #size-cells = <0>; 385 reg = <2>; 386 387 tmp112@4a { 388 compatible = " 389 reg = <0x4a>; 390 label = "bmc_z 391 }; 392 }; 393 394 i2c@3 { 395 #address-cells = <1>; 396 #size-cells = <0>; 397 reg = <3>; 398 399 tmp112@7c { 400 compatible = " 401 reg = <0x7c>; 402 }; 403 }; 404 405 }; 406 }; 407 408 &i2c3 { 409 /* Riser Card */ 410 status = "okay"; 411 }; 412 413 &i2c4 { 414 status = "okay"; 415 416 rtc@68 { 417 compatible = "dallas,ds3232"; 418 reg = <0x68>; 419 }; 420 }; 421 422 &i2c5 { 423 /* vr */ 424 status = "okay"; 425 }; 426 427 &i2c6 { 428 /* bp card */ 429 status = "okay"; 430 }; 431 432 &i2c7 { 433 status = "okay"; 434 435 i2c-mux@70 { 436 compatible = "nxp,pca9546"; 437 reg = <0x70>; 438 #address-cells = <1>; 439 #size-cells = <0>; 440 441 i2c@0 { 442 #address-cells = <1>; 443 #size-cells = <0>; 444 reg = <0>; 445 446 adm1278@10 { 447 compatible = " 448 reg = <0x10>; 449 }; 450 451 adm1278@13 { 452 compatible = " 453 reg = <0x13>; 454 }; 455 456 adm1278@50 { 457 compatible = " 458 reg = <0x50>; 459 }; 460 461 adm1278@53 { 462 compatible = " 463 reg = <0x53>; 464 }; 465 466 }; 467 468 /*pcie riser*/ 469 470 }; 471 }; 472 473 &i2c8 { 474 status = "okay"; 475 476 pca0: pca9555@20 { 477 compatible = "nxp,pca9555"; 478 reg = <0x20>; 479 #address-cells = <1>; 480 #size-cells = <0>; 481 482 gpio-controller; 483 #gpio-cells = <2>; 484 485 gpio@0 { 486 reg = <0>; 487 type = <PCA955X_TYPE_G 488 }; 489 490 gpio@1 { 491 reg = <1>; 492 type = <PCA955X_TYPE_G 493 }; 494 495 gpio@2 { 496 reg = <2>; 497 type = <PCA955X_TYPE_G 498 }; 499 500 gpio@3 { 501 reg = <3>; 502 type = <PCA955X_TYPE_G 503 }; 504 505 gpio@4 { 506 reg = <4>; 507 type = <PCA955X_TYPE_G 508 }; 509 510 gpio@5 { 511 reg = <5>; 512 type = <PCA955X_TYPE_G 513 }; 514 515 gpio@6 { 516 reg = <6>; 517 type = <PCA955X_TYPE_G 518 }; 519 520 gpio@7 { 521 reg = <7>; 522 type = <PCA955X_TYPE_G 523 }; 524 525 }; 526 527 pca1: pca9555@21 { 528 compatible = "nxp,pca9555"; 529 reg = <0x21>; 530 #address-cells = <1>; 531 #size-cells = <0>; 532 533 gpio-controller; 534 #gpio-cells = <2>; 535 536 gpio@0 { 537 reg = <0>; 538 type = <PCA955X_TYPE_G 539 }; 540 541 gpio@1 { 542 reg = <1>; 543 type = <PCA955X_TYPE_G 544 }; 545 546 gpio@2 { 547 reg = <2>; 548 type = <PCA955X_TYPE_G 549 }; 550 551 gpio@3 { 552 reg = <3>; 553 type = <PCA955X_TYPE_G 554 }; 555 556 gpio@4 { 557 reg = <4>; 558 type = <PCA955X_TYPE_G 559 }; 560 561 gpio@5 { 562 reg = <5>; 563 type = <PCA955X_TYPE_G 564 }; 565 566 gpio@6 { 567 reg = <6>; 568 type = <PCA955X_TYPE_G 569 }; 570 571 gpio@7 { 572 reg = <7>; 573 type = <PCA955X_TYPE_G 574 }; 575 }; 576 577 pca2: pca9555@22 { 578 compatible = "nxp,pca9555"; 579 reg = <0x22>; 580 #address-cells = <1>; 581 #size-cells = <0>; 582 583 gpio-controller; 584 #gpio-cells = <2>; 585 586 gpio@0 { 587 reg = <0>; 588 type = <PCA955X_TYPE_G 589 }; 590 591 gpio@1 { 592 reg = <1>; 593 type = <PCA955X_TYPE_G 594 }; 595 596 gpio@2 { 597 reg = <2>; 598 type = <PCA955X_TYPE_G 599 }; 600 601 gpio@3 { 602 reg = <3>; 603 type = <PCA955X_TYPE_G 604 }; 605 606 gpio@4 { 607 reg = <4>; 608 type = <PCA955X_TYPE_G 609 }; 610 611 gpio@5 { 612 reg = <5>; 613 type = <PCA955X_TYPE_G 614 }; 615 616 gpio@6 { 617 reg = <6>; 618 type = <PCA955X_TYPE_G 619 }; 620 621 gpio@7 { 622 reg = <7>; 623 type = <PCA955X_TYPE_G 624 }; 625 }; 626 627 pca3: pca9555@23 { 628 compatible = "nxp,pca9555"; 629 reg = <0x23>; 630 #address-cells = <1>; 631 #size-cells = <0>; 632 633 gpio-controller; 634 #gpio-cells = <2>; 635 636 gpio@0 { 637 reg = <0>; 638 type = <PCA955X_TYPE_G 639 }; 640 641 gpio@1 { 642 reg = <1>; 643 type = <PCA955X_TYPE_G 644 }; 645 646 gpio@2 { 647 reg = <2>; 648 type = <PCA955X_TYPE_G 649 }; 650 651 gpio@3 { 652 reg = <3>; 653 type = <PCA955X_TYPE_G 654 }; 655 656 gpio@4 { 657 reg = <4>; 658 type = <PCA955X_TYPE_G 659 }; 660 661 gpio@5 { 662 reg = <5>; 663 type = <PCA955X_TYPE_G 664 }; 665 666 gpio@6 { 667 reg = <6>; 668 type = <PCA955X_TYPE_G 669 }; 670 671 gpio@7 { 672 reg = <7>; 673 type = <PCA955X_TYPE_G 674 }; 675 }; 676 677 pca4: pca9555@24 { 678 compatible = "nxp,pca9555"; 679 reg = <0x24>; 680 #address-cells = <1>; 681 #size-cells = <0>; 682 683 gpio-controller; 684 #gpio-cells = <2>; 685 686 gpio@0 { 687 reg = <0>; 688 type = <PCA955X_TYPE_G 689 }; 690 691 gpio@1 { 692 reg = <1>; 693 type = <PCA955X_TYPE_G 694 }; 695 696 gpio@2 { 697 reg = <2>; 698 type = <PCA955X_TYPE_G 699 }; 700 701 gpio@3 { 702 reg = <3>; 703 type = <PCA955X_TYPE_G 704 }; 705 706 gpio@4 { 707 reg = <4>; 708 type = <PCA955X_TYPE_G 709 }; 710 711 gpio@5 { 712 reg = <5>; 713 type = <PCA955X_TYPE_G 714 }; 715 716 gpio@6 { 717 reg = <6>; 718 type = <PCA955X_TYPE_G 719 }; 720 721 gpio@7 { 722 reg = <7>; 723 type = <PCA955X_TYPE_G 724 }; 725 }; 726 727 pca5: pca9555@25 { 728 compatible = "nxp,pca9555"; 729 reg = <0x25>; 730 #address-cells = <1>; 731 #size-cells = <0>; 732 733 gpio-controller; 734 #gpio-cells = <2>; 735 736 gpio@0 { 737 reg = <0>; 738 type = <PCA955X_TYPE_G 739 }; 740 741 gpio@1 { 742 reg = <1>; 743 type = <PCA955X_TYPE_G 744 }; 745 746 gpio@2 { 747 reg = <2>; 748 type = <PCA955X_TYPE_G 749 }; 750 751 gpio@3 { 752 reg = <3>; 753 type = <PCA955X_TYPE_G 754 }; 755 756 gpio@4 { 757 reg = <4>; 758 type = <PCA955X_TYPE_G 759 }; 760 761 gpio@5 { 762 reg = <5>; 763 type = <PCA955X_TYPE_G 764 }; 765 766 gpio@6 { 767 reg = <6>; 768 type = <PCA955X_TYPE_G 769 }; 770 771 gpio@7 { 772 reg = <7>; 773 type = <PCA955X_TYPE_G 774 }; 775 }; 776 777 }; 778 779 &i2c9 { 780 /* cpld */ 781 status = "okay"; 782 }; 783 784 &i2c10 { 785 /* hdd bp */ 786 status = "okay"; 787 }; 788 789 &i2c11 { 790 status = "okay"; 791 792 power-supply@58 { 793 compatible = "inspur,ipsps1"; 794 reg = <0x58>; 795 }; 796 797 power-supply@59 { 798 compatible = "inspur,ipsps1"; 799 reg = <0x59>; 800 }; 801 }; 802 803 &i2c12 { 804 /* odcc */ 805 status = "okay"; 806 }; 807 808 &vuart { 809 status = "okay"; 810 }; 811 812 &gfx { 813 status = "okay"; 814 memory-region = <&gfx_memory>; 815 }; 816 817 &wdt1 { 818 aspeed,reset-type = "none"; 819 aspeed,external-signal; 820 aspeed,ext-push-pull; 821 aspeed,ext-active-high; 822 823 pinctrl-names = "default"; 824 pinctrl-0 = <&pinctrl_wdtrst1_default> 825 }; 826 827 &ibt { 828 status = "okay"; 829 830 }; 831 832 &adc { 833 status = "okay"; 834 pinctrl-names = "default"; 835 pinctrl-0 = <&pinctrl_adc0_default &pi 836 &pinctrl_adc2_default &pinctrl_adc3_d 837 &pinctrl_adc5_default &pinctrl_adc6_d 838 &pinctrl_adc8_default &pinctrl_adc9_d 839 &pinctrl_adc11_default &pinctrl_adc12 840 &pinctrl_adc14_default &pinctrl_adc15 841 }; 842 843 &vhub { 844 status = "okay"; 845 }; 846 847 &video { 848 status = "okay"; 849 memory-region = <&video_engine_memory> 850 }; 851 852 &pwm_tacho { 853 status = "okay"; 854 pinctrl-names = "default"; 855 pinctrl-0 = <&pinctrl_pwm0_default &pi 856 &pinctrl_pwm2_default &pinctrl 857 &pinctrl_pwm4_default &pinctrl 858 &pinctrl_pwm6_default &pinctrl 859 860 fan@0 { 861 reg = <0x00>; 862 aspeed,fan-tach-ch = /bits/ 8 863 }; 864 865 fan@1 { 866 reg = <0x01>; 867 aspeed,fan-tach-ch = /bits/ 8 868 }; 869 870 fan@2 { 871 reg = <0x02>; 872 aspeed,fan-tach-ch = /bits/ 8 873 }; 874 875 fan@3 { 876 reg = <0x03>; 877 aspeed,fan-tach-ch = /bits/ 8 878 }; 879 880 fan@4 { 881 reg = <0x04>; 882 aspeed,fan-tach-ch = /bits/ 8 883 }; 884 885 fan@5 { 886 reg = <0x05>; 887 aspeed,fan-tach-ch = /bits/ 8 888 }; 889 890 fan@6 { 891 reg = <0x06>; 892 aspeed,fan-tach-ch = /bits/ 8 893 }; 894 895 fan@7 { 896 reg = <0x07>; 897 aspeed,fan-tach-ch = /bits/ 8 898 }; 899 900 }; 901 902 &kcs3 { 903 status = "okay"; 904 aspeed,lpc-io-reg = <0xca2>; 905 aspeed,lpc-interrupts = <11 IRQ_TYPE_L 906 }; 907 908 #include "ibm-power9-dual.dtsi"
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.