xilinx-pcie.txt 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. * Xilinx AXI PCIe Root Port Bridge DT description
  2. Required properties:
  3. - #address-cells: Address representation for root ports, set to <3>
  4. - #size-cells: Size representation for root ports, set to <2>
  5. - #interrupt-cells: specifies the number of cells needed to encode an
  6. interrupt source. The value must be 1.
  7. - compatible: Should contain "xlnx,axi-pcie-host-1.00.a"
  8. - reg: Should contain AXI PCIe registers location and length
  9. - device_type: must be "pci"
  10. - interrupts: Should contain AXI PCIe interrupt
  11. - interrupt-map-mask,
  12. interrupt-map: standard PCI properties to define the mapping of the
  13. PCI interface to interrupt numbers.
  14. - ranges: ranges for the PCI memory regions (I/O space region is not
  15. supported by hardware)
  16. Please refer to the standard PCI bus binding document for a more
  17. detailed explanation
  18. Optional properties for Zynq/Microblaze:
  19. - bus-range: PCI bus numbers covered
  20. Interrupt controller child node
  21. +++++++++++++++++++++++++++++++
  22. Required properties:
  23. - interrupt-controller: identifies the node as an interrupt controller
  24. - #address-cells: specifies the number of cells needed to encode an
  25. address. The value must be 0.
  26. - #interrupt-cells: specifies the number of cells needed to encode an
  27. interrupt source. The value must be 1.
  28. NOTE:
  29. The core provides a single interrupt for both INTx/MSI messages. So,
  30. created a interrupt controller node to support 'interrupt-map' DT
  31. functionality. The driver will create an IRQ domain for this map, decode
  32. the four INTx interrupts in ISR and route them to this domain.
  33. Example:
  34. ++++++++
  35. Zynq:
  36. pci_express: axi-pcie@50000000 {
  37. #address-cells = <3>;
  38. #size-cells = <2>;
  39. #interrupt-cells = <1>;
  40. compatible = "xlnx,axi-pcie-host-1.00.a";
  41. reg = < 0x50000000 0x1000000 >;
  42. device_type = "pci";
  43. interrupts = < 0 52 4 >;
  44. interrupt-map-mask = <0 0 0 7>;
  45. interrupt-map = <0 0 0 1 &pcie_intc 1>,
  46. <0 0 0 2 &pcie_intc 2>,
  47. <0 0 0 3 &pcie_intc 3>,
  48. <0 0 0 4 &pcie_intc 4>;
  49. ranges = < 0x02000000 0 0x60000000 0x60000000 0 0x10000000 >;
  50. pcie_intc: interrupt-controller {
  51. interrupt-controller;
  52. #address-cells = <0>;
  53. #interrupt-cells = <1>;
  54. };
  55. };
  56. Microblaze:
  57. pci_express: axi-pcie@10000000 {
  58. #address-cells = <3>;
  59. #size-cells = <2>;
  60. #interrupt-cells = <1>;
  61. compatible = "xlnx,axi-pcie-host-1.00.a";
  62. reg = <0x10000000 0x4000000>;
  63. device_type = "pci";
  64. interrupt-parent = <&microblaze_0_intc>;
  65. interrupts = <1 2>;
  66. interrupt-map-mask = <0 0 0 7>;
  67. interrupt-map = <0 0 0 1 &pcie_intc 1>,
  68. <0 0 0 2 &pcie_intc 2>,
  69. <0 0 0 3 &pcie_intc 3>,
  70. <0 0 0 4 &pcie_intc 4>;
  71. ranges = <0x02000000 0x00000000 0x80000000 0x80000000 0x00000000 0x10000000>;
  72. pcie_intc: interrupt-controller {
  73. interrupt-controller;
  74. #address-cells = <0>;
  75. #interrupt-cells = <1>;
  76. };
  77. };