forked from Minki/linux
4f2ebe0059
This allows to explicitly specify the covered bus numbers in the devicetree, which will come in handy once we see a SoC with more than one PCIe host controller instance. Previously the driver relied on the behavior of pci_scan_root_bus() to fill in a range of 0x00-0xff if no valid range was found. We fall back to the same range if no valid DT entry was found to keep backwards compatibility, but now do it explicitly. [bhelgaas: use %pR in error message to avoid duplication] Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Pratyush Anand <pratyush.anand@st.com> Acked-by: Mohit Kumar <mohit.kumar@st.com>
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
* Synopsys Designware PCIe interface
|
|
|
|
Required properties:
|
|
- compatible: should contain "snps,dw-pcie" to identify the core.
|
|
- 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.)
|
|
- #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>
|
|
- interrupt-map-mask and interrupt-map: standard PCI properties
|
|
to define the mapping of the PCIe interface to interrupt
|
|
numbers.
|
|
- num-lanes: number of lanes to use
|
|
- 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"
|
|
|
|
Optional properties:
|
|
- reset-gpio: gpio pin number of power good signal
|
|
- 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)
|