layerscape-pci.txt 2.5 KB

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