Synopsys DWC PCIe RP/EP controller
Schema identifier ($id): "http://devicetree.org/schemas/pci/snps,dw-pcie-common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jingoo Han <jingoohan1@gmail.com>", "Gustavo Pimentel <gustavo.pimentel@synopsys.com>"
Generic Synopsys DesignWare PCIe Root Port and Endpoint controller properties.
Automatic schema selection (select) #
false
Not selected automatically by this rule.
Properties and child nodes (properties) #
reg — not listed as required here #
DWC PCIe CSR space is normally accessed over the dedicated Data Bus Interface - DBI. In accordance with the reference manual the register configuration space belongs to the Configuration-Dependent Module (CDM) and is split up into several sub-parts Standard PCIe configuration space, Port Logic Registers (PL), Shadow Config-space Registers, iATU/eDMA registers. The particular sub-space is selected by the CDM/ELBI (dbi_cs) and CS2 (dbi_cs2) signals (selector bits). Such configuration provides a flexible interface for the system engineers to either map the particular space at a desired MMIO address or just leave them in a contiguous memory space if pure Native or AXI Bridge DBI access is selected. Note the PCIe CFG-space, PL and Shadow registers are specific for each activated function, while the rest of the sub-spaces are common for all of them (if there are more than one).
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 7
reg-names — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 7
interrupts — not listed as required here #
There are two main sub-blocks which are normally capable of generating interrupts. It's System Information Interface and MSI interface. While the former one has some common for the Host and Endpoint controllers IRQ-signals, the later interface is obviously Root Complex specific since it's responsible for the incoming MSI messages signalling. The System Information IRQ signals are mainly responsible for reporting the generic PCIe hierarchy and Root Complex events like VPD IO request, general AER, PME, Hot-plug, link bandwidth change, link equalization request, INTx asserted/deasserted Message detection, embedded DMA Tx/Rx/Error.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 26
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 26
clocks — not listed as required here #
DWC PCIe reference manual explicitly defines a set of the clocks required to get the controller working correctly. In general all of them can be divided into two groups':' application and core clocks. Note the platforms may have some of the clock sources unspecified in case if the corresponding domains are fed up from a common clock source.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 7
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 7
Array item rules (items) #
Exactly one of these rules must match (
oneOf)Rule 1
Data Bus Interface (DBI) clock. Clock signal for the AXI-bus interface of the Configuration-Dependent Module, which is basically the set of the controller CSRs.
Exact value (
const):"dbi"Rule 2
Application AXI-bus Master interface clock. Basically this is a clock for the controller DMA interface (PCI-to-CPU).
Exact value (
const):"mstr"Rule 3
Application AXI-bus Slave interface clock. This is a clock for the CPU-to-PCI memory IO interface.
Exact value (
const):"slv"Rule 4
Controller Core-PCS PIPE interface clock. It's normally supplied by an external PCS-PHY.
Exact value (
const):"pipe"Rule 5
Controller Primary clock. It's assumed that all controller input signals (except resets) are synchronous to this clock.
Exact value (
const):"core"Rule 6
Auxiliary clock for the controller PMC domain. The controller partitioning implies having some parts to operate with this clock in some power management states.
Exact value (
const):"aux"Rule 7
Generic reference clock. In case if there are several interfaces fed up with a common clock source it's advisable to define it with this name (for instance pipe, core and aux can be connected to a single source of the periodic signal).
Exact value (
const):"ref"Rule 8
Some dwc wrappers (like i.MX95 PCIes) have two reference clock inputs, one from an internal PLL, the other from an off-chip crystal oscillator. If present, 'extref' refers to a reference clock from an external oscillator.
Exact value (
const):"extref"Rule 9
Clock for the PHY registers interface. Originally this is a PHY-viewport-based interface, but some platform may have specifically designed one.
Exact value (
const):"phy_reg"Rule 10
Vendor-specific clock names. Consider using the generic names above for new bindings.
Exactly one of these rules must match (
oneOf)Rule 1
See native 'dbi' clock for details
Allowed values (
enum):"pcie","pcie_apb_sys","aclk_dbi","reg","port"Rule 2
See native 'mstr/slv' clock for details
Allowed values (
enum):"pcie_bus","pcie_inbound_axi","pcie_aclk","aclk_mst","aclk_slv"Rule 3
See native 'pipe' clock for details
Allowed values (
enum):"pcie_phy","pcie_phy_ref","link","general"Rule 4
See native 'aux' clock for details
Rule 5
See native 'ref' clock for details.
Rule 6
See nativs 'phy_reg' clock for details
resets — not listed as required here #
DWC PCIe reference manual explicitly defines a set of the reset signals required to be de-asserted to properly activate the controller sub-parts. All of these signals can be divided into two sub-groups':' application and core resets with respect to the main sub-domains they are supposed to reset. Note the platforms may have some of these signals unspecified in case if they are automatically handled or aggregated into a comprehensive control module.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 10
reset-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 10
Array item rules (items) #
Exactly one of these rules must match (
oneOf)Rule 1
Data Bus Interface (DBI) domain reset
Exact value (
const):"dbi"Rule 2
AXI-bus Master interface reset
Exact value (
const):"mstr"Rule 3
AXI-bus Slave interface reset
Exact value (
const):"slv"Rule 4
Application-dependent interface reset
Exact value (
const):"app"Rule 5
Controller Non-sticky CSR flags reset
Exact value (
const):"non-sticky"Rule 6
Controller sticky CSR flags reset
Exact value (
const):"sticky"Rule 7
PIPE-interface (Core-PCS) logic reset
Exact value (
const):"pipe"Rule 8
Controller primary reset (resets everything except PMC module)
Exact value (
const):"core"Rule 9
PCS/PHY block reset
Exact value (
const):"phy"Rule 10
PMC hot reset signal
Exact value (
const):"hot"Rule 11
Cold reset signal
Exact value (
const):"pwr"Rule 12
Vendor-specific reset names. Consider using the generic names above for new bindings.
Exactly one of these rules must match (
oneOf)Rule 1
See native 'app' reset for details
Rule 2
See native 'phy' reset for details
Rule 3
See native 'pwr' reset for details
phys — not listed as required here #
There can be up to the number of possible lanes PHYs specified placed in the phandle array in the line-based order. Obviously each the specified PHYs are supposed to be able to work in the PCIe mode with a speed implied by the DWC PCIe controller they are attached to.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
phy-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
Exactly one of these rules must match (oneOf) #
Rule 1
Generic PHY names
Array item rules (
items)String pattern (
pattern):"^pcie[0-9]+$"
Rule 2
Vendor-specific PHY names. Consider using the generic names above for new bindings.
Array item rules (
items)Exactly one of these rules must match (
oneOf)Rule 1
String pattern (
pattern):"^pcie(-?phy[0-9]*)?$"Rule 2
String pattern (
pattern):"^p2u-[0-7]$"Rule 3
String pattern (
pattern):"^cp[01]-pcie[0-2]-x[124](-lane[0-3])?-phy$"
reset-gpio — not listed as required here #
Deprecated (deprecated): true
Reference to the GPIO-controlled PERST# signal. It is used to reset all the peripheral devices available on the PCIe bus.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Reference to the GPIO-controlled PERST# signal. It is used to reset all the peripheral devices available on the PCIe bus.
Maximum number of items (maxItems): 1
max-link-speed — not listed as required here #
Maximum value (maximum): 5
num-lanes — not listed as required here #
Number of PCIe link lanes to use. Can be omitted if the already brought up link is supposed to be preserved.
Maximum value (maximum): 16
num-ob-windows — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Deprecated (deprecated): true
Number of outbound address translation windows. This parameter can be auto-detected based on the iATU memory writability. So there is no point in having a dedicated DT-property for it.
Maximum value (maximum): 256
num-ib-windows — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Deprecated (deprecated): true
Number of inbound address translation windows. In the same way as for the outbound AT windows, this parameter can be auto-detected based on the iATU memory writability. There is no point having a dedicated DT-property for it either.
Maximum value (maximum): 256
num-viewport — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Deprecated (deprecated): true
Number of outbound view ports configured in hardware. It's the same as the number of outbound AT windows.
Maximum value (maximum): 256
snps,enable-cdm-check — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable automatic checking of CDM (Configuration Dependent Module) registers for data corruption. CDM registers include standard PCIe configuration space registers, Port Logic registers, DMA and iATU registers. This feature has been available since DWC PCIe v4.80a.
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 210: marvell,armada8k-pcie