aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2017-03-27 05:45:09 -0400
committerBjorn Helgaas <bhelgaas@google.com>2017-04-28 11:23:17 -0400
commit40cc72e2b51f61956f965510ceba35bddb0c373f (patch)
treefa55beb7dcbbacf43b16b0886c4556d4e3afca8a
parent608793e27b3313b2385af557c95d8e4207126670 (diff)
dt-bindings: PCI: dra7xx: Add DT bindings for PCI dra7xx EP mode
Add device tree binding documentation for PCI dra7xx EP mode. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r--Documentation/devicetree/bindings/pci/ti-pci.txt37
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 @@
1TI PCI Controllers 1TI PCI Controllers
2 2
3PCIe Designware Controller 3PCIe 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
13HOST 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
30DEVICE 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
26Optional Property: 43Optional 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
46NOTE: Two DT nodes may be added for each PCI controller; one for host
47mode and another for device mode. So in order for PCI to
48work in host mode, EP mode DT node should be disabled and in order to PCI to
49work in EP mode, host mode DT node should be disabled. Host mode and EP
50mode are mutually exclusive.
51
29Example: 52Example:
30axi { 53axi {
31 compatible = "simple-bus"; 54 compatible = "simple-bus";