xilinx-pcie.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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:
  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. pci_express: axi-pcie@50000000 {
  36. #address-cells = <3>;
  37. #size-cells = <2>;
  38. #interrupt-cells = <1>;
  39. compatible = "xlnx,axi-pcie-host-1.00.a";
  40. reg = < 0x50000000 0x10000000 >;
  41. device_type = "pci";
  42. interrupts = < 0 52 4 >;
  43. interrupt-map-mask = <0 0 0 7>;
  44. interrupt-map = <0 0 0 1 &pcie_intc 1>,
  45. <0 0 0 2 &pcie_intc 2>,
  46. <0 0 0 3 &pcie_intc 3>,
  47. <0 0 0 4 &pcie_intc 4>;
  48. ranges = < 0x02000000 0 0x60000000 0x60000000 0 0x10000000 >;
  49. pcie_intc: interrupt-controller {
  50. interrupt-controller;
  51. #address-cells = <0>;
  52. #interrupt-cells = <1>;
  53. }
  54. };