|
357 | 357 | <APPLE_PINMUX(148, 1)>; |
358 | 358 | }; |
359 | 359 |
|
| 360 | + pcie_pins: pcie-pins { |
| 361 | + // clkreq pins |
| 362 | + pinmux = <APPLE_PINMUX(183, 1)>, |
| 363 | + <APPLE_PINMUX(184, 1)>, |
| 364 | + <APPLE_PINMUX(185, 1)>, |
| 365 | + <APPLE_PINMUX(186, 1)>; |
| 366 | + }; |
360 | 367 | }; |
361 | 368 |
|
362 | 369 | pinctrl_nub: pinctrl@2e41f0000 { |
|
504 | 511 | power-domain-names = "ans", "apcie0"; |
505 | 512 | resets = <&ps_ans>; |
506 | 513 | }; |
| 514 | + |
| 515 | + pcie0_dart: iommu@594000000 { |
| 516 | + compatible = "apple,t8122-dart", "apple,t8110-dart"; |
| 517 | + reg = <0x5 0x94000000 0x0 0x4000>; |
| 518 | + #iommu-cells = <1>; |
| 519 | + interrupt-parent = <&aic>; |
| 520 | + interrupts = <AIC_IRQ 924 IRQ_TYPE_LEVEL_HIGH>; |
| 521 | + power-domains = <&ps_apcie_gp>; |
| 522 | + }; |
| 523 | + |
| 524 | + pcie1_dart: iommu@595000000 { |
| 525 | + compatible = "apple,t8122-dart", "apple,t8110-dart"; |
| 526 | + reg = <0x5 0x95000000 0x0 0x4000>; |
| 527 | + #iommu-cells = <1>; |
| 528 | + interrupt-parent = <&aic>; |
| 529 | + interrupts = <AIC_IRQ 933 IRQ_TYPE_LEVEL_HIGH>; |
| 530 | + power-domains = <&ps_apcie_gp>; |
| 531 | + status = "disabled"; |
| 532 | + }; |
| 533 | + |
| 534 | + pcie2_dart: iommu@596000000 { |
| 535 | + compatible = "apple,t8122-dart", "apple,t8110-dart"; |
| 536 | + reg = <0x6 0x96000000 0x0 0x4000>; |
| 537 | + #iommu-cells = <1>; |
| 538 | + interrupt-parent = <&aic>; |
| 539 | + interrupts = <AIC_IRQ 942 IRQ_TYPE_LEVEL_HIGH>; |
| 540 | + power-domains = <&ps_apcie_gp>; |
| 541 | + status = "disabled"; |
| 542 | + }; |
| 543 | + |
| 544 | + pcie3_dart: iommu@597000000 { |
| 545 | + compatible = "apple,t8122-dart", "apple,t8110-dart"; |
| 546 | + reg = <0x6 0x97000000 0x0 0x4000>; |
| 547 | + #iommu-cells = <1>; |
| 548 | + interrupt-parent = <&aic>; |
| 549 | + interrupts = <AIC_IRQ 951 IRQ_TYPE_LEVEL_HIGH>; |
| 550 | + power-domains = <&ps_apcie_gp>; |
| 551 | + status = "disabled"; |
| 552 | + }; |
| 553 | + |
| 554 | + pcie0: pcie@580000000 { |
| 555 | + compatible = "apple,t8122-pcie", "apple,t6020-pcie"; |
| 556 | + device_type = "pci"; |
| 557 | + |
| 558 | + reg = <0x5 0x80000000 0x0 0x1000000>, /* config */ |
| 559 | + <0x5 0x91000000 0x0 0x4000>, /* rc */ |
| 560 | + <0x5 0x94008000 0x0 0x4000>, /* port0 */ |
| 561 | + <0x5 0x95008000 0x0 0x4000>, /* port1 */ |
| 562 | + <0x5 0x96008000 0x0 0x4000>, /* port2 */ |
| 563 | + <0x5 0x97008000 0x0 0x4000>, /* port3 */ |
| 564 | + <0x5 0x9e00c000 0x0 0x4000>, /* phy0 */ |
| 565 | + <0x5 0x9e010000 0x0 0x4000>, /* phy1 */ |
| 566 | + <0x5 0x9e014000 0x0 0x4000>, /* phy2 */ |
| 567 | + <0x5 0x9e018000 0x0 0x4000>; /* phy3 */ |
| 568 | + reg-names = "config", "rc", "port0", "port1", "port2", "port3", "phy0", "phy1", "phy2", "phy3"; |
| 569 | + |
| 570 | + interrupt-parent = <&aic>; |
| 571 | + interrupts = <AIC_IRQ 923 IRQ_TYPE_LEVEL_HIGH>, |
| 572 | + <AIC_IRQ 932 IRQ_TYPE_LEVEL_HIGH>, |
| 573 | + <AIC_IRQ 941 IRQ_TYPE_LEVEL_HIGH>, |
| 574 | + <AIC_IRQ 950 IRQ_TYPE_LEVEL_HIGH>; |
| 575 | + |
| 576 | + msi-controller; |
| 577 | + msi-parent = <&pcie0>; |
| 578 | + msi-ranges = <&aic AIC_IRQ 1075 IRQ_TYPE_EDGE_RISING 32>; |
| 579 | + |
| 580 | + iommu-map = <0x100 &pcie0_dart 0 1>, |
| 581 | + <0x200 &pcie1_dart 1 1>, |
| 582 | + <0x300 &pcie2_dart 2 1>, |
| 583 | + <0x300 &pcie3_dart 3 1>; |
| 584 | + iommu-map-mask = <0xff00>; |
| 585 | + |
| 586 | + bus-range = <0 4>; |
| 587 | + #address-cells = <3>; |
| 588 | + #size-cells = <2>; |
| 589 | + ranges = <0x43000000 0x5 0xa0000000 0x5 0xa0000000 0x0 0x20000000>, |
| 590 | + <0x02000000 0x0 0xc0000000 0x5 0xc0000000 0x0 0x40000000>; |
| 591 | + |
| 592 | + power-domains = <&ps_apcie_gp>; |
| 593 | + pinctrl-0 = <&pcie_pins>; |
| 594 | + pinctrl-names = "default"; |
| 595 | + |
| 596 | + port00: pci@0,0 { |
| 597 | + device_type = "pci"; |
| 598 | + reg = <0x0 0x0 0x0 0x0 0x0>; |
| 599 | + reset-gpios = <&pinctrl_ap 187 GPIO_ACTIVE_LOW>; // perst |
| 600 | + |
| 601 | + #address-cells = <3>; |
| 602 | + #size-cells = <2>; |
| 603 | + ranges; |
| 604 | + |
| 605 | + interrupt-controller; |
| 606 | + #interrupt-cells = <1>; |
| 607 | + |
| 608 | + interrupt-map-mask = <0 0 0 7>; |
| 609 | + interrupt-map = <0 0 0 1 &port00 0 0 0 0>, |
| 610 | + <0 0 0 2 &port00 0 0 0 1>, |
| 611 | + <0 0 0 3 &port00 0 0 0 2>, |
| 612 | + <0 0 0 4 &port00 0 0 0 3>; |
| 613 | + }; |
| 614 | + |
| 615 | + port01: pci@1,0 { |
| 616 | + device_type = "pci"; |
| 617 | + reg = <0x800 0x0 0x0 0x0 0x0>; |
| 618 | + reset-gpios = <&pinctrl_ap 188 GPIO_ACTIVE_LOW>; // perst |
| 619 | + |
| 620 | + #address-cells = <3>; |
| 621 | + #size-cells = <2>; |
| 622 | + ranges; |
| 623 | + |
| 624 | + interrupt-controller; |
| 625 | + #interrupt-cells = <1>; |
| 626 | + |
| 627 | + interrupt-map-mask = <0 0 0 7>; |
| 628 | + interrupt-map = <0 0 0 1 &port01 0 0 0 0>, |
| 629 | + <0 0 0 2 &port01 0 0 0 1>, |
| 630 | + <0 0 0 3 &port01 0 0 0 2>, |
| 631 | + <0 0 0 4 &port01 0 0 0 3>; |
| 632 | + status = "disabled"; |
| 633 | + }; |
| 634 | + |
| 635 | + port02: pci@2,0 { |
| 636 | + device_type = "pci"; |
| 637 | + reg = <0x1000 0x0 0x0 0x0 0x0>; |
| 638 | + reset-gpios = <&pinctrl_ap 189 GPIO_ACTIVE_LOW>; // perst |
| 639 | + |
| 640 | + #address-cells = <3>; |
| 641 | + #size-cells = <2>; |
| 642 | + ranges; |
| 643 | + |
| 644 | + interrupt-controller; |
| 645 | + #interrupt-cells = <1>; |
| 646 | + |
| 647 | + interrupt-map-mask = <0 0 0 7>; |
| 648 | + interrupt-map = <0 0 0 1 &port02 0 0 0 0>, |
| 649 | + <0 0 0 2 &port02 0 0 0 1>, |
| 650 | + <0 0 0 3 &port02 0 0 0 2>, |
| 651 | + <0 0 0 4 &port02 0 0 0 3>; |
| 652 | + status = "disabled"; |
| 653 | + }; |
| 654 | + |
| 655 | + port03: pci@3,0 { |
| 656 | + device_type = "pci"; |
| 657 | + reg = <0x1800 0x0 0x0 0x0 0x0>; |
| 658 | + reset-gpios = <&pinctrl_ap 190 GPIO_ACTIVE_LOW>; // perst |
| 659 | + |
| 660 | + #address-cells = <3>; |
| 661 | + #size-cells = <2>; |
| 662 | + ranges; |
| 663 | + |
| 664 | + interrupt-controller; |
| 665 | + #interrupt-cells = <1>; |
| 666 | + |
| 667 | + interrupt-map-mask = <0 0 0 7>; |
| 668 | + interrupt-map = <0 0 0 1 &port03 0 0 0 0>, |
| 669 | + <0 0 0 2 &port03 0 0 0 1>, |
| 670 | + <0 0 0 3 &port03 0 0 0 2>, |
| 671 | + <0 0 0 4 &port03 0 0 0 3>; |
| 672 | + status = "disabled"; |
| 673 | + }; |
| 674 | + }; |
507 | 675 | }; |
508 | 676 | }; |
509 | 677 |
|
|
0 commit comments