Synopsys DesignWare PCIe interface
Schema identifier ($id): "http://devicetree.org/schemas/pci/snps,dw-pcie.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jingoo Han <jingoohan1@gmail.com>", "Gustavo Pimentel <gustavo.pimentel@synopsys.com>"
Synopsys DesignWare PCIe host controller
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Exact value (
const):"snps,dw-pcie"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/pci/pci-host-bridge.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/pci/snps,dw-pcie-common.yaml#
Rule 3 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #Properties and child nodes (
properties)
interrupt-names— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"msi"
Properties and child nodes (properties) #
reg — required here #
At least DBI reg-space and peripheral devices CFG-space outbound window are required for the normal controller work. iATU memory IO region is also required if the space is unrolled (IP-core version >= 4.80a).
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 7
reg-names — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 7
Array item rules (items) #
Exactly one of these rules must match (
oneOf)Rule 1
Basic DWC PCIe controller configuration-space accessible over the DBI interface. This memory space is either activated with CDM/ELBI = 0 and CS2 = 0 or is a contiguous memory region with all spaces. Note iATU/eDMA CSRs are indirectly accessible via the PL viewports on the DWC PCIe controllers older than v4.80a.
Exact value (
const):"dbi"Rule 2
Shadow DWC PCIe config-space registers. This space is selected by setting CDM/ELBI = 0 and CS2 = 1. This is an intermix of the PCI-SIG PCIe CFG-space with the shadow registers for some PCI Header space, PCI Standard and Extended Structures. It's mainly relevant for the end-point controller configuration, but still there are some shadow registers available for the Root Port mode too.
Exact value (
const):"dbi2"Rule 3
External Local Bus registers. It's an application-dependent registers normally defined by the platform engineers. The space can be selected by setting CDM/ELBI = 1 and CS2 = 0 wires or can be accessed over some platform-specific means (for instance as a part of a system controller).
Rule 4
iATU/eDMA registers common for all device functions. It's an unrolled memory space with the internal Address Translation Unit and Enhanced DMA, which is selected by setting CDM/ELBI = 1 and CS2 = 1. For IP-core releases prior v4.80a, these registers have been programmed via an indirect addressing scheme using a set of viewport CSRs mapped into the PL space. Note iATU is normally mapped to the 0x0 address of this region, while eDMA is available at 0x80000 base address.
Exact value (
const):"atu"Rule 5
Platform-specific eDMA registers. Some platforms may have eDMA CSRs mapped in a non-standard base address. The registers offset can be changed or the MS/LS-bits of the address can be attached in an additional RTL block before the MEM-IO transactions reach the DW PCIe slave interface.
Exact value (
const):"dma"Rule 6
PHY/PCS configuration registers. Some platforms can have the PCS and PHY CSRs accessible over a dedicated memory mapped region, but mainly these registers are indirectly accessible either by means of the embedded PHY viewport schema or by some platform-specific method.
Exact value (
const):"phy"Rule 7
Outbound iATU-capable memory-region which will be used to access the peripheral PCIe devices configuration space.
Exact value (
const):"config"Rule 8
Vendor-specific CSR names. Consider using the generic names above for new bindings.
Exactly one of these rules must match (
oneOf)Rule 1
See native 'dbi' CSR region for details.
Rule 2
See native 'elbi/app' CSR region for details.
Allowed values (
enum):"apb","mgmt","link","ulreg","appl","controller"Rule 3
See native 'atu' CSR region for details.
Rule 4
Syscon-related CSR regions.
Rule 5
Tegra234 aperture
Rule 6
AMD MDB PCIe SLCR region
Exact value (
const):"slcr"
All of these rules must match (allOf) #
Rule 1
Rule for matching array elements (
contains)
Rule 2
Rule for matching array elements (
contains)Exact value (
const):"config"
interrupts — not listed as required here #
DWC PCIe Root Port/Complex specific IRQ signals. At least MSI interrupt signal is supposed to be specified for the host controller.
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
Array item rules (items) #
Exactly one of these rules must match (
oneOf)Rule 1
Controller request to read or write virtual product data from/to the VPD capability registers.
Exact value (
const):"vpd"Rule 2
Link Equalization Request flag is set in the Link Status 2 register (applicable if the corresponding IRQ is enabled in the Link Control 3 register).
Exact value (
const):"l_eq"Rule 3
Indicates that the eDMA Tx/Rx transfer is complete or that an error has occurred on the corresponding channel. eDMA can have eight Tx (Write) and Rx (Read) eDMA channels thus supporting up to 16 IRQ signals all together. Write eDMA channels shall go first in the ordered row as per default edma_int[*] bus setup.
String pattern (
pattern):"^dma([0-9]|1[0-5])?$"Rule 4
PCIe protocol correctable error or a Data Path protection correctable error is detected by the automotive/safety feature.
Exact value (
const):"sft_ce"Rule 5
Indicates that the internal safety mechanism has detected an uncorrectable error.
Exact value (
const):"sft_ue"Rule 6
Application-specific IRQ raised depending on the vendor-specific events basis.
Exact value (
const):"app"Rule 7
DSP AXI MSI Interrupt detected. It gets de-asserted when there is no more MSI interrupt pending. The interrupt is relevant to the iMSI-RX - Integrated MSI Receiver (AXI bridge).
Exact value (
const):"msi"Rule 8
Legacy A/B/C/D interrupt signal. Basically it's triggered by receiving a Assert_INT{A,B,C,D}/Desassert_INT{A,B,C,D} message from the downstream device.
String pattern (
pattern):"^int(a|b|c|d)$"Rule 9
Error condition detected and a flag is set in the Root Error Status register of the AER capability. It's asserted when the RC internally generated an error or an error message is received by the RC.
Exact value (
const):"aer"Rule 10
PME message is received by the port. That means having the PME status bit set in the Root Status register (the event is supposed to be unmasked in the Root Control register).
Exact value (
const):"pme"Rule 11
Hot-plug event is detected. That is a bit has been set in the Slot Status register and the corresponding event is enabled in the Slot Control register.
Exact value (
const):"hp"Rule 12
Link Autonomous Bandwidth Status flag has been set in the Link Status register (the event is supposed to be unmasked in the Link Control register).
Exact value (
const):"bw_au"Rule 13
Bandwidth Management Status flag has been set in the Link Status register (the event is supposed to be unmasked in the Link Control register).
Exact value (
const):"bw_mg"Rule 14
Combined Legacy A/B/C/D interrupt signal. See "^int(a|b|c|d)$" for details.
Exact value (
const):"legacy"Rule 15
Vendor-specific IRQ names. Consider using the generic names above for new bindings.
Exactly one of these rules must match (
oneOf)Rule 1
See native "app" IRQ for details
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Required in this object (required): "compatible", "reg", "reg-names"
Examples (examples) #
pcie@dfc00000 {
compatible = "snps,dw-pcie";
device_type = "pci";
reg = <0xdfc00000 0x0001000>, /* IP registers */
<0xd0000000 0x0002000>; /* Configuration space */
reg-names = "dbi", "config";
#address-cells = <3>;
#size-cells = <2>;
ranges = <0x81000000 0 0x00000000 0xde000000 0 0x00010000>,
<0x82000000 0 0xd0400000 0xd0400000 0 0x0d000000>;
bus-range = <0x0 0xff>;
interrupts = <25>, <24>;
interrupt-names = "msi", "hp";
reset-gpios = <&port0 0 1>;
phys = <&pcie_phy>;
phy-names = "pcie";
num-lanes = <1>;
max-link-speed = <3>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 16: Please create a separate DT-schema for your DWC PCIe Root Port controller
Line 17: and make sure it's assigned with the vendor-specific compatible string.