designware-pcie.txt 2.7 KB

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