diff options
-rw-r--r-- | Documentation/devicetree/bindings/pci/ti-pci.txt | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/Documentation/devicetree/bindings/pci/ti-pci.txt b/Documentation/devicetree/bindings/pci/ti-pci.txt index 60e25161f351..60c3cccefabc 100644 --- a/Documentation/devicetree/bindings/pci/ti-pci.txt +++ b/Documentation/devicetree/bindings/pci/ti-pci.txt | |||
@@ -1,17 +1,22 @@ | |||
1 | TI PCI Controllers | 1 | TI PCI Controllers |
2 | 2 | ||
3 | PCIe Designware Controller | 3 | PCIe Designware Controller |
4 | - compatible: Should be "ti,dra7-pcie"" | 4 | - compatible: Should be "ti,dra7-pcie" for RC |
5 | - reg : Two register ranges as listed in the reg-names property | 5 | Should be "ti,dra7-pcie-ep" for EP |
6 | - reg-names : The first entry must be "ti-conf" for the TI specific registers | ||
7 | The second entry must be "rc-dbics" for the designware pcie | ||
8 | registers | ||
9 | The third entry must be "config" for the PCIe configuration space | ||
10 | - phys : list of PHY specifiers (used by generic PHY framework) | 6 | - phys : list of PHY specifiers (used by generic PHY framework) |
11 | - phy-names : must be "pcie-phy0", "pcie-phy1", "pcie-phyN".. based on the | 7 | - phy-names : must be "pcie-phy0", "pcie-phy1", "pcie-phyN".. based on the |
12 | number of PHYs as specified in *phys* property. | 8 | number of PHYs as specified in *phys* property. |
13 | - ti,hwmods : Name of the hwmod associated to the pcie, "pcie<X>", | 9 | - ti,hwmods : Name of the hwmod associated to the pcie, "pcie<X>", |
14 | where <X> is the instance number of the pcie from the HW spec. | 10 | where <X> is the instance number of the pcie from the HW spec. |
11 | - num-lanes as specified in ../designware-pcie.txt | ||
12 | |||
13 | HOST MODE | ||
14 | ========= | ||
15 | - reg : Two register ranges as listed in the reg-names property | ||
16 | - reg-names : The first entry must be "ti-conf" for the TI specific registers | ||
17 | The second entry must be "rc-dbics" for the DesignWare PCIe | ||
18 | registers | ||
19 | The third entry must be "config" for the PCIe configuration space | ||
15 | - interrupts : Two interrupt entries must be specified. The first one is for | 20 | - interrupts : Two interrupt entries must be specified. The first one is for |
16 | main interrupt line and the second for MSI interrupt line. | 21 | main interrupt line and the second for MSI interrupt line. |
17 | - #address-cells, | 22 | - #address-cells, |
@@ -19,13 +24,31 @@ PCIe Designware Controller | |||
19 | #interrupt-cells, | 24 | #interrupt-cells, |
20 | device_type, | 25 | device_type, |
21 | ranges, | 26 | ranges, |
22 | num-lanes, | ||
23 | interrupt-map-mask, | 27 | interrupt-map-mask, |
24 | interrupt-map : as specified in ../designware-pcie.txt | 28 | interrupt-map : as specified in ../designware-pcie.txt |
25 | 29 | ||
30 | DEVICE MODE | ||
31 | =========== | ||
32 | - reg : Four register ranges as listed in the reg-names property | ||
33 | - reg-names : "ti-conf" for the TI specific registers | ||
34 | "ep_dbics" for the standard configuration registers as | ||
35 | they are locally accessed within the DIF CS space | ||
36 | "ep_dbics2" for the standard configuration registers as | ||
37 | they are locally accessed within the DIF CS2 space | ||
38 | "addr_space" used to map remote RC address space | ||
39 | - interrupts : one interrupt entries must be specified for main interrupt. | ||
40 | - num-ib-windows : number of inbound address translation windows | ||
41 | - num-ob-windows : number of outbound address translation windows | ||
42 | |||
26 | Optional Property: | 43 | Optional Property: |
27 | - gpios : Should be added if a gpio line is required to drive PERST# line | 44 | - gpios : Should be added if a gpio line is required to drive PERST# line |
28 | 45 | ||
46 | NOTE: Two DT nodes may be added for each PCI controller; one for host | ||
47 | mode and another for device mode. So in order for PCI to | ||
48 | work in host mode, EP mode DT node should be disabled and in order to PCI to | ||
49 | work in EP mode, host mode DT node should be disabled. Host mode and EP | ||
50 | mode are mutually exclusive. | ||
51 | |||
29 | Example: | 52 | Example: |
30 | axi { | 53 | axi { |
31 | compatible = "simple-bus"; | 54 | compatible = "simple-bus"; |