1*c66ec88fSEmmanuel Vadot* Synopsys DesignWare PCIe interface 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired properties: 4*c66ec88fSEmmanuel Vadot- compatible: 5*c66ec88fSEmmanuel Vadot "snps,dw-pcie" for RC mode; 6*c66ec88fSEmmanuel Vadot "snps,dw-pcie-ep" for EP mode; 7*c66ec88fSEmmanuel Vadot- reg: For designware cores version < 4.80 contains the configuration 8*c66ec88fSEmmanuel Vadot address space. For designware core version >= 4.80, contains 9*c66ec88fSEmmanuel Vadot the configuration and ATU address space 10*c66ec88fSEmmanuel Vadot- reg-names: Must be "config" for the PCIe configuration space and "atu" for 11*c66ec88fSEmmanuel Vadot the ATU address space. 12*c66ec88fSEmmanuel Vadot (The old way of getting the configuration address space from "ranges" 13*c66ec88fSEmmanuel Vadot is deprecated and should be avoided.) 14*c66ec88fSEmmanuel VadotRC mode: 15*c66ec88fSEmmanuel Vadot- #address-cells: set to <3> 16*c66ec88fSEmmanuel Vadot- #size-cells: set to <2> 17*c66ec88fSEmmanuel Vadot- device_type: set to "pci" 18*c66ec88fSEmmanuel Vadot- ranges: ranges for the PCI memory and I/O regions 19*c66ec88fSEmmanuel Vadot- #interrupt-cells: set to <1> 20*c66ec88fSEmmanuel Vadot- interrupt-map-mask and interrupt-map: standard PCI 21*c66ec88fSEmmanuel Vadot properties to define the mapping of the PCIe interface to interrupt 22*c66ec88fSEmmanuel Vadot numbers. 23*c66ec88fSEmmanuel VadotEP mode: 24*c66ec88fSEmmanuel Vadot- num-ib-windows: number of inbound address translation windows 25*c66ec88fSEmmanuel Vadot- num-ob-windows: number of outbound address translation windows 26*c66ec88fSEmmanuel Vadot 27*c66ec88fSEmmanuel VadotOptional properties: 28*c66ec88fSEmmanuel Vadot- num-lanes: number of lanes to use (this property should be specified unless 29*c66ec88fSEmmanuel Vadot the link is brought already up in BIOS) 30*c66ec88fSEmmanuel Vadot- reset-gpio: GPIO pin number of power good signal 31*c66ec88fSEmmanuel Vadot- clocks: Must contain an entry for each entry in clock-names. 32*c66ec88fSEmmanuel Vadot See ../clocks/clock-bindings.txt for details. 33*c66ec88fSEmmanuel Vadot- clock-names: Must include the following entries: 34*c66ec88fSEmmanuel Vadot - "pcie" 35*c66ec88fSEmmanuel Vadot - "pcie_bus" 36*c66ec88fSEmmanuel Vadot- snps,enable-cdm-check: This is a boolean property and if present enables 37*c66ec88fSEmmanuel Vadot automatic checking of CDM (Configuration Dependent Module) registers 38*c66ec88fSEmmanuel Vadot for data corruption. CDM registers include standard PCIe configuration 39*c66ec88fSEmmanuel Vadot space registers, Port Logic registers, DMA and iATU (internal Address 40*c66ec88fSEmmanuel Vadot Translation Unit) registers. 41*c66ec88fSEmmanuel VadotRC mode: 42*c66ec88fSEmmanuel Vadot- num-viewport: number of view ports configured in hardware. If a platform 43*c66ec88fSEmmanuel Vadot does not specify it, the driver assumes 2. 44*c66ec88fSEmmanuel Vadot- bus-range: PCI bus numbers covered (it is recommended for new devicetrees 45*c66ec88fSEmmanuel Vadot to specify this property, to keep backwards compatibility a range of 46*c66ec88fSEmmanuel Vadot 0x00-0xff is assumed if not present) 47*c66ec88fSEmmanuel Vadot 48*c66ec88fSEmmanuel VadotEP mode: 49*c66ec88fSEmmanuel Vadot- max-functions: maximum number of functions that can be configured 50*c66ec88fSEmmanuel Vadot 51*c66ec88fSEmmanuel VadotExample configuration: 52*c66ec88fSEmmanuel Vadot 53*c66ec88fSEmmanuel Vadot pcie: pcie@dfc00000 { 54*c66ec88fSEmmanuel Vadot compatible = "snps,dw-pcie"; 55*c66ec88fSEmmanuel Vadot reg = <0xdfc00000 0x0001000>, /* IP registers */ 56*c66ec88fSEmmanuel Vadot <0xd0000000 0x0002000>; /* Configuration space */ 57*c66ec88fSEmmanuel Vadot reg-names = "dbi", "config"; 58*c66ec88fSEmmanuel Vadot #address-cells = <3>; 59*c66ec88fSEmmanuel Vadot #size-cells = <2>; 60*c66ec88fSEmmanuel Vadot device_type = "pci"; 61*c66ec88fSEmmanuel Vadot ranges = <0x81000000 0 0x00000000 0xde000000 0 0x00010000 62*c66ec88fSEmmanuel Vadot 0x82000000 0 0xd0400000 0xd0400000 0 0x0d000000>; 63*c66ec88fSEmmanuel Vadot interrupts = <25>, <24>; 64*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 65*c66ec88fSEmmanuel Vadot num-lanes = <1>; 66*c66ec88fSEmmanuel Vadot }; 67*c66ec88fSEmmanuel Vadotor 68*c66ec88fSEmmanuel Vadot pcie: pcie@dfc00000 { 69*c66ec88fSEmmanuel Vadot compatible = "snps,dw-pcie-ep"; 70*c66ec88fSEmmanuel Vadot reg = <0xdfc00000 0x0001000>, /* IP registers 1 */ 71*c66ec88fSEmmanuel Vadot <0xdfc01000 0x0001000>, /* IP registers 2 */ 72*c66ec88fSEmmanuel Vadot <0xd0000000 0x2000000>; /* Configuration space */ 73*c66ec88fSEmmanuel Vadot reg-names = "dbi", "dbi2", "addr_space"; 74*c66ec88fSEmmanuel Vadot num-ib-windows = <6>; 75*c66ec88fSEmmanuel Vadot num-ob-windows = <2>; 76*c66ec88fSEmmanuel Vadot num-lanes = <1>; 77*c66ec88fSEmmanuel Vadot }; 78