hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/Documentation/devicetree/bindings/pci/pci-keystone.txt
....@@ -11,13 +11,24 @@
1111
1212 Required Properties:-
1313
14
-compatibility: "ti,keystone-pcie"
15
-reg: index 1 is the base address and length of DW application registers.
16
- index 2 is the base address and length of PCI device ID register.
14
+compatibility: Should be "ti,keystone-pcie" for RC on Keystone2 SoC
15
+ Should be "ti,am654-pcie-rc" for RC on AM654x SoC
16
+reg: Three register ranges as listed in the reg-names property
17
+reg-names: "dbics" for the DesignWare PCIe registers, "app" for the
18
+ TI specific application registers, "config" for the
19
+ configuration space address
1720
1821 pcie_msi_intc : Interrupt controller device node for MSI IRQ chip
1922 interrupt-cells: should be set to 1
2023 interrupts: GIC interrupt lines connected to PCI MSI interrupt lines
24
+ (required if the compatible is "ti,keystone-pcie")
25
+msi-map: As specified in Documentation/devicetree/bindings/pci/pci-msi.txt
26
+ (required if the compatible is "ti,am654-pcie-rc".
27
+
28
+ti,syscon-pcie-id : phandle to the device control module required to set device
29
+ id and vendor id.
30
+ti,syscon-pcie-mode : phandle to the device control module required to configure
31
+ PCI in either RC mode or EP mode.
2132
2233 Example:
2334 pcie_msi_intc: msi-interrupt-controller {
....@@ -58,3 +69,47 @@
5869 DesignWare DT Properties not applicable for Keystone PCI
5970
6071 1. pcie_bus clock-names not used. Instead, a phandle to phys is used.
72
+
73
+AM654 PCIe Endpoint
74
+===================
75
+
76
+Required Properties:-
77
+
78
+compatibility: Should be "ti,am654-pcie-ep" for EP on AM654x SoC
79
+reg: Four register ranges as listed in the reg-names property
80
+reg-names: "dbics" for the DesignWare PCIe registers, "app" for the
81
+ TI specific application registers, "atu" for the
82
+ Address Translation Unit configuration registers and
83
+ "addr_space" used to map remote RC address space
84
+num-ib-windows: As specified in
85
+ Documentation/devicetree/bindings/pci/designware-pcie.txt
86
+num-ob-windows: As specified in
87
+ Documentation/devicetree/bindings/pci/designware-pcie.txt
88
+num-lanes: As specified in
89
+ Documentation/devicetree/bindings/pci/designware-pcie.txt
90
+power-domains: As documented by the generic PM domain bindings in
91
+ Documentation/devicetree/bindings/power/power_domain.txt.
92
+ti,syscon-pcie-mode: phandle to the device control module required to configure
93
+ PCI in either RC mode or EP mode.
94
+
95
+Optional properties:-
96
+
97
+phys: list of PHY specifiers (used by generic PHY framework)
98
+phy-names: must be "pcie-phy0", "pcie-phy1", "pcie-phyN".. based on the
99
+ number of lanes as specified in *num-lanes* property.
100
+("phys" and "phy-names" DT bindings are specified in
101
+Documentation/devicetree/bindings/phy/phy-bindings.txt)
102
+interrupts: platform interrupt for error interrupts.
103
+
104
+pcie-ep {
105
+ compatible = "ti,am654-pcie-ep";
106
+ reg = <0x5500000 0x1000>, <0x5501000 0x1000>,
107
+ <0x10000000 0x8000000>, <0x5506000 0x1000>;
108
+ reg-names = "app", "dbics", "addr_space", "atu";
109
+ power-domains = <&k3_pds 120>;
110
+ ti,syscon-pcie-mode = <&pcie0_mode>;
111
+ num-lanes = <1>;
112
+ num-ib-windows = <16>;
113
+ num-ob-windows = <16>;
114
+ interrupts = <GIC_SPI 340 IRQ_TYPE_EDGE_RISING>;
115
+};