# Common properties for SDRAM types

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

> Device-tree binding reference for Common properties for SDRAM types.

<!-- SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -->


<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;ddr&#47;jedec&#44;sdram&#45;props&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Different SDRAM types generally use the same properties and only differ in the range of legal values for each. This file defines the common parts that can be reused for each type. Nodes using this schema should generally be nested under a SDRAM channel node.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Krzysztof Kozlowski &#60;krzk&#64;kernel&#46;org&#62;&#34;</code></span>

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

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

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

### <code>compatible</code> — not listed as required here

<div id="dt-e84064a2d568e9bcb9c3">
<pre><code>Compatible strings can be either explicit vendor names and part numbers
(e.g. elpida,ECB240ABACN), or generated strings of the form
lpddrX-YY,ZZZZ or ddrX-YYYY,AAAA...-ZZ where X, Y, and Z are lowercase
hexadecimal with leading zeroes, and A is lowercase ASCII.
For LPDDR and DDR SDRAM, X is the SDRAM version (2, 3, 4, etc.).
For LPDDR SDRAM:
  - YY is the manufacturer ID (from MR5), 1 byte
  - ZZZZ is the revision ID (from MR6 and MR7), 2 bytes
For DDR4 SDRAM with SPD, according to JEDEC SPD4.1.2.L-6:
  - YYYY is the manufacturer ID, 2 bytes, from bytes 320 and 321
  - AAAA... is the part number, 20 bytes (20 chars) from bytes 329 to 348
    without trailing spaces
  - ZZ is the revision ID, 1 byte, from byte 349
The former form is useful when the SDRAM vendor and part number are
known, for example, when memory is soldered on the board. The latter
form is useful when SDRAM nodes are created at runtime by boot firmware
that doesn't have access to static part number information.</code></pre>
</div>

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

### <code>reg</code> — not listed as required here

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">The rank number of this memory rank when used as a subnode to an memory channel.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-7c3cf5bd8a25760e50cd"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-3f0a45b6ec86a13e631b"><code>3</code></span>

<a id="dt-62e84a552099c8075733"></a>

### <code>revision&#45;id</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b2386cd0b61773dab662">[<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-941e902f161c160b33f1">
<pre><code>SDRAM revision ID:
  - LPDDR SDRAM, decoded from Mode Registers 6 and 7, always 2 bytes.
  - DDR4 SDRAM, decoded from the SPD from byte 349 according to
    JEDEC SPD4.1.2.L-6, always 1 byte.
One byte per uint32 cell (e.g., &lt;MR6 MR7&gt;).</code></pre>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-2214d2ea027f57257927"><code>2</code></span>

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

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

> **Minimum value (<code>minimum</code>):** <span id="dt-5012ad47c1aac2a60d5a"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-dcd57b857d8931879dff"><code>255</code></span>

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

### <code>density</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-32950a8869c28337be6f">[<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-75fba15a0316cebdd6a1">
<pre><code>Density of the SDRAM chip in megabits:
  - LPDDR SDRAM, decoded from Mode Register 8.
  - DDR4 SDRAM, decoded from the SPD from bits 3-0 of byte 4 according to
    JEDEC SPD4.1.2.L-6.</code></pre>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-d6c9265709bef843e115"></a> <span id="dt-05483b86b7a6e0d518b4"><code>64</code></span>, <span id="dt-0f654e6db79e288c9b72"><code>128</code></span>, <span id="dt-9050ad6341d88910a8c0"><code>256</code></span>, <span id="dt-0e9125724aa2221fc738"><code>512</code></span>, <span id="dt-354ad4664e4a3df76521"><code>1024</code></span>, <span id="dt-4764e25bcef18d294adc"><code>2048</code></span>, <span id="dt-485d42a0da49d297c580"><code>3072</code></span>, <span id="dt-c2af7150c77f068a2366"><code>4096</code></span>, <span id="dt-7862d5233cf9215ef1de"><code>6144</code></span>, <span id="dt-640688955bfacb4e192f"><code>8192</code></span>, <span id="dt-fbaeebb8ee94c8bf244c"><code>12288</code></span>, <span id="dt-8603b72f0166aa2c40f2"><code>16384</code></span>, <span id="dt-aa7c2ad89ab37ee5deaf"><code>24576</code></span>, <span id="dt-06b5c6e25956723e85bd"><code>32768</code></span>

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

### <code>io&#45;width</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-eb2468fdc6b4049bbf6d">[<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-d7bd3438b3b8ac54424d">
<pre><code>I/O bus width in bits of the SDRAM chip:
  - LPDDR SDRAM, decoded from Mode Register 8.
  - DDR4 SDRAM, decoded from the SPD from bits 2-0 of byte 12 according to
    JEDEC SPD4.1.2.L-6.</code></pre>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-f3004c9f2e690b482ccc"></a> <span id="dt-0e3ca1d0509bdcc4d8c6"><code>8</code></span>, <span id="dt-04292de5a2c605df5f64"><code>16</code></span>, <span id="dt-4e0f7537312c2566a09a"><code>32</code></span>

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

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

<code>true</code>

Allowed by this rule.

## 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-only OR BSD-2-Clause)</span></p>

</details>
