designware-pcie.txt 2.02 KB
Newer Older
1
* Synopsys DesignWare PCIe interface
2 3

Required properties:
4 5
- compatible:
	"snps,dw-pcie" for RC mode;
6 7 8 9
- reg: Should contain the configuration address space.
- reg-names: Must be "config" for the PCIe configuration space.
    (The old way of getting the configuration address space from "ranges"
    is deprecated and should be avoided.)
10 11
- num-lanes: number of lanes to use
RC mode:
12 13 14 15 16
- #address-cells: set to <3>
- #size-cells: set to <2>
- device_type: set to "pci"
- ranges: ranges for the PCI memory and I/O regions
- #interrupt-cells: set to <1>
17 18
- interrupt-map-mask and interrupt-map: standard PCI
	properties to define the mapping of the PCIe interface to interrupt
19
	numbers.
20
EP mode:
21 22
- num-ib-windows: number of inbound address translation windows
- num-ob-windows: number of outbound address translation windows
23 24

Optional properties:
25 26
- num-lanes: number of lanes to use (this property should be specified unless
  the link is brought already up in BIOS)
27
- reset-gpio: GPIO pin number of power good signal
28 29 30 31 32
- clocks: Must contain an entry for each entry in clock-names.
	See ../clocks/clock-bindings.txt for details.
- clock-names: Must include the following entries:
	- "pcie"
	- "pcie_bus"
33
RC mode:
34 35 36 37 38 39
- num-viewport: number of view ports configured in hardware. If a platform
  does not specify it, the driver assumes 2.
- bus-range: PCI bus numbers covered (it is recommended for new devicetrees
  to specify this property, to keep backwards compatibility a range of
  0x00-0xff is assumed if not present)

40
EP mode:
41
- max-functions: maximum number of functions that can be configured
42 43 44

Example configuration:

45
	pcie: pcie@dfc00000 {
46
		compatible = "snps,dw-pcie";
47 48 49
		reg = <0xdfc00000 0x0001000>, /* IP registers */
		      <0xd0000000 0x0002000>; /* Configuration space */
		reg-names = "dbi", "config";
50 51 52 53 54 55 56 57 58
		#address-cells = <3>;
		#size-cells = <2>;
		device_type = "pci";
		ranges = <0x81000000 0 0x00000000 0xde000000 0 0x00010000
			  0x82000000 0 0xd0400000 0xd0400000 0 0x0d000000>;
		interrupts = <25>, <24>;
		#interrupt-cells = <1>;
		num-lanes = <1>;
	};