Synopsys DesignWare Universal Multi-Protocol Memory Controller

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/snps,dw-umctl2-ddrc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Michal Simek <michal.simek@amd.com>"

Synopsys DesignWare Enhanced uMCTL2 DDR Memory Controller is capable of working with the memory devices supporting up to (LP)DDR4 protocol. It can be equipped with SEC/DEC ECC feature if DRAM data bus width is either 16-bits or 32-bits or 64-bits wide.

For instance the ZynqMP DDR controller is based on the DW uMCTL2 v2.40a controller. It has an optional SEC/DEC ECC support in 64- and 32-bits bus width configurations.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Deprecated (deprecated): true

Synopsys DW uMCTL2 DDR controller v3.80a

Exact value (const): "snps,ddrc-3.80a"

Rule 2

Synopsys DW uMCTL2 DDR controller

Exact value (const): "snps,dw-umctl2-ddrc"

Rule 3

Xilinx ZynqMP DDR controller v2.40a

Exact value (const): "xlnx,zynqmp-ddrc-2.40a"

interrupts — required here #

DW uMCTL2 DDRC IP-core provides individual IRQ signal for each event":" ECC Corrected Error, ECC Uncorrected Error, ECC Address Protection, Scrubber-Done signal, DFI Parity/CRC Error. Some platforms may have the signals merged before they reach the IRQ controller or have some of them absent in case if the corresponding feature is unavailable/disabled.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

interrupt-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

Exactly one of these rules must match (oneOf) #

Rule 1

Common ECC CE/UE/Scrubber/DFI Errors IRQ

Array item rules (items)

Item 1

Exact value (const): "ecc"

Rule 2

Individual ECC CE/UE/Scrubber/DFI Errors IRQs

Array item rules (items)

Allowed values (enum): "ecc_ce", "ecc_ue", "ecc_ap", "ecc_sbr", "dfi_e"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

A standard set of the clock sources contains CSRs bus clock, AXI-ports reference clock, DDRC core clock, Scrubber standalone clock (synchronous to the DDRC clock).

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): "pclk", "aclk", "core", "sbr"

resets — not listed as required here #

Each clock domain can have separate reset signal.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

reset-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): "prst", "arst", "core", "sbr"

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

memory-controller@fd070000 {
  compatible = "xlnx,zynqmp-ddrc-2.40a";
  reg = <0xfd070000 0x30000>;

  interrupt-parent = <&gic>;
  interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-names = "ecc";
};
#include <dt-bindings/interrupt-controller/irq.h>

memory-controller@3d400000 {
  compatible = "snps,dw-umctl2-ddrc";
  reg = <0x3d400000 0x400000>;

  interrupts = <147 IRQ_TYPE_LEVEL_HIGH>, <148 IRQ_TYPE_LEVEL_HIGH>,
               <149 IRQ_TYPE_LEVEL_HIGH>, <150 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-names = "ecc_ce", "ecc_ue", "ecc_sbr", "dfi_e";

  clocks = <&pclk>, <&aclk>, <&core_clk>, <&sbr_clk>;
  clock-names = "pclk", "aclk", "core", "sbr";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Edit this page