# NAND Chip Common Properties

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

> Device-tree binding reference for NAND Chip Common Properties.

<!-- 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;mtd&#47;nand&#45;chip&#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;Miquel Raynal &#60;miquel&#46;raynal&#64;bootlin&#46;com&#62;&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>mtd&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/mtd.md#dt-root>)</span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This file covers the generic description of a NAND chip. It implies that the
bus interface should not be taken into account: both raw NAND devices and
SPI-NAND devices are concerned by this description.</p>
</div>

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

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

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Contains the chip-select IDs.</p>
</div>

<a id="dt-423c2560ad51e9cea167"></a>

### <code>nand&#45;ecc&#45;engine</code> — not listed as required here

<div id="dt-b00e8899fccd428453db">
<p style="white-space: pre-wrap">A phandle on the hardware ECC engine if any. There are
basically three possibilities:
1/ The ECC engine is part of the NAND controller, in this
case the phandle should reference the parent node.
2/ The ECC engine is part of the NAND part (on-die), in this
case the phandle should reference the node itself.
3/ The ECC engine is external, in this case the phandle should
reference the specific ECC engine node.</p>
</div>

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

<a id="dt-72cc3a764be085b2d83e"></a>

### <code>nand&#45;use&#45;soft&#45;ecc&#45;engine</code> — not listed as required here

<div id="dt-7bf1cc728204ec4d5c48">
<p style="white-space: pre-wrap">Use a software ECC engine.</p>
</div>

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

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

### <code>nand&#45;no&#45;ecc&#45;engine</code> — not listed as required here

<div id="dt-24e0f5d3c11ae6872996">
<p style="white-space: pre-wrap">Do not use any ECC correction.</p>
</div>

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

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

### <code>nand&#45;ecc&#45;algo</code> — not listed as required here

<div id="dt-e15689d7ed52fb6fc708">
<p style="white-space: pre-wrap">Desired ECC algorithm.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-b1a58a1734a13f3ba3fe"></a> <span id="dt-b6bbe7579521fa4f5d23"><code>&#34;hamming&#34;</code></span>, <span id="dt-e50d9ecf19eb38a7f4f5"><code>&#34;bch&#34;</code></span>, <span id="dt-d3635317189fccf08d87"><code>&#34;rs&#34;</code></span>

<a id="dt-0d8b908228829aa05bf6"></a>

### <code>nand&#45;ecc&#45;strength</code> — not listed as required here

<div id="dt-bf4d29c4eb4a14625809">
<p style="white-space: pre-wrap">Maximum number of bits that can be corrected per ECC step.</p>
</div>

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

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

<a id="dt-78a1e15b0cf1ad0ee587"></a>

### <code>nand&#45;ecc&#45;step&#45;size</code> — not listed as required here

<div id="dt-99d032fb8eefe59acc7c">
<p style="white-space: pre-wrap">Number of data bytes covered by a single ECC step.</p>
</div>

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

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

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

### <code>secure&#45;regions</code> — not listed as required here

<div id="dt-31e01f1f3466647d54f6">
<p style="white-space: pre-wrap">Regions in the NAND chip which are protected using a secure element like Trustzone. This property contains the start address and size of the secure regions present.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-3e49e94b9dc89634f7de">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint64&#45;matrix</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-fc440168d0c0ed9efc49>)</span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;reg&#34;</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>

<p id="dt-comment-1"><strong>Line 73:</strong> <span> This file can be referenced by more specific devices (like spi-nands)</span></p>

</details>
