diff options
| author | Srikanth Thokala <sthokal@xilinx.com> | 2014-08-20 12:26:02 -0400 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-09-04 09:30:14 -0400 |
| commit | 8961def56845593f22ce85474e428f6e4892fdd3 (patch) | |
| tree | 561f7e898315e485447c5baa7574085a94558f66 /Documentation/devicetree/bindings/pci | |
| parent | 52addcf9d6669fa439387610bc65c92fa0980cef (diff) | |
PCI: xilinx: Add Xilinx AXI PCIe Host Bridge IP driver
This is the driver for Xilinx AXI PCIe Host Bridge Soft IP.
[bhelgaas: minor whitespace fixes]
Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'Documentation/devicetree/bindings/pci')
| -rw-r--r-- | Documentation/devicetree/bindings/pci/xilinx-pcie.txt | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pci/xilinx-pcie.txt b/Documentation/devicetree/bindings/pci/xilinx-pcie.txt new file mode 100644 index 000000000000..3e2c88d97ad4 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/xilinx-pcie.txt | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | * Xilinx AXI PCIe Root Port Bridge DT description | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - #address-cells: Address representation for root ports, set to <3> | ||
| 5 | - #size-cells: Size representation for root ports, set to <2> | ||
| 6 | - #interrupt-cells: specifies the number of cells needed to encode an | ||
| 7 | interrupt source. The value must be 1. | ||
| 8 | - compatible: Should contain "xlnx,axi-pcie-host-1.00.a" | ||
| 9 | - reg: Should contain AXI PCIe registers location and length | ||
| 10 | - device_type: must be "pci" | ||
| 11 | - interrupts: Should contain AXI PCIe interrupt | ||
| 12 | - interrupt-map-mask, | ||
| 13 | interrupt-map: standard PCI properties to define the mapping of the | ||
| 14 | PCI interface to interrupt numbers. | ||
| 15 | - ranges: ranges for the PCI memory regions (I/O space region is not | ||
| 16 | supported by hardware) | ||
| 17 | Please refer to the standard PCI bus binding document for a more | ||
| 18 | detailed explanation | ||
| 19 | |||
| 20 | Optional properties: | ||
| 21 | - bus-range: PCI bus numbers covered | ||
| 22 | |||
| 23 | Interrupt controller child node | ||
| 24 | +++++++++++++++++++++++++++++++ | ||
| 25 | Required properties: | ||
| 26 | - interrupt-controller: identifies the node as an interrupt controller | ||
| 27 | - #address-cells: specifies the number of cells needed to encode an | ||
| 28 | address. The value must be 0. | ||
| 29 | - #interrupt-cells: specifies the number of cells needed to encode an | ||
| 30 | interrupt source. The value must be 1. | ||
| 31 | |||
| 32 | NOTE: | ||
| 33 | The core provides a single interrupt for both INTx/MSI messages. So, | ||
| 34 | created a interrupt controller node to support 'interrupt-map' DT | ||
| 35 | functionality. The driver will create an IRQ domain for this map, decode | ||
| 36 | the four INTx interrupts in ISR and route them to this domain. | ||
| 37 | |||
| 38 | |||
| 39 | Example: | ||
| 40 | ++++++++ | ||
| 41 | |||
| 42 | pci_express: axi-pcie@50000000 { | ||
| 43 | #address-cells = <3>; | ||
| 44 | #size-cells = <2>; | ||
| 45 | #interrupt-cells = <1>; | ||
| 46 | compatible = "xlnx,axi-pcie-host-1.00.a"; | ||
| 47 | reg = < 0x50000000 0x10000000 >; | ||
| 48 | device_type = "pci"; | ||
| 49 | interrupts = < 0 52 4 >; | ||
| 50 | interrupt-map-mask = <0 0 0 7>; | ||
| 51 | interrupt-map = <0 0 0 1 &pcie_intc 1>, | ||
| 52 | <0 0 0 2 &pcie_intc 2>, | ||
| 53 | <0 0 0 3 &pcie_intc 3>, | ||
| 54 | <0 0 0 4 &pcie_intc 4>; | ||
| 55 | ranges = < 0x02000000 0 0x60000000 0x60000000 0 0x10000000 >; | ||
| 56 | |||
| 57 | pcie_intc: interrupt-controller { | ||
| 58 | interrupt-controller; | ||
| 59 | #address-cells = <0>; | ||
| 60 | #interrupt-cells = <1>; | ||
| 61 | } | ||
| 62 | }; | ||
