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

Required properties:
4
- compatible: should contain "snps,dw-pcie" to identify the core.
5 6 7 8
- 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.)
9 10
- num-lanes: number of lanes to use
RC mode:
11 12 13 14 15
- #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>
16 17
- interrupt-map-mask and interrupt-map: standard PCI
	properties to define the mapping of the PCIe interface to interrupt
18
	numbers.
19
EP mode:
20 21
- num-ib-windows: number of inbound address translation windows
- num-ob-windows: number of outbound address translation windows
M
Marek Vasut 已提交
22 23

Optional properties:
24 25
- num-lanes: number of lanes to use (this property should be specified unless
  the link is brought already up in BIOS)
26
- reset-gpio: GPIO pin number of power good signal
27 28 29 30 31
- 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"
32
RC mode:
33 34 35 36 37 38
- 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)

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

Example configuration:

44
	pcie: pcie@dffff000 {
45 46 47 48 49 50 51 52 53 54 55 56
		compatible = "snps,dw-pcie";
		reg = <0xdffff000 0x1000>, /* Controller registers */
		      <0xd0000000 0x2000>; /* PCI config space */
		reg-names = "ctrlreg", "config";
		#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>;
57
		num-viewport = <3>;
58
	};