# NVIDIA Tegra30 SoC Memory Controller

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings_

> Device-tree binding reference for NVIDIA Tegra30 SoC Memory Controller.

<!-- SPDX-License-Identifier: (GPL-2.0) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;memory&#45;controllers&#47;nvidia&#44;tegra30&#45;mc&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Dmitry Osipenko &#60;digetx&#64;gmail&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Jon Hunter &#60;jonathanh&#64;nvidia&#46;com&#62;&#34;</code></span>, <span id="dt-2f1516674166ff6e66b8"><code>&#34;Thierry Reding &#60;thierry&#46;reding&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Tegra30 Memory Controller architecturally consists of the following parts:</p>
<pre><code>  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.</code></pre>
<pre><code>  Protocol Arbiter, which manage a related pool of memory devices. A system
  may have a single Protocol Arbiter or multiple Protocol Arbiters.</code></pre>
<pre><code>  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.</code></pre>
<pre><code>  Global Resources, which include things like configuration registers which
  are shared across the Memory Subsystem.</code></pre>
<p style="white-space: pre-wrap">The Tegra30 Memory Controller handles memory requests from internal clients
and arbitrates among them to allocate memory bandwidth for DDR3L and LPDDR2
SDRAMs.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;nvidia&#44;tegra30&#45;mc&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>1</code></span>

<a id="dt-4e9a371963ac013ad39d"></a>

### <code>clocks</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><code>1</code></span>

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — required here

<a id="dt-3d1de59bdfddccf00eed"></a>

#### Array item rules (<code>items</code>)

<a id="dt-b779484bf9e022991fd6"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;mc&#34;</code></span>

<a id="dt-c2de09e7f7fd211b679d"></a>

### <code>interrupts</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b7823fb65b2f27642d26"><code>1</code></span>

<a id="dt-02c38475362b738e226b"></a>

### <code>&#35;reset&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-374f156ee5b81c392b56"><code>1</code></span>

<a id="dt-1b52f12b0719e235c45f"></a>

### <code>&#35;iommu&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-1a3bbfcf9f14a0ead311"><code>1</code></span>

<a id="dt-3a3a88d262aedc100476"></a>

### <code>&#35;interconnect&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-bbf0029d5af0156a271b"><code>1</code></span>

<a id="dt-e92215bd3c2f5373b164"></a>

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-d8a9eeea91c9afef579f"></a>

### <code>&#94;emc&#45;timings&#45;&#91;0&#45;9&#93;&#43;&#36;</code> — name matches this regular expression

**Value type (<code>type</code>):** <span id="dt-bff4b4a1ca790b10746a"><code>&#34;object&#34;</code></span>

<a id="dt-48df4152d8251e3120a4"></a>

#### Properties and child nodes (<code>properties</code>)

<a id="dt-cf861ae5328decbeb8d4"></a>

**<code>nvidia&#44;ram&#45;code</code> — required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-0496b19997ca7be405ad">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-8e45035ce67f04e2fdd1">
<p style="white-space: pre-wrap">Value of RAM_CODE this timing set is used for.</p>
</div>

<a id="dt-71f7d1b6cd47af08be62"></a>

#### Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-74868145e13ff4bdfab2"></a>

**<code>&#94;timing&#45;&#91;0&#45;9&#93;&#43;&#36;</code> — name matches this regular expression**

**Value type (<code>type</code>):** <span id="dt-df621dc6589b741227de"><code>&#34;object&#34;</code></span>

<a id="dt-73333684559ea90edcdb"></a>

**Properties and child nodes (<code>properties</code>)**

<a id="dt-34ea8af818eb76bf70cf"></a>

**<code>clock&#45;frequency</code> — required here**

<div id="dt-cb23c302c74306b5f031">
<p style="white-space: pre-wrap">Memory clock rate in Hz.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-aa575dc8334ffaeb2285"><code>1000000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-28b5e151679f39212be3"><code>900000000</code></span>

<a id="dt-4eecec03fdea3ff5b052"></a>

**<code>nvidia&#44;emem&#45;configuration</code> — required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-6a53b3887795d7cc7c3d">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-03a03f95a666fe4b033c>)</span>

<div id="dt-21bda37029257088b923">
<p style="white-space: pre-wrap">Values to be written to the EMEM register block. See section
"18.13.1 MC Registers" in the TRM.</p>
</div>

<a id="dt-ad7e9bf7377f4bbbff01"></a>

**Array item rules (<code>items</code>)**

<a id="dt-3005b9da7218c7150529"></a>

**Item 1**

> <div id="dt-55790647d828d19e5c14">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_CFG</p>
> </div>

<a id="dt-ffa9fa6c1499db58ad0f"></a>

**Item 2**

> <div id="dt-1c3d16c4ecd8740e2897">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_OUTSTANDING_REQ</p>
> </div>

<a id="dt-cec7dc63a263ec03961e"></a>

**Item 3**

> <div id="dt-262be47583716cf5149a">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_TIMING_RCD</p>
> </div>

<a id="dt-c1fd69e93c2b38c027af"></a>

**Item 4**

> <div id="dt-14645075bcded9b5bfd3">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_TIMING_RP</p>
> </div>

<a id="dt-c10ddf0c390718182eb0"></a>

**Item 5**

> <div id="dt-fc186df155aef3a6f413">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_TIMING_RC</p>
> </div>

<a id="dt-1444a0b9f5e405483c78"></a>

**Item 6**

> <div id="dt-cd9fe5ce37a4d3663199">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_TIMING_RAS</p>
> </div>

<a id="dt-6df63c81b46630b9e0cb"></a>

**Item 7**

> <div id="dt-9747a24e7c1ac9d2b1c2">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_TIMING_FAW</p>
> </div>

<a id="dt-ba71f3b18f79914a80bf"></a>

**Item 8**

> <div id="dt-4273a0f83a11ffb5bff5">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_TIMING_RRD</p>
> </div>

<a id="dt-8143dc9938bd93b93a75"></a>

**Item 9**

> <div id="dt-85d5845f8652805a981f">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_TIMING_RAP2PRE</p>
> </div>

<a id="dt-cb4c3ba4d8bf3e99ec4a"></a>

**Item 10**

> <div id="dt-026f1f067a134f9f8fe6">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_TIMING_WAP2PRE</p>
> </div>

<a id="dt-7a347ff6d347ca5a9fed"></a>

**Item 11**

> <div id="dt-15dc08349fa07669d50c">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_TIMING_R2R</p>
> </div>

<a id="dt-acf14cf501164d654ffa"></a>

**Item 12**

> <div id="dt-e5d31cc4bcefad877449">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_TIMING_W2W</p>
> </div>

<a id="dt-07c8d46a2b9b39d4da03"></a>

**Item 13**

> <div id="dt-23762495fd6a39ed748b">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_TIMING_R2W</p>
> </div>

<a id="dt-1328f449b789327f199f"></a>

**Item 14**

> <div id="dt-4add0caad235908a1ba0">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_TIMING_W2R</p>
> </div>

<a id="dt-37568b20154f59b073cf"></a>

**Item 15**

> <div id="dt-ac9eed4384efea9565bb">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_DA_TURNS</p>
> </div>

<a id="dt-025c9421e69f8a5c9107"></a>

**Item 16**

> <div id="dt-4086f5d1e39a4e05c021">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_DA_COVERS</p>
> </div>

<a id="dt-c2604a0332be70531799"></a>

**Item 17**

> <div id="dt-c19cae4f2076d3699463">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_MISC0</p>
> </div>

<a id="dt-828f9fc0b8ab5b870137"></a>

**Item 18**

> <div id="dt-cf95ada3c55919c74602">
> <p style="white-space: pre-wrap">MC_EMEM_ARB_RING1_THROTTLE</p>
> </div>

**Required in this object (<code>required</code>):** <a id="dt-953b79b36bec76169bd4"></a> <span id="dt-683f48622f748edb75b9"><code>&#34;clock&#45;frequency&#34;</code></span>, <span id="dt-8fc770f0a50bd52bc7e9"><code>&#34;nvidia&#44;emem&#45;configuration&#34;</code></span>

<a id="dt-d88f32d3fb6ff507c08e"></a>

**Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)**

<code>false</code>

Not allowed by this rule.

**Required in this object (<code>required</code>):** <a id="dt-476e7d85bf4e06f83199"></a> <span id="dt-e8ec7ec6068180946973"><code>&#34;nvidia&#44;ram&#45;code&#34;</code></span>

<a id="dt-50d4dd64a4581a6811fa"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clocks&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;&#35;reset&#45;cells&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;&#35;iommu&#45;cells&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;&#35;interconnect&#45;cells&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">memory-controller@7000f000 {
    compatible = "nvidia,tegra30-mc";
    reg = &lt;0x7000f000 0x400&gt;;
    clocks = &lt;&amp;tegra_car 32&gt;;
    clock-names = "mc";

    interrupts = &lt;0 77 4&gt;;

    #iommu-cells = &lt;1&gt;;
    #reset-cells = &lt;1&gt;;
    #interconnect-cells = &lt;1&gt;;

    emc-timings-1 {
        nvidia,ram-code = &lt;1&gt;;

        timing-667000000 {
            clock-frequency = &lt;667000000&gt;;

            nvidia,emem-configuration = &lt;
                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 */
            &gt;;
        };
    };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0)</span></p>

</details>
