i.MX8M DDR Controller
Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/fsl/imx8m-ddrc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peng Fan <peng.fan@nxp.com>"
The DDRC block is integrated in i.MX8M for interfacing with DDR based memories. It supports switching between different frequencies at runtime but during this process RAM itself becomes briefly inaccessible so actual frequency switching is implemented by TF-A code which runs from a SRAM area. The Linux driver for the DDRC doesn't even map registers (they're included for the sake of "describing hardware"), it mostly just exposes firmware capabilities through standard Linux mechanism like devfreq and OPP tables.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"fsl,imx8mn-ddrc","fsl,imx8mm-ddrc","fsl,imx8mq-ddrc"
Item 2
Exact value (
const):"fsl,imx8m-ddrc"
reg — required here #
Maximum number of items (maxItems): 1
Base address and size of DDRC CTL area. This is not currently mapped by the imx8m-ddrc driver.
clocks — required here #
Maximum number of items (maxItems): 4
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"pll"
Item 3
Exact value (
const):"alt"
Item 4
Exact value (
const):"apb"
operating-points-v2 — not listed as required here #
true — No constraints added by this property rule.
opp-table — not listed as required here #
Value type (type): "object"
Required in this object (required): "reg", "compatible", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx8mm-clock.h>
ddrc: memory-controller@3d400000 {
compatible = "fsl,imx8mm-ddrc", "fsl,imx8m-ddrc";
reg = <0x3d400000 0x400000>;
clock-names = "core", "pll", "alt", "apb";
clocks = <&clk IMX8MM_CLK_DRAM_CORE>,
<&clk IMX8MM_DRAM_PLL>,
<&clk IMX8MM_CLK_DRAM_ALT>,
<&clk IMX8MM_CLK_DRAM_APB>;
operating-points-v2 = <&ddrc_opp_table>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0