designware-pcie.txt 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. * Synopsys Designware PCIe interface
  2. Required properties:
  3. - compatible: should contain "snps,dw-pcie" to identify the
  4. core, plus an identifier for the specific instance, such
  5. as "samsung,exynos5440-pcie".
  6. - reg: base addresses and lengths of the pcie controller,
  7. the phy controller, additional register for the phy controller.
  8. - interrupts: interrupt values for level interrupt,
  9. pulse interrupt, special interrupt.
  10. - clocks: from common clock binding: handle to pci clock.
  11. - clock-names: from common clock binding: should be "pcie" and "pcie_bus".
  12. - #address-cells: set to <3>
  13. - #size-cells: set to <2>
  14. - device_type: set to "pci"
  15. - ranges: ranges for the PCI memory and I/O regions
  16. - #interrupt-cells: set to <1>
  17. - interrupt-map-mask and interrupt-map: standard PCI properties
  18. to define the mapping of the PCIe interface to interrupt
  19. numbers.
  20. - num-lanes: number of lanes to use
  21. - reset-gpio: gpio pin number of power good signal
  22. Example:
  23. SoC specific DT Entry:
  24. pcie@290000 {
  25. compatible = "samsung,exynos5440-pcie", "snps,dw-pcie";
  26. reg = <0x290000 0x1000
  27. 0x270000 0x1000
  28. 0x271000 0x40>;
  29. interrupts = <0 20 0>, <0 21 0>, <0 22 0>;
  30. clocks = <&clock 28>, <&clock 27>;
  31. clock-names = "pcie", "pcie_bus";
  32. #address-cells = <3>;
  33. #size-cells = <2>;
  34. device_type = "pci";
  35. ranges = <0x00000800 0 0x40000000 0x40000000 0 0x00001000 /* configuration space */
  36. 0x81000000 0 0 0x40001000 0 0x00010000 /* downstream I/O */
  37. 0x82000000 0 0x40011000 0x40011000 0 0x1ffef000>; /* non-prefetchable memory */
  38. #interrupt-cells = <1>;
  39. interrupt-map-mask = <0 0 0 0>;
  40. interrupt-map = <0x0 0 &gic 53>;
  41. num-lanes = <4>;
  42. };
  43. pcie@2a0000 {
  44. compatible = "samsung,exynos5440-pcie", "snps,dw-pcie";
  45. reg = <0x2a0000 0x1000
  46. 0x272000 0x1000
  47. 0x271040 0x40>;
  48. interrupts = <0 23 0>, <0 24 0>, <0 25 0>;
  49. clocks = <&clock 29>, <&clock 27>;
  50. clock-names = "pcie", "pcie_bus";
  51. #address-cells = <3>;
  52. #size-cells = <2>;
  53. device_type = "pci";
  54. ranges = <0x00000800 0 0x60000000 0x60000000 0 0x00001000 /* configuration space */
  55. 0x81000000 0 0 0x60001000 0 0x00010000 /* downstream I/O */
  56. 0x82000000 0 0x60011000 0x60011000 0 0x1ffef000>; /* non-prefetchable memory */
  57. #interrupt-cells = <1>;
  58. interrupt-map-mask = <0 0 0 0>;
  59. interrupt-map = <0x0 0 &gic 56>;
  60. num-lanes = <4>;
  61. };
  62. Board specific DT Entry:
  63. pcie@290000 {
  64. reset-gpio = <&pin_ctrl 5 0>;
  65. };
  66. pcie@2a0000 {
  67. reset-gpio = <&pin_ctrl 22 0>;
  68. };