|
495 | 495 | <0x1e142000 0x100>, /* pcie port 0 RC control registers */
|
496 | 496 | <0x1e143000 0x100>, /* pcie port 1 RC control registers */
|
497 | 497 | <0x1e144000 0x100>; /* pcie port 2 RC control registers */
|
| 498 | + ranges = <0x02000000 0 0x60000000 0x60000000 0 0x10000000>, /* pci memory */ |
| 499 | + <0x01000000 0 0x00000000 0x1e160000 0 0x00010000>; /* io space */ |
| 500 | + |
498 | 501 | #address-cells = <3>;
|
| 502 | + #interrupt-cells = <1>; |
499 | 503 | #size-cells = <2>;
|
500 | 504 |
|
501 |
| - pinctrl-names = "default"; |
502 |
| - pinctrl-0 = <&pcie_pins>; |
503 |
| - |
504 | 505 | device_type = "pci";
|
505 | 506 |
|
506 |
| - ranges = <0x02000000 0 0x60000000 0x60000000 0 0x10000000>, /* pci memory */ |
507 |
| - <0x01000000 0 0x00000000 0x1e160000 0 0x00010000>; /* io space */ |
508 |
| - |
509 |
| - #interrupt-cells = <1>; |
510 |
| - interrupt-map-mask = <0xF800 0 0 0>; |
511 |
| - interrupt-map = <0x0000 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>, |
| 507 | + interrupt-map-mask = <0xf800 0 0 0>; |
| 508 | + interrupt-map = <0x0000 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>, |
512 | 509 | <0x0800 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>,
|
513 | 510 | <0x1000 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
|
514 | 511 |
|
515 |
| - status = "disabled"; |
| 512 | + pinctrl-names = "default"; |
| 513 | + pinctrl-0 = <&pcie_pins>; |
516 | 514 |
|
517 | 515 | reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
518 | 516 |
|
| 517 | + status = "disabled"; |
| 518 | + |
519 | 519 | pcie@0,0 {
|
520 | 520 | reg = <0x0000 0 0 0 0>;
|
| 521 | + ranges; |
| 522 | + |
521 | 523 | #address-cells = <3>;
|
| 524 | + #interrupt-cells = <1>; |
522 | 525 | #size-cells = <2>;
|
| 526 | + |
| 527 | + clocks = <&sysc MT7621_CLK_PCIE0>; |
| 528 | + |
523 | 529 | device_type = "pci";
|
524 |
| - #interrupt-cells = <1>; |
| 530 | + |
525 | 531 | interrupt-map-mask = <0 0 0 0>;
|
526 | 532 | interrupt-map = <0 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>;
|
527 |
| - resets = <&sysc MT7621_RST_PCIE0>; |
528 |
| - clocks = <&sysc MT7621_CLK_PCIE0>; |
529 |
| - phys = <&pcie0_phy 1>; |
| 533 | + |
530 | 534 | phy-names = "pcie-phy0";
|
531 |
| - ranges; |
| 535 | + phys = <&pcie0_phy 1>; |
| 536 | + |
| 537 | + resets = <&sysc MT7621_RST_PCIE0>; |
532 | 538 | };
|
533 | 539 |
|
534 | 540 | pcie@1,0 {
|
535 | 541 | reg = <0x0800 0 0 0 0>;
|
| 542 | + ranges; |
| 543 | + |
536 | 544 | #address-cells = <3>;
|
| 545 | + #interrupt-cells = <1>; |
537 | 546 | #size-cells = <2>;
|
| 547 | + |
| 548 | + clocks = <&sysc MT7621_CLK_PCIE1>; |
| 549 | + |
538 | 550 | device_type = "pci";
|
539 |
| - #interrupt-cells = <1>; |
| 551 | + |
540 | 552 | interrupt-map-mask = <0 0 0 0>;
|
541 | 553 | interrupt-map = <0 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>;
|
542 |
| - resets = <&sysc MT7621_RST_PCIE1>; |
543 |
| - clocks = <&sysc MT7621_CLK_PCIE1>; |
544 |
| - phys = <&pcie0_phy 1>; |
| 554 | + |
545 | 555 | phy-names = "pcie-phy1";
|
546 |
| - ranges; |
| 556 | + phys = <&pcie0_phy 1>; |
| 557 | + |
| 558 | + resets = <&sysc MT7621_RST_PCIE1>; |
547 | 559 | };
|
548 | 560 |
|
549 | 561 | pcie@2,0 {
|
550 | 562 | reg = <0x1000 0 0 0 0>;
|
| 563 | + ranges; |
| 564 | + |
551 | 565 | #address-cells = <3>;
|
| 566 | + #interrupt-cells = <1>; |
552 | 567 | #size-cells = <2>;
|
| 568 | + |
| 569 | + clocks = <&sysc MT7621_CLK_PCIE2>; |
| 570 | + |
553 | 571 | device_type = "pci";
|
554 |
| - #interrupt-cells = <1>; |
| 572 | + |
555 | 573 | interrupt-map-mask = <0 0 0 0>;
|
556 | 574 | interrupt-map = <0 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
|
557 |
| - resets = <&sysc MT7621_RST_PCIE2>; |
558 |
| - clocks = <&sysc MT7621_CLK_PCIE2>; |
559 |
| - phys = <&pcie2_phy 0>; |
| 575 | + |
560 | 576 | phy-names = "pcie-phy2";
|
561 |
| - ranges; |
| 577 | + phys = <&pcie2_phy 0>; |
| 578 | + |
| 579 | + resets = <&sysc MT7621_RST_PCIE2>; |
562 | 580 | };
|
563 | 581 | };
|
564 | 582 |
|
|
0 commit comments