Minghuan Lian | 62d0ff83 | 2014-11-05 16:45:11 +0800 | [diff] [blame] | 1 | Freescale Layerscape PCIe controller |
| 2 | |
Minghuan Lian | 5192ec7 | 2015-10-16 15:19:19 +0800 | [diff] [blame] | 3 | This PCIe host controller is based on the Synopsys DesignWare PCIe IP |
Minghuan Lian | 62d0ff83 | 2014-11-05 16:45:11 +0800 | [diff] [blame] | 4 | and thus inherits all the common properties defined in designware-pcie.txt. |
| 5 | |
Minghuan Lian | 5192ec7 | 2015-10-16 15:19:19 +0800 | [diff] [blame] | 6 | This controller derives its clocks from the Reset Configuration Word (RCW) |
| 7 | which is used to describe the PLL settings at the time of chip-reset. |
| 8 | |
| 9 | Also as per the available Reference Manuals, there is no specific 'version' |
| 10 | register available in the Freescale PCIe controller register set, |
| 11 | which can allow determining the underlying DesignWare PCIe controller version |
| 12 | information. |
| 13 | |
Minghuan Lian | 62d0ff83 | 2014-11-05 16:45:11 +0800 | [diff] [blame] | 14 | Required properties: |
Minghuan Lian | 5192ec7 | 2015-10-16 15:19:19 +0800 | [diff] [blame] | 15 | - compatible: should contain the platform identifier such as: |
| 16 | "fsl,ls1021a-pcie", "snps,dw-pcie" |
Minghuan Lian | f21a3c7 | 2016-02-17 10:04:23 +0800 | [diff] [blame] | 17 | "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", "snps,dw-pcie" |
Hou Zhiqiang | 8f89357 | 2017-08-04 14:41:33 +0800 | [diff] [blame] | 18 | "fsl,ls2088a-pcie" |
Hou Zhiqiang | 03fc613 | 2017-08-04 14:41:34 +0800 | [diff] [blame] | 19 | "fsl,ls1088a-pcie" |
Mingkai Hu | 1d77040 | 2016-10-25 20:36:56 +0800 | [diff] [blame] | 20 | "fsl,ls1046a-pcie" |
Hou Zhiqiang | a335b12 | 2017-09-19 17:26:56 +0800 | [diff] [blame^] | 21 | "fsl,ls1012a-pcie" |
Bjorn Helgaas | 96291d5 | 2017-09-01 16:35:50 -0500 | [diff] [blame] | 22 | - reg: base addresses and lengths of the PCIe controller register blocks. |
Minghuan Lian | 62d0ff83 | 2014-11-05 16:45:11 +0800 | [diff] [blame] | 23 | - interrupts: A list of interrupt outputs of the controller. Must contain an |
| 24 | entry for each entry in the interrupt-names property. |
| 25 | - interrupt-names: Must include the following entries: |
| 26 | "intr": The interrupt that is asserted for controller interrupts |
| 27 | - fsl,pcie-scfg: Must include two entries. |
| 28 | The first entry must be a link to the SCFG device node |
| 29 | The second entry must be '0' or '1' based on physical PCIe controller index. |
| 30 | This is used to get SCFG PEXN registers |
Liu Gang | 2f082b1 | 2016-06-07 14:55:45 +0800 | [diff] [blame] | 31 | - dma-coherent: Indicates that the hardware IP block can ensure the coherency |
| 32 | of the data transferred from/to the IP block. This can avoid the software |
| 33 | cache flush/invalid actions, and improve the performance significantly. |
Minghuan Lian | 62d0ff83 | 2014-11-05 16:45:11 +0800 | [diff] [blame] | 34 | |
| 35 | Example: |
| 36 | |
| 37 | pcie@3400000 { |
| 38 | compatible = "fsl,ls1021a-pcie", "snps,dw-pcie"; |
| 39 | reg = <0x00 0x03400000 0x0 0x00010000 /* controller registers */ |
| 40 | 0x40 0x00000000 0x0 0x00002000>; /* configuration space */ |
| 41 | reg-names = "regs", "config"; |
| 42 | interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */ |
| 43 | interrupt-names = "intr"; |
| 44 | fsl,pcie-scfg = <&scfg 0>; |
| 45 | #address-cells = <3>; |
| 46 | #size-cells = <2>; |
| 47 | device_type = "pci"; |
Liu Gang | 2f082b1 | 2016-06-07 14:55:45 +0800 | [diff] [blame] | 48 | dma-coherent; |
Minghuan Lian | 62d0ff83 | 2014-11-05 16:45:11 +0800 | [diff] [blame] | 49 | num-lanes = <4>; |
| 50 | bus-range = <0x0 0xff>; |
| 51 | ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */ |
| 52 | 0xc2000000 0x0 0x20000000 0x40 0x20000000 0x0 0x20000000 /* prefetchable memory */ |
| 53 | 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ |
| 54 | #interrupt-cells = <1>; |
| 55 | interrupt-map-mask = <0 0 0 7>; |
| 56 | interrupt-map = <0000 0 0 1 &gic GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>, |
| 57 | <0000 0 0 2 &gic GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>, |
| 58 | <0000 0 0 3 &gic GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>, |
| 59 | <0000 0 0 4 &gic GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; |
| 60 | }; |