NVIDIA Tegra30 SoC Memory Controller
Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nvidia,tegra30-mc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Osipenko <digetx@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"
Tegra30 Memory Controller architecturally consists of the following parts:
Arbitration Domains, which can handle a single request or response per
clock from a group of clients. Typically, a system has a single Arbitration
Domain, but an implementation may divide the client space into multiple
Arbitration Domains to increase the effective system bandwidth.
Protocol Arbiter, which manage a related pool of memory devices. A system
may have a single Protocol Arbiter or multiple Protocol Arbiters.
Memory Crossbar, which routes request and responses between Arbitration
Domains and Protocol Arbiters. In the simplest version of the system, the
Memory Crossbar is just a pass through between a single Arbitration Domain
and a single Protocol Arbiter.
Global Resources, which include things like configuration registers which
are shared across the Memory Subsystem.
The Tegra30 Memory Controller handles memory requests from internal clients and arbitrates among them to allocate memory bandwidth for DDR3L and LPDDR2 SDRAMs.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nvidia,tegra30-mc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mc"
interrupts — required here #
Maximum number of items (maxItems): 1
#reset-cells — required here #
Exact value (const): 1
#iommu-cells — required here #
Exact value (const): 1
#interconnect-cells — required here #
Exact value (const): 1
Properties matching a name pattern (patternProperties) #
^emc-timings-[0-9]+$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
nvidia,ram-code — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Value of RAM_CODE this timing set is used for.
Properties matching a name pattern (patternProperties) #
^timing-[0-9]+$ — name matches this regular expression
Value type (type): "object"
Properties and child nodes (properties)
clock-frequency — required here
Memory clock rate in Hz.
Minimum value (minimum): 1000000
Maximum value (maximum): 900000000
nvidia,emem-configuration — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Values to be written to the EMEM register block. See section "18.13.1 MC Registers" in the TRM.
Array item rules (items)
Item 1
MC_EMEM_ARB_CFG
Item 2
MC_EMEM_ARB_OUTSTANDING_REQ
Item 3
MC_EMEM_ARB_TIMING_RCD
Item 4
MC_EMEM_ARB_TIMING_RP
Item 5
MC_EMEM_ARB_TIMING_RC
Item 6
MC_EMEM_ARB_TIMING_RAS
Item 7
MC_EMEM_ARB_TIMING_FAW
Item 8
MC_EMEM_ARB_TIMING_RRD
Item 9
MC_EMEM_ARB_TIMING_RAP2PRE
Item 10
MC_EMEM_ARB_TIMING_WAP2PRE
Item 11
MC_EMEM_ARB_TIMING_R2R
Item 12
MC_EMEM_ARB_TIMING_W2W
Item 13
MC_EMEM_ARB_TIMING_R2W
Item 14
MC_EMEM_ARB_TIMING_W2R
Item 15
MC_EMEM_ARB_DA_TURNS
Item 16
MC_EMEM_ARB_DA_COVERS
Item 17
MC_EMEM_ARB_MISC0
Item 18
MC_EMEM_ARB_RING1_THROTTLE
Required in this object (required): "clock-frequency", "nvidia,emem-configuration"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Required in this object (required): "nvidia,ram-code"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "#reset-cells", "#iommu-cells", "#interconnect-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
memory-controller@7000f000 {
compatible = "nvidia,tegra30-mc";
reg = <0x7000f000 0x400>;
clocks = <&tegra_car 32>;
clock-names = "mc";
interrupts = <0 77 4>;
#iommu-cells = <1>;
#reset-cells = <1>;
#interconnect-cells = <1>;
emc-timings-1 {
nvidia,ram-code = <1>;
timing-667000000 {
clock-frequency = <667000000>;
nvidia,emem-configuration = <
0x0000000a /* MC_EMEM_ARB_CFG */
0xc0000079 /* MC_EMEM_ARB_OUTSTANDING_REQ */
0x00000003 /* MC_EMEM_ARB_TIMING_RCD */
0x00000004 /* MC_EMEM_ARB_TIMING_RP */
0x00000010 /* MC_EMEM_ARB_TIMING_RC */
0x0000000b /* MC_EMEM_ARB_TIMING_RAS */
0x0000000a /* MC_EMEM_ARB_TIMING_FAW */
0x00000001 /* MC_EMEM_ARB_TIMING_RRD */
0x00000003 /* MC_EMEM_ARB_TIMING_RAP2PRE */
0x0000000b /* MC_EMEM_ARB_TIMING_WAP2PRE */
0x00000002 /* MC_EMEM_ARB_TIMING_R2R */
0x00000002 /* MC_EMEM_ARB_TIMING_W2W */
0x00000004 /* MC_EMEM_ARB_TIMING_R2W */
0x00000008 /* MC_EMEM_ARB_TIMING_W2R */
0x08040202 /* MC_EMEM_ARB_DA_TURNS */
0x00130b10 /* MC_EMEM_ARB_DA_COVERS */
0x70ea1f11 /* MC_EMEM_ARB_MISC0 */
0x001f0000 /* MC_EMEM_ARB_RING1_THROTTLE */
>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0)