samsung,exynos5440-pcie.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. * Samsung Exynos 5440 PCIe interface
  2. This PCIe host controller is based on the Synopsis Designware PCIe IP
  3. and thus inherits all the common properties defined in designware-pcie.txt.
  4. Required properties:
  5. - compatible: "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: A list of interrupt outputs for level interrupt,
  9. pulse interrupt, special interrupt.
  10. Example:
  11. SoC specific DT Entry:
  12. pcie@290000 {
  13. compatible = "samsung,exynos5440-pcie", "snps,dw-pcie";
  14. reg = <0x290000 0x1000
  15. 0x270000 0x1000
  16. 0x271000 0x40>;
  17. interrupts = <0 20 0>, <0 21 0>, <0 22 0>;
  18. clocks = <&clock 28>, <&clock 27>;
  19. clock-names = "pcie", "pcie_bus";
  20. #address-cells = <3>;
  21. #size-cells = <2>;
  22. device_type = "pci";
  23. ranges = <0x00000800 0 0x40000000 0x40000000 0 0x00001000 /* configuration space */
  24. 0x81000000 0 0 0x40001000 0 0x00010000 /* downstream I/O */
  25. 0x82000000 0 0x40011000 0x40011000 0 0x1ffef000>; /* non-prefetchable memory */
  26. #interrupt-cells = <1>;
  27. interrupt-map-mask = <0 0 0 0>;
  28. interrupt-map = <0 0 0 0 &gic GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  29. num-lanes = <4>;
  30. };
  31. pcie@2a0000 {
  32. compatible = "samsung,exynos5440-pcie", "snps,dw-pcie";
  33. reg = <0x2a0000 0x1000
  34. 0x272000 0x1000
  35. 0x271040 0x40>;
  36. interrupts = <0 23 0>, <0 24 0>, <0 25 0>;
  37. clocks = <&clock 29>, <&clock 27>;
  38. clock-names = "pcie", "pcie_bus";
  39. #address-cells = <3>;
  40. #size-cells = <2>;
  41. device_type = "pci";
  42. ranges = <0x00000800 0 0x60000000 0x60000000 0 0x00001000 /* configuration space */
  43. 0x81000000 0 0 0x60001000 0 0x00010000 /* downstream I/O */
  44. 0x82000000 0 0x60011000 0x60011000 0 0x1ffef000>; /* non-prefetchable memory */
  45. #interrupt-cells = <1>;
  46. interrupt-map-mask = <0 0 0 0>;
  47. interrupt-map = <0 0 0 0 &gic GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
  48. num-lanes = <4>;
  49. };
  50. Board specific DT Entry:
  51. pcie@290000 {
  52. reset-gpio = <&pin_ctrl 5 0>;
  53. };
  54. pcie@2a0000 {
  55. reset-gpio = <&pin_ctrl 22 0>;
  56. };