2017-09-02 05:35:50 +08:00
|
|
|
* Synopsys DesignWare PCIe interface
|
2013-06-21 15:24:54 +08:00
|
|
|
|
|
|
|
Required properties:
|
2014-06-03 22:44:25 +08:00
|
|
|
- compatible: should contain "snps,dw-pcie" to identify the core.
|
2014-07-17 17:00:40 +08:00
|
|
|
- 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.)
|
2017-03-27 17:45:06 +08:00
|
|
|
- num-lanes: number of lanes to use
|
|
|
|
RC mode:
|
2013-06-21 15:24:54 +08:00
|
|
|
- #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>
|
2017-03-27 17:45:06 +08:00
|
|
|
- interrupt-map-mask and interrupt-map: standard PCI
|
|
|
|
properties to define the mapping of the PCIe interface to interrupt
|
2013-06-21 15:24:54 +08:00
|
|
|
numbers.
|
2017-03-27 17:45:06 +08:00
|
|
|
EP mode:
|
2017-09-02 05:35:50 +08:00
|
|
|
- num-ib-windows: number of inbound address translation windows
|
|
|
|
- num-ob-windows: number of outbound address translation windows
|
2013-12-13 05:49:58 +08:00
|
|
|
|
|
|
|
Optional properties:
|
2015-09-29 00:03:10 +08:00
|
|
|
- num-lanes: number of lanes to use (this property should be specified unless
|
|
|
|
the link is brought already up in BIOS)
|
2017-09-02 05:35:50 +08:00
|
|
|
- reset-gpio: GPIO pin number of power good signal
|
2015-11-03 04:46:53 +08:00
|
|
|
- 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"
|
2017-03-27 17:45:06 +08:00
|
|
|
RC mode:
|
2017-09-02 05:35:50 +08:00
|
|
|
- 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)
|
|
|
|
|
2017-03-27 17:45:06 +08:00
|
|
|
EP mode:
|
2017-09-02 05:35:50 +08:00
|
|
|
- max-functions: maximum number of functions that can be configured
|
2016-03-11 04:44:52 +08:00
|
|
|
|
|
|
|
Example configuration:
|
|
|
|
|
2016-04-13 04:01:34 +08:00
|
|
|
pcie: pcie@dffff000 {
|
2016-03-11 04:44:52 +08:00
|
|
|
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>;
|
2016-07-05 00:14:42 +08:00
|
|
|
num-viewport = <3>;
|
2016-03-11 04:44:52 +08:00
|
|
|
};
|