Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: ls1021a: add PCIe dts node

LS1021a contains two PCIe controllers. The patch adds their node to
dts file.

Signed-off-by: Minghuan Lian <Minghuan.Lian@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Minghuan Lian and committed by
Shawn Guo
bc7abb47 f9047419

+44
+44
arch/arm/boot/dts/ls1021a.dtsi
··· 560 560 dr_mode = "host"; 561 561 snps,quirk-frame-length-adjustment = <0x20>; 562 562 }; 563 + 564 + pcie@3400000 { 565 + compatible = "fsl,ls1021a-pcie", "snps,dw-pcie"; 566 + reg = <0x00 0x03400000 0x0 0x00010000 /* controller registers */ 567 + 0x40 0x00000000 0x0 0x00002000>; /* configuration space */ 568 + reg-names = "regs", "config"; 569 + interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */ 570 + fsl,pcie-scfg = <&scfg 0>; 571 + #address-cells = <3>; 572 + #size-cells = <2>; 573 + device_type = "pci"; 574 + num-lanes = <4>; 575 + bus-range = <0x0 0xff>; 576 + ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */ 577 + 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ 578 + #interrupt-cells = <1>; 579 + interrupt-map-mask = <0 0 0 7>; 580 + interrupt-map = <0000 0 0 1 &gic GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>, 581 + <0000 0 0 2 &gic GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>, 582 + <0000 0 0 3 &gic GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>, 583 + <0000 0 0 4 &gic GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; 584 + }; 585 + 586 + pcie@3500000 { 587 + compatible = "fsl,ls1021a-pcie", "snps,dw-pcie"; 588 + reg = <0x00 0x03500000 0x0 0x00010000 /* controller registers */ 589 + 0x48 0x00000000 0x0 0x00002000>; /* configuration space */ 590 + reg-names = "regs", "config"; 591 + interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>; 592 + fsl,pcie-scfg = <&scfg 1>; 593 + #address-cells = <3>; 594 + #size-cells = <2>; 595 + device_type = "pci"; 596 + num-lanes = <4>; 597 + bus-range = <0x0 0xff>; 598 + ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */ 599 + 0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ 600 + #interrupt-cells = <1>; 601 + interrupt-map-mask = <0 0 0 7>; 602 + interrupt-map = <0000 0 0 1 &gic GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>, 603 + <0000 0 0 2 &gic GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>, 604 + <0000 0 0 3 &gic GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>, 605 + <0000 0 0 4 &gic GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; 606 + }; 563 607 }; 564 608 };