1*c66ec88fSEmmanuel VadotTI Keystone PCIe interface 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotKeystone PCI host Controller is based on the Synopsys DesignWare PCI 4*c66ec88fSEmmanuel Vadothardware version 3.65. It shares common functions with the PCIe DesignWare 5*c66ec88fSEmmanuel Vadotcore driver and inherits common properties defined in 6*c66ec88fSEmmanuel VadotDocumentation/devicetree/bindings/pci/designware-pcie.txt 7*c66ec88fSEmmanuel Vadot 8*c66ec88fSEmmanuel VadotPlease refer to Documentation/devicetree/bindings/pci/designware-pcie.txt 9*c66ec88fSEmmanuel Vadotfor the details of DesignWare DT bindings. Additional properties are 10*c66ec88fSEmmanuel Vadotdescribed here as well as properties that are not applicable. 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel VadotRequired Properties:- 13*c66ec88fSEmmanuel Vadot 14*c66ec88fSEmmanuel Vadotcompatibility: Should be "ti,keystone-pcie" for RC on Keystone2 SoC 15*c66ec88fSEmmanuel Vadot Should be "ti,am654-pcie-rc" for RC on AM654x SoC 16*c66ec88fSEmmanuel Vadotreg: Three register ranges as listed in the reg-names property 17*c66ec88fSEmmanuel Vadotreg-names: "dbics" for the DesignWare PCIe registers, "app" for the 18*c66ec88fSEmmanuel Vadot TI specific application registers, "config" for the 19*c66ec88fSEmmanuel Vadot configuration space address 20*c66ec88fSEmmanuel Vadot 21*c66ec88fSEmmanuel Vadotpcie_msi_intc : Interrupt controller device node for MSI IRQ chip 22*c66ec88fSEmmanuel Vadot interrupt-cells: should be set to 1 23*c66ec88fSEmmanuel Vadot interrupts: GIC interrupt lines connected to PCI MSI interrupt lines 24*c66ec88fSEmmanuel Vadot (required if the compatible is "ti,keystone-pcie") 25*c66ec88fSEmmanuel Vadotmsi-map: As specified in Documentation/devicetree/bindings/pci/pci-msi.txt 26*c66ec88fSEmmanuel Vadot (required if the compatible is "ti,am654-pcie-rc". 27*c66ec88fSEmmanuel Vadot 28*c66ec88fSEmmanuel Vadotti,syscon-pcie-id : phandle to the device control module required to set device 29*c66ec88fSEmmanuel Vadot id and vendor id. 30*c66ec88fSEmmanuel Vadotti,syscon-pcie-mode : phandle to the device control module required to configure 31*c66ec88fSEmmanuel Vadot PCI in either RC mode or EP mode. 32*c66ec88fSEmmanuel Vadot 33*c66ec88fSEmmanuel Vadot Example: 34*c66ec88fSEmmanuel Vadot pcie_msi_intc: msi-interrupt-controller { 35*c66ec88fSEmmanuel Vadot interrupt-controller; 36*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 37*c66ec88fSEmmanuel Vadot interrupt-parent = <&gic>; 38*c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 30 IRQ_TYPE_EDGE_RISING>, 39*c66ec88fSEmmanuel Vadot <GIC_SPI 31 IRQ_TYPE_EDGE_RISING>, 40*c66ec88fSEmmanuel Vadot <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>, 41*c66ec88fSEmmanuel Vadot <GIC_SPI 33 IRQ_TYPE_EDGE_RISING>, 42*c66ec88fSEmmanuel Vadot <GIC_SPI 34 IRQ_TYPE_EDGE_RISING>, 43*c66ec88fSEmmanuel Vadot <GIC_SPI 35 IRQ_TYPE_EDGE_RISING>, 44*c66ec88fSEmmanuel Vadot <GIC_SPI 36 IRQ_TYPE_EDGE_RISING>, 45*c66ec88fSEmmanuel Vadot <GIC_SPI 37 IRQ_TYPE_EDGE_RISING>; 46*c66ec88fSEmmanuel Vadot }; 47*c66ec88fSEmmanuel Vadot 48*c66ec88fSEmmanuel Vadotpcie_intc: Interrupt controller device node for Legacy IRQ chip 49*c66ec88fSEmmanuel Vadot interrupt-cells: should be set to 1 50*c66ec88fSEmmanuel Vadot 51*c66ec88fSEmmanuel Vadot Example: 52*c66ec88fSEmmanuel Vadot pcie_intc: legacy-interrupt-controller { 53*c66ec88fSEmmanuel Vadot interrupt-controller; 54*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 55*c66ec88fSEmmanuel Vadot interrupt-parent = <&gic>; 56*c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>, 57*c66ec88fSEmmanuel Vadot <GIC_SPI 27 IRQ_TYPE_EDGE_RISING>, 58*c66ec88fSEmmanuel Vadot <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>, 59*c66ec88fSEmmanuel Vadot <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>; 60*c66ec88fSEmmanuel Vadot }; 61*c66ec88fSEmmanuel Vadot 62*c66ec88fSEmmanuel VadotOptional properties:- 63*c66ec88fSEmmanuel Vadot phys: phandle to generic Keystone SerDes PHY for PCI 64*c66ec88fSEmmanuel Vadot phy-names: name of the generic Keystone SerDes PHY for PCI 65*c66ec88fSEmmanuel Vadot - If boot loader already does PCI link establishment, then phys and 66*c66ec88fSEmmanuel Vadot phy-names shouldn't be present. 67*c66ec88fSEmmanuel Vadot interrupts: platform interrupt for error interrupts. 68*c66ec88fSEmmanuel Vadot 69*c66ec88fSEmmanuel VadotDesignWare DT Properties not applicable for Keystone PCI 70*c66ec88fSEmmanuel Vadot 71*c66ec88fSEmmanuel Vadot1. pcie_bus clock-names not used. Instead, a phandle to phys is used. 72*c66ec88fSEmmanuel Vadot 73*c66ec88fSEmmanuel VadotAM654 PCIe Endpoint 74*c66ec88fSEmmanuel Vadot=================== 75*c66ec88fSEmmanuel Vadot 76*c66ec88fSEmmanuel VadotRequired Properties:- 77*c66ec88fSEmmanuel Vadot 78*c66ec88fSEmmanuel Vadotcompatibility: Should be "ti,am654-pcie-ep" for EP on AM654x SoC 79*c66ec88fSEmmanuel Vadotreg: Four register ranges as listed in the reg-names property 80*c66ec88fSEmmanuel Vadotreg-names: "dbics" for the DesignWare PCIe registers, "app" for the 81*c66ec88fSEmmanuel Vadot TI specific application registers, "atu" for the 82*c66ec88fSEmmanuel Vadot Address Translation Unit configuration registers and 83*c66ec88fSEmmanuel Vadot "addr_space" used to map remote RC address space 84*c66ec88fSEmmanuel Vadotnum-ib-windows: As specified in 85*c66ec88fSEmmanuel Vadot Documentation/devicetree/bindings/pci/designware-pcie.txt 86*c66ec88fSEmmanuel Vadotnum-ob-windows: As specified in 87*c66ec88fSEmmanuel Vadot Documentation/devicetree/bindings/pci/designware-pcie.txt 88*c66ec88fSEmmanuel Vadotnum-lanes: As specified in 89*c66ec88fSEmmanuel Vadot Documentation/devicetree/bindings/pci/designware-pcie.txt 90*c66ec88fSEmmanuel Vadotpower-domains: As documented by the generic PM domain bindings in 91*c66ec88fSEmmanuel Vadot Documentation/devicetree/bindings/power/power_domain.txt. 92*c66ec88fSEmmanuel Vadotti,syscon-pcie-mode: phandle to the device control module required to configure 93*c66ec88fSEmmanuel Vadot PCI in either RC mode or EP mode. 94*c66ec88fSEmmanuel Vadot 95*c66ec88fSEmmanuel VadotOptional properties:- 96*c66ec88fSEmmanuel Vadot 97*c66ec88fSEmmanuel Vadotphys: list of PHY specifiers (used by generic PHY framework) 98*c66ec88fSEmmanuel Vadotphy-names: must be "pcie-phy0", "pcie-phy1", "pcie-phyN".. based on the 99*c66ec88fSEmmanuel Vadot number of lanes as specified in *num-lanes* property. 100*c66ec88fSEmmanuel Vadot("phys" and "phy-names" DT bindings are specified in 101*c66ec88fSEmmanuel VadotDocumentation/devicetree/bindings/phy/phy-bindings.txt) 102*c66ec88fSEmmanuel Vadotinterrupts: platform interrupt for error interrupts. 103*c66ec88fSEmmanuel Vadot 104*c66ec88fSEmmanuel Vadotpcie-ep { 105*c66ec88fSEmmanuel Vadot compatible = "ti,am654-pcie-ep"; 106*c66ec88fSEmmanuel Vadot reg = <0x5500000 0x1000>, <0x5501000 0x1000>, 107*c66ec88fSEmmanuel Vadot <0x10000000 0x8000000>, <0x5506000 0x1000>; 108*c66ec88fSEmmanuel Vadot reg-names = "app", "dbics", "addr_space", "atu"; 109*c66ec88fSEmmanuel Vadot power-domains = <&k3_pds 120>; 110*c66ec88fSEmmanuel Vadot ti,syscon-pcie-mode = <&pcie0_mode>; 111*c66ec88fSEmmanuel Vadot num-lanes = <1>; 112*c66ec88fSEmmanuel Vadot num-ib-windows = <16>; 113*c66ec88fSEmmanuel Vadot num-ob-windows = <16>; 114*c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 340 IRQ_TYPE_EDGE_RISING>; 115*c66ec88fSEmmanuel Vadot}; 116