designware-pcie.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. * Synopsis 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. - reset-gpio: gpio pin number of power good signal
  21. Example:
  22. SoC specific DT Entry:
  23. pcie@290000 {
  24. compatible = "samsung,exynos5440-pcie", "snps,dw-pcie";
  25. reg = <0x290000 0x1000
  26. 0x270000 0x1000
  27. 0x271000 0x40>;
  28. interrupts = <0 20 0>, <0 21 0>, <0 22 0>;
  29. clocks = <&clock 28>, <&clock 27>;
  30. clock-names = "pcie", "pcie_bus";
  31. #address-cells = <3>;
  32. #size-cells = <2>;
  33. device_type = "pci";
  34. ranges = <0x00000800 0 0x40000000 0x40000000 0 0x00001000 /* configuration space */
  35. 0x81000000 0 0 0x40001000 0 0x00010000 /* downstream I/O */
  36. 0x82000000 0 0x40011000 0x40011000 0 0x1ffef000>; /* non-prefetchable memory */
  37. #interrupt-cells = <1>;
  38. interrupt-map-mask = <0 0 0 0>;
  39. interrupt-map = <0x0 0 &gic 53>;
  40. };
  41. pcie@2a0000 {
  42. compatible = "samsung,exynos5440-pcie", "snps,dw-pcie";
  43. reg = <0x2a0000 0x1000
  44. 0x272000 0x1000
  45. 0x271040 0x40>;
  46. interrupts = <0 23 0>, <0 24 0>, <0 25 0>;
  47. clocks = <&clock 29>, <&clock 27>;
  48. clock-names = "pcie", "pcie_bus";
  49. #address-cells = <3>;
  50. #size-cells = <2>;
  51. device_type = "pci";
  52. ranges = <0x00000800 0 0x60000000 0x60000000 0 0x00001000 /* configuration space */
  53. 0x81000000 0 0 0x60001000 0 0x00010000 /* downstream I/O */
  54. 0x82000000 0 0x60011000 0x60011000 0 0x1ffef000>; /* non-prefetchable memory */
  55. #interrupt-cells = <1>;
  56. interrupt-map-mask = <0 0 0 0>;
  57. interrupt-map = <0x0 0 &gic 56>;
  58. };
  59. Board specific DT Entry:
  60. pcie@290000 {
  61. reset-gpio = <&pin_ctrl 5 0>;
  62. };
  63. pcie@2a0000 {
  64. reset-gpio = <&pin_ctrl 22 0>;
  65. };