# Mtd bindings

---

# ARM Firmware Suite (AFS) Partitions

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

> Device-tree binding reference for ARM Firmware Suite (AFS) Partitions.

<!-- 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;partitions&#47;arm&#44;arm&#45;firmware&#45;suite&#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;Linus Walleij &#60;linusw&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The ARM Firmware Suite is a flash partitioning system found on the
ARM reference designs: Integrator AP, Integrator CP, Versatile AB,
Versatile PB, the RealView family, Versatile Express and Juno.</p>
</div>

<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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;arm&#44;arm&#45;firmware&#45;suite&#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">partitions {
    compatible = "arm,arm-firmware-suite";
};
</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-only OR BSD-2-Clause</span></p>

</details>

---

# Broadcom BCM4908 partitioning

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

> Device-tree binding reference for Broadcom BCM4908 partitioning.

<!-- 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;partitions&#47;brcm&#44;bcm4908&#45;partitions&#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">Broadcom BCM4908 CFE bootloader supports two firmware partitions. One is used
for regular booting, the other is treated as fallback.</p>
<p style="white-space: pre-wrap">This binding allows defining all fixed partitions and marking those containing
firmware. System can use that information e.g. for booting or flashing
purposes.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Rafał Miłecki &#60;rafal&#64;milecki&#46;pl&#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

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

<a id="dt-2efe70314a961a652abe"></a>

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

**Allowed values (<code>enum</code>):** <a id="dt-01d9ce7fc56f712455be"></a> <span id="dt-94d3735d14e27e2d7df1"><code>1</code></span>, <span id="dt-0dda607ef98de398e3f7"><code>2</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-11f8fcdf7ed0ce5274ad"></a> <span id="dt-1df5884131042d9f2b35"><code>1</code></span>, <span id="dt-0d778c9f0ef0966b501c"><code>2</code></span>

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

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

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

### <code>&#94;partition&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4eb9f3acd7599e9be113">[<code>partition&#46;yaml&#35;&#47;&#36;defs&#47;partition&#45;node</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-b43252f69d556623c54c>)</span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;&#35;size&#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">partitions {
    compatible = "brcm,bcm4908-partitions";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    partition@0 {
        label = "cferom";
        reg = &lt;0x0 0x100000&gt;;
    };

    partition@100000 {
        compatible = "brcm,bcm4908-firmware";
        reg = &lt;0x100000 0xf00000&gt;;
    };

    partition@1000000 {
        compatible = "brcm,bcm4908-firmware";
        reg = &lt;0x1000000 0xf00000&gt;;
    };

    partition@1f00000 {
        label = "calibration";
        reg = &lt;0x1f00000 0x100000&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-only OR BSD-2-Clause</span></p>

</details>

---

# Broadcom BCM47xx Partitions

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

> Device-tree binding reference for Broadcom BCM47xx Partitions.

<!-- 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;partitions&#47;brcm&#44;bcm947xx&#45;cfe&#45;partitions&#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">Broadcom is one of hardware manufacturers providing SoCs (BCM47xx) used in
home routers. Their BCM947xx boards using CFE bootloader have several
partitions without any on-flash partition table. On some devices their sizes
and/or meanings can also vary so fixed partitioning can't be used.</p>
<p style="white-space: pre-wrap">Discovering partitions on these devices is possible thanks to having a special
header and/or magic signature at the beginning of each of them. They are also
block aligned which is important for determinig a size.</p>
<p style="white-space: pre-wrap">Most of partitions use ASCII text based magic for determining a type. More
complex partitions (like TRX with its HDR0 magic) may include extra header
containing some details, including a length.</p>
<p style="white-space: pre-wrap">A list of supported partitions includes:
1) Bootloader with Broadcom's CFE (Common Firmware Environment)
2) NVRAM with configuration/calibration data
3) Device manufacturer's data with some default values (e.g. SSIDs)
4) TRX firmware container which can hold up to 4 subpartitions
5) Backup TRX firmware used after failed upgrade</p>
<p style="white-space: pre-wrap">As mentioned earlier, role of some partitions may depend on extra
configuration. For example both: main firmware and backup firmware use the
same TRX format with the same header. To distinguish currently used firmware a
CFE's environment variable "bootpartition" is used.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Rafał Miłecki &#60;rafal&#64;milecki&#46;pl&#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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;brcm&#44;bcm947xx&#45;cfe&#45;partitions&#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">partitions {
    compatible = "brcm,bcm947xx-cfe-partitions";
};
</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-only OR BSD-2-Clause</span></p>

</details>

---

# Broadcom TRX Container Partition

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

> Device-tree binding reference for Broadcom TRX Container Partition.

<!-- 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;partitions&#47;brcm&#44;trx&#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;Hauke Mehrtens &#60;hauke&#64;hauke&#45;m&#46;de&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Rafał Miłecki &#60;rafal&#64;milecki&#46;pl&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>TRX is Broadcom's official firmware format for the BCM947xx boards. It's used by most of the vendors building devices based on Broadcom's BCM47xx SoCs and is supported by the CFE bootloader.
Design of the TRX format is very minimalistic. Its header contains identification fields, CRC32 checksum and the locations of embedded partitions. Its purpose is to store a few partitions in a format that can be distributed as a standalone file and written in a flash memory.
Container can hold up to 4 partitions. The first partition has to contain a device executable binary (e.g. a kernel) as it's what the CFE bootloader starts executing. Other partitions can be used for operating system purposes. This is useful for systems that keep kernel and rootfs separated.
TRX doesn't enforce any strict partition boundaries or size limits. All partitions have to be less than the 4GiB max size limit.
There are two existing/known TRX variants:
  1) v1 which contains 3 partitions
  2) v2 which contains 4 partitions</code></pre>
<p style="white-space: pre-wrap">There aren't separated compatible bindings for them as version can be trivially detected by a software parsing TRX header.</p>
</div>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-5deec2612224d8d915da"><code>&#34;linksys&#44;ns&#45;firmware&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;brcm&#44;trx&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;brcm&#44;trx&#34;</code></span>

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

### <code>brcm&#44;trx&#45;magic</code> — not listed as required here

<div id="dt-0caffe28e4489d955ee5">
<p style="white-space: pre-wrap">TRX magic, if it is different from the default magic.</p>
</div>

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

**Default value (<code>default</code>):** <span id="dt-5d5fbf45aa25c1d2ac7a"><code>810697800</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#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>partition&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-root>)</span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">flash {
    partitions {
        compatible = "brcm,trx";
    };
};
</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-only OR BSD-2-Clause)</span></p>

</details>

---

# Fixed partitions

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

> Device-tree binding reference for Fixed partitions.

<!-- 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;partitions&#47;fixed&#45;partitions&#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">This binding can be used on platforms which have strong conventions about
which portions of a flash are used for what purposes, but which don't use an
on-flash partition table such as RedBoot.</p>
<p style="white-space: pre-wrap">The partition table should be a node named "partitions". Partitions are then
defined as subnodes.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Rafał Miłecki &#60;rafal&#64;milecki&#46;pl&#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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;fixed&#45;partitions&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;sercomm&#44;sc&#45;partitions&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;fixed&#45;partitions&#34;</code></span>

<a id="dt-2efe70314a961a652abe"></a>

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

**Allowed values (<code>enum</code>):** <a id="dt-01d9ce7fc56f712455be"></a> <span id="dt-94d3735d14e27e2d7df1"><code>1</code></span>, <span id="dt-0dda607ef98de398e3f7"><code>2</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-11f8fcdf7ed0ce5274ad"></a> <span id="dt-1df5884131042d9f2b35"><code>1</code></span>, <span id="dt-0d778c9f0ef0966b501c"><code>2</code></span>

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

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

<a id="dt-573587cdb3ff39c5b5e0"></a>

### <code>&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1fbf03b5c1016547cb52">[<code>partition&#46;yaml&#35;&#47;&#36;defs&#47;partition&#45;node</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-b43252f69d556623c54c>)</span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;&#35;size&#45;cells&#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>partition&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-root>)</span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">partitions {
    compatible = "fixed-partitions";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    partition@0 {
        label = "u-boot";
        reg = &lt;0x0000000 0x100000&gt;;
        read-only;
    };

    uimage@100000 {
        reg = &lt;0x0100000 0x200000&gt;;
        compression = "lzma";
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">partitions {
    compatible = "fixed-partitions";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;2&gt;;

    /* a 4 GiB partition */
    partition@0 {
        label = "filesystem";
        reg = &lt;0x00000000 0x1 0x00000000&gt;;
        linux,rootfs;
    };
};
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">partitions {
    compatible = "fixed-partitions";
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    /* an 8 GiB partition */
    partition@0 {
        label = "filesystem #1";
        reg = &lt;0x0 0x00000000 0x2 0x00000000&gt;;
    };

    /* a 4 GiB partition */
    partition@200000000 {
        label = "filesystem #2";
        reg = &lt;0x2 0x00000000 0x1 0x00000000&gt;;
    };
};
</code></pre>

<pre id="dt-cf8a683b5a963eb1c566"><code class="language-dts">partitions {
    compatible = "fixed-partitions";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    partition@0 {
        label = "bootloader";
        reg = &lt;0x000000 0x100000&gt;;
        read-only;
    };

    firmware@100000 {
        compatible = "brcm,trx";
        label = "firmware";
        reg = &lt;0x100000 0xe00000&gt;;
    };

    calibration@f00000 {
        compatible = "fixed-partitions";
        label = "calibration";
        reg = &lt;0xf00000 0x100000&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;1&gt;;

        partition@0 {
            label = "wifi0";
            reg = &lt;0x000000 0x080000&gt;;
        };

        partition@80000 {
            label = "wifi1";
            reg = &lt;0x080000 0x080000&gt;;
        };
    };
};
</code></pre>

<pre id="dt-89dd782fdab7d446b5b9"><code class="language-dts">partitions {
    compatible = "sercomm,sc-partitions", "fixed-partitions";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    partition@0 {
        label = "u-boot";
        reg = &lt;0x0 0x100000&gt;;
        sercomm,scpart-id = &lt;0&gt;;
        read-only;
    };

    partition@100000 {
        label = "dynamic partition map";
        reg = &lt;0x100000 0x100000&gt;;
        sercomm,scpart-id = &lt;1&gt;;
    };

    partition@200000 {
        label = "Factory";
        reg = &lt;0x200000 0x100000&gt;;
        sercomm,scpart-id = &lt;2&gt;;
        read-only;
    };
};
</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-only OR BSD-2-Clause</span></p>

<p id="dt-comment-1"><strong>Line 42:</strong> <span> fixed-partitions can be nested</span></p>

</details>

---

# Linksys Northstar partitioning

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

> Device-tree binding reference for Linksys Northstar partitioning.

<!-- 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;partitions&#47;linksys&#44;ns&#45;partitions&#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">Linksys devices based on Broadcom Northstar architecture often use two
firmware partitions. One is used for regular booting, the other is treated as
fallback.</p>
<p style="white-space: pre-wrap">This binding allows defining all fixed partitions and marking those containing
firmware. System can use that information e.g. for booting or flashing
purposes.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Rafał Miłecki &#60;rafal&#64;milecki&#46;pl&#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

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

<a id="dt-2efe70314a961a652abe"></a>

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

**Allowed values (<code>enum</code>):** <a id="dt-01d9ce7fc56f712455be"></a> <span id="dt-94d3735d14e27e2d7df1"><code>1</code></span>, <span id="dt-0dda607ef98de398e3f7"><code>2</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-11f8fcdf7ed0ce5274ad"></a> <span id="dt-1df5884131042d9f2b35"><code>1</code></span>, <span id="dt-0d778c9f0ef0966b501c"><code>2</code></span>

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

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

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

### <code>&#94;partition&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4eb9f3acd7599e9be113">[<code>partition&#46;yaml&#35;&#47;&#36;defs&#47;partition&#45;node</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-b43252f69d556623c54c>)</span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;&#35;size&#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">partitions {
    compatible = "linksys,ns-partitions";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    partition@0 {
        label = "boot";
        reg = &lt;0x0 0x100000&gt;;
        read-only;
    };

    partition@100000 {
        label = "nvram";
        reg = &lt;0x100000 0x100000&gt;;
    };

    partition@200000 {
        compatible = "linksys,ns-firmware", "brcm,trx";
        reg = &lt;0x200000 0xf00000&gt;;
    };

    partition@1100000 {
        compatible = "linksys,ns-firmware", "brcm,trx";
        reg = &lt;0x1100000 0xf00000&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-only OR BSD-2-Clause</span></p>

</details>

---

# Unsorted Block Images

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

> Device-tree binding reference for Unsorted Block Images.

<!-- 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;partitions&#47;linux&#44;ubi&#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">UBI ("Unsorted Block Images") is a volume management system for raw
flash devices which manages multiple logical volumes on a single
physical flash device and spreads the I/O load (i.e wear-leveling)
across the whole flash chip.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Daniel Golle &#60;daniel&#64;makrotopia&#46;org&#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>partition&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-root>)</span>

<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;linux&#44;ubi&#34;</code></span>

<a id="dt-8f18aa2ffc4d4d9e3edb"></a>

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

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

<div id="dt-bae5c6a63d6cef488d2d">
<p style="white-space: pre-wrap">UBI Volumes</p>
</div>

<a id="dt-13930a9a75ac604c9224"></a>

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

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

**<code>&#94;ubi&#45;volume&#45;&#46;&#42;&#36;</code> — name matches this regular expression**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-277467bf6e77d4d602d3">[<code>&#47;schemas&#47;mtd&#47;partitions&#47;ubi&#45;volume&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/ubi-volume.md#dt-root>)</span>

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

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</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>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">partitions {
    compatible = "fixed-partitions";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    partition@0 {
        reg = &lt;0x0 0x100000&gt;;
        label = "bootloader";
        read-only;
    };

    partition@100000 {
        reg = &lt;0x100000 0x1ff00000&gt;;
        label = "ubi";
        compatible = "linux,ubi";

        volumes {
            ubi-volume-caldata {
                volid = &lt;2&gt;;
                volname = "rf";

                nvmem-layout {
                    compatible = "fixed-layout";
                    #address-cells = &lt;1&gt;;
                    #size-cells = &lt;1&gt;;

                    eeprom@0 {
                        reg = &lt;0x0 0x1000&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-only OR BSD-2-Clause</span></p>

</details>

---

# Nvmem cells

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

> Device-tree binding reference for Nvmem cells.

<!-- 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;partitions&#47;nvmem&#45;cells&#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">Any partition containing the compatible "nvmem-cells" will register as a
nvmem provider.
Each direct subnodes represents a nvmem cell following the nvmem binding.
Nvmem binding to declare nvmem-cells can be found in:
Documentation/devicetree/bindings/nvmem/nvmem.yaml</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Ansuel Smith &#60;ansuelsmth&#64;gmail&#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>&#47;schemas&#47;mtd&#47;partitions&#47;partition&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

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

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-75c09adb7725f4e827e8">[<code>&#47;schemas&#47;nvmem&#47;nvmem&#45;deprecated&#45;cells&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-nvmem/nvmem-deprecated-cells.md#dt-root>)</span>

<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;nvmem&#45;cells&#34;</code></span>

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

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">partitions {
  compatible = "fixed-partitions";
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;1&gt;;

  /* ... */

  };
  art: art@1200000 {
    compatible = "nvmem-cells";
    reg = &lt;0x1200000 0x0140000&gt;;
    label = "art";
    read-only;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    macaddr_gmac1: macaddr_gmac1@0 {
      reg = &lt;0x0 0x6&gt;;
    };

    macaddr_gmac2: macaddr_gmac2@6 {
      reg = &lt;0x6 0x6&gt;;
    };

    pre_cal_24g: pre_cal_24g@1000 {
      reg = &lt;0x1000 0x2f20&gt;;
    };

    pre_cal_5g: pre_cal_5g@5000{
      reg = &lt;0x5000 0x2f20&gt;;
    };
  };
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">partitions {
    compatible = "fixed-partitions";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    partition@0 {
        label = "bootloader";
        reg = &lt;0x000000 0x100000&gt;;
        read-only;
    };

    firmware@100000 {
        compatible = "brcm,trx";
        label = "firmware";
        reg = &lt;0x100000 0xe00000&gt;;
    };

    calibration@f00000 {
        compatible = "nvmem-cells";
        label = "calibration";
        reg = &lt;0xf00000 0x100000&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;1&gt;;

        wifi0@0 {
            reg = &lt;0x000000 0x080000&gt;;
        };

        wifi1@80000 {
            reg = &lt;0x080000 0x080000&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-only OR BSD-2-Clause</span></p>

</details>

---

# Partition

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

> Device-tree binding reference for Partition.

<!-- 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;partitions&#47;partition&#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">This binding describes a single flash partition. Each partition must have its
relative offset and size specified. Depending on partition function extra
properties can be used.</p>
<p style="white-space: pre-wrap">A partition may be dynamically allocated by a specific parser at runtime.
In this specific case, a specific suffix is required to the node name.
Everything after 'partition-' will be used as the partition name to compare
with the one dynamically allocated by the specific parser.
If the partition contains invalid char a label can be provided that will
be used instead of the node name to make the comparison.
This is used to assign an OF node to the dynamiccally allocated partition
so that subsystem like NVMEM can provide an OF node and declare NVMEM cells.
The OF node will be assigned only if the partition label declared match the
one assigned by the parser at runtime.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Rafał Miłecki &#60;rafal&#64;milecki&#46;pl&#62;&#34;</code></span>

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

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

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">partition's offset and size within the flash</p>
</div>

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

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

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

<div id="dt-f7c1a813bb0d2e9dd066">
<p style="white-space: pre-wrap">The label / name for this partition. If omitted, the label is taken from the node name (excluding the unit address).</p>
</div>

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

### <code>read&#45;only</code> — not listed as required here

<div id="dt-888756e946e88a297fcf">
<p style="white-space: pre-wrap">This parameter, if present, is a hint that this partition should only be mounted read-only. This is usually used for flash partitions containing early-boot firmware images or data which should not be clobbered.</p>
</div>

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

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

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

<div id="dt-8e0ef40b5f0d49afd1e7">
<p style="white-space: pre-wrap">Do not unlock the partition at initialization time (not supported on all devices)</p>
</div>

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

<a id="dt-20b6386e596569cd5023"></a>

### <code>slc&#45;mode</code> — not listed as required here

<div id="dt-da2074b48b9aeeb78483">
<p style="white-space: pre-wrap">This parameter, if present, allows one to emulate SLC mode on a partition attached to an MLC NAND thus making this partition immune to paired-pages corruptions</p>
</div>

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

<a id="dt-70d57469748c3a70af66"></a>

### <code>linux&#44;rootfs</code> — not listed as required here

<div id="dt-1666eece2dd6b94fb317">
<p style="white-space: pre-wrap">Marks partition that contains root filesystem to mount and boot user space from</p>
</div>

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-57c03345c3b36d04cd63">[<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-a0ab7b9c7ca89f3f21d3"><code>2</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-47ffd40c213335f511b2"><code>2147483648</code></span>

**Multiple of (<code>multipleOf</code>):** <span id="dt-8846ac03a57f4a2830d2"><code>2</code></span>

<div id="dt-b8ee80c54eef14d6701e">
<p style="white-space: pre-wrap">This sets the alignment of the entry in bytes.
The entry offset is adjusted so that the entry starts on an aligned boundary within the containing section or image. For example ‘align = &lt;16&gt;’ means that the entry will start on a 16-byte boundary. This may mean that padding is added before the entry. The padding is part of the containing section but is not included in the entry, meaning that an empty space may be created before the entry starts. Alignment must be a power of 2. If ‘align’ is not provided, no alignment is performed.</p>
</div>

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

### <code>align&#45;size</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-aeb48670fd9a2cb94fed">[<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-a55feb7627aed01ec545"><code>2</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-99cbeb7767b905b85b77"><code>2147483648</code></span>

**Multiple of (<code>multipleOf</code>):** <span id="dt-c2857d2421b8dc7de994"><code>2</code></span>

<div id="dt-b5ddfcab9021dc92911b">
<p style="white-space: pre-wrap">This sets the alignment of the entry size in bytes. It must be a power of 2.
For example, to ensure that the size of an entry is a multiple of 64 bytes, set this to 64. While this does not affect the content of the entry itself (the padding is performed only when its parent section is assembled), the end result is that the entry ends with the padding bytes, so may grow. If ‘align-size’ is not provided, no alignment is performed.</p>
</div>

<a id="dt-41a44b5b648f9e59d3d3"></a>

### <code>align&#45;end</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-eedb85c397329e16e52c">[<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-d8834bdc3cc53410c4cd"><code>2</code></span>

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

**Multiple of (<code>multipleOf</code>):** <span id="dt-b68c8121d6416a1960bd"><code>2</code></span>

<div id="dt-7fda3f4b347c06a35607">
<p style="white-space: pre-wrap">This sets the alignment (in bytes) of the end of an entry with respect to the containing section. It must be a power of 2.
Some entries require that they end on an alignment boundary, regardless of where they start. This does not move the start of the entry, so the content of the entry will still start at the beginning. But there may be padding at the end. While this does not affect the content of the entry itself (the padding is performed only when its parent section is assembled), the end result is that the entry ends with the padding bytes, so may grow. If ‘align-end’ is not provided, no alignment is performed.</p>
</div>

<a id="dt-6782463a05678b22ad29"></a>

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

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

<div id="dt-4848d0f443821cbb81ae">
<p style="white-space: pre-wrap">Compression algorithm used to store the data in this partition, chosen
from a list of well-known algorithms.</p>
<p style="white-space: pre-wrap">The contents are compressed using this algorithm.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-f0f0c98fa46c062486e2"></a> <span id="dt-3fb91dd371e4d0918dfd"><code>&#34;none&#34;</code></span>, <span id="dt-00358d5ac2fb240ec399"><code>&#34;bzip2&#34;</code></span>, <span id="dt-74851fbeccb743a4cd73"><code>&#34;gzip&#34;</code></span>, <span id="dt-8c6b882c42ae0854ffeb"><code>&#34;lzop&#34;</code></span>, <span id="dt-733be5b6604369a0a97d"><code>&#34;lz4&#34;</code></span>, <span id="dt-edefc034ee4c5d009ca6"><code>&#34;lzma&#34;</code></span>, <span id="dt-096e33f7f16aaf3f5194"><code>&#34;xz&#34;</code></span>, <span id="dt-69f327f588eed300fd89"><code>&#34;zstd&#34;</code></span>

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

### <code>sercomm&#44;scpart&#45;id</code> — not listed as required here

<div id="dt-da46fe1d326051265091">
<p style="white-space: pre-wrap">Partition id in Sercomm partition map. Mtd parser uses this id to find a record in the partition map containing offset and size of the current partition. The values from partition map overrides partition offset and size defined in reg property of the dts. Frequently these values are the same, but may differ if device has bad eraseblocks on a flash.</p>
</div>

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

<a id="dt-471cf9e1db75cd15a4c6"></a>

### <code>nvmem&#45;layout</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-afa21dd3acda23c4c1d4">[<code>&#47;schemas&#47;nvmem&#47;layouts&#47;nvmem&#45;layout&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-nvmem/layouts/nvmem-layout.md#dt-root>)</span>

<a id="dt-158e3f6339df9dc0e448"></a>

## Condition (<code>if</code>)

> <a id="dt-3bfe73d6d5d592adab9c"></a>
>
> ### This rule must not match (<code>not</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-c5548ec7af287083fcce"></a> <span id="dt-86d1fed7a8a2cf122d8e"><code>&#34;reg&#34;</code></span>

<a id="dt-94d3067a06aec87aad7f"></a>

## When the condition matches (<code>then</code>)

> <a id="dt-d3da345ec82b9041251c"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-82b238e9fd5af4b4a62c"></a>
>
> #### <code>&#36;nodename</code> — not listed as required here
>
> **String pattern (<code>pattern</code>):** <span id="dt-ddad8464dc5253625ba7"><code>&#34;&#94;partitions&#63;&#40;&#45;&#46;&#43;&#41;&#63;&#36;&#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.

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

## Reusable definitions (<code>&#36;defs</code>)

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

### <code>partition&#45;node</code>

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

<a id="dt-2c9bef3f79e391d4dc38"></a>

#### Condition (<code>if</code>)

> <a id="dt-11fc3eef9bf25d1dda17"></a>
>
> **This rule must not match (<code>not</code>)**
>
> > **Required in this object (<code>required</code>):** <a id="dt-54373c943c525733e8d5"></a> <span id="dt-bbf0adf0aa9b7643a8b6"><code>&#34;compatible&#34;</code></span>

<a id="dt-241a2f9c2f6a9ec87c2d"></a>

#### When the condition matches (<code>then</code>)

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fee9cfce9699a8af863f">[<code>&#35;</code>](<#dt-root>)</span>
>
> <a id="dt-48ed4ab3849273e88176"></a>
>
> **Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**
>
> <code>false</code>
>
> Not allowed by this rule.

<a id="dt-093fb1c403f9c71d8950"></a>

#### When the condition does not match (<code>else</code>)

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ccfa2cfb5a28450db4b3">[<code>&#35;</code>](<#dt-root>)</span>

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">partitions {
    compatible = "fixed-partitions";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    partition@100000 {
        compatible = "u-boot";
        reg = &lt;0x100000 0xf00000&gt;;
        align-size = &lt;0x1000&gt;;
        align-end = &lt;0x10000&gt;;
    };

    partition@200000 {
        compatible = "tfa-bl31";
        reg = &lt;0x200000 0x100000&gt;;
        align = &lt;0x4000&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-only OR BSD-2-Clause</span></p>

<p id="dt-comment-1"><strong>Line 149:</strong> <span> This is a generic file other binding inherit from and extend</span></p>

</details>

---

# Qualcomm SMEM NAND flash partition parser

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

> Device-tree binding reference for Qualcomm SMEM NAND flash partition parser.

<!-- 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;partitions&#47;qcom&#44;smem&#45;part&#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;Manivannan Sadhasivam &#60;manivannan&#46;sadhasivam&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Qualcomm SoCs supporting the NAND controller interface features a Shared
Memory (SMEM) based partition table scheme. The maximum partitions supported
varies between partition table revisions. V3 supports maximum 16 partitions
and V4 supports 48 partitions.</p>
</div>

<a id="dt-865ef19e891fb9fe7b15"></a>

## Automatic schema selection (<code>select</code>)

<code>false</code>

Not selected automatically by this rule.

<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;qcom&#44;smem&#45;part&#34;</code></span>

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

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

<a id="dt-57b90df3618b22f3e5f7"></a>

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

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

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#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">flash {
    partitions {
        compatible = "qcom,smem-part";
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">/* Example declaring dynamic partition */
flash {
    partitions {
        compatible = "qcom,smem-part";

        partition-art {
            compatible = "nvmem-cells";
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;1&gt;;
            label = "0:art";

            macaddr_art_0: macaddr@0 {
                reg = &lt;0x0 0x6&gt;;
            };

            macaddr_art_6: macaddr@6 {
                reg = &lt;0x6 0x6&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-only OR BSD-2-Clause)</span></p>

</details>

---

# RedBoot FLASH Image System (FIS) Partitions

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

> Device-tree binding reference for RedBoot FLASH Image System (FIS) Partitions.

<!-- 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;partitions&#47;redboot&#45;fis&#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">The FLASH Image System (FIS) directory is a flash description format closely associated with the RedBoot boot loader. It uses one single flash eraseblock in the flash to store an index of all images in the flash. This block size will vary depending on flash but is typically 32 KB in size.</p>
</div>

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

<a id="dt-865ef19e891fb9fe7b15"></a>

## Automatic schema selection (<code>select</code>)

<code>false</code>

Not selected automatically by this rule.

<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;redboot&#45;fis&#34;</code></span>

<a id="dt-631b114e499cd597f3c9"></a>

### <code>fis&#45;index&#45;block</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-cd8f513d3701b160a368">[<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-54422c3a235c093e4011">
<p style="white-space: pre-wrap">a index to the eraseblock containing the FIS directory on this device. On a flash memory with 32KB eraseblocks, 0 means the first eraseblock at 0x00000000, 1 means the second eraseblock at 0x00008000 and so on.</p>
</div>

**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;fis&#45;index&#45;block&#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">flash {
  partitions {
    compatible = "redboot-fis";
    fis-index-block = &lt;0&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Simple partition types

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

> Device-tree binding reference for Simple partition 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;mtd&#47;partitions&#47;simple&#45;partition&#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">Simple partition types which only define a "compatible" value and no custom properties.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Rafał Miłecki &#60;rafal&#64;milecki&#46;pl&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Simon Glass &#60;sjg&#64;chromium&#46;org&#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>partition&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-root>)</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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;brcm&#44;bcm4908&#45;firmware&#34;</code></span>
>
> <div id="dt-ab1c3e7063bd95dc962e">
> <p style="white-space: pre-wrap">Broadcom BCM4908 CFE bootloader firmware partition</p>
> </div>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;brcm&#44;bcm963xx&#45;imagetag&#34;</code></span>
>
> <div id="dt-4b64ce44adfe069638c4">
> <p style="white-space: pre-wrap">The BCM963XX ImageTag is a simple firmware header describing the offsets and sizes of the rootfs and kernel parts contained in the firmware.</p>
> </div>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> **Exact value (<code>const</code>):** <span id="dt-710bc579d54b8b6b1f6c"><code>&#34;seama&#34;</code></span>
>
> <div id="dt-34ebc3371373135d1528">
> <p style="white-space: pre-wrap">The SEAttle iMAge (SEAMA) partition is a type of partition used for NAND flash devices. This type of flash image is found in some D-Link routers such as DIR-645, DIR-842, DIR-859, DIR-860L, DIR-885L, DIR890L and DCH-M225, as well as in WD and NEC routers on the ath79 (MIPS), Broadcom BCM53xx, and RAMIPS platforms. This partition type does not have children defined in the device tree, they need to be detected by software.</p>
> </div>

<a id="dt-61219c29f99de6d21702"></a>

**Rule 4**

> **Exact value (<code>const</code>):** <span id="dt-bb8aa9a35453860e510c"><code>&#34;u&#45;boot&#34;</code></span>
>
> <div id="dt-2e7dbd5da540c0c7ff41">
> <p style="white-space: pre-wrap">u-boot.bin from U-Boot project.
> This corresponds to a binman 'entry'. It is a single partition which holds data of a defined type.
> Binman uses the type to indicate what data file / type to place in the partition. There are quite a number of binman-specific entry types, such as section, fill and files, to be added later.</p>
> </div>

<a id="dt-6932ba24e194ea67730d"></a>

**Rule 5**

> **Exact value (<code>const</code>):** <span id="dt-db09842262b0bfa9d4c5"><code>&#34;tfa&#45;bl31&#34;</code></span>
>
> <div id="dt-67e1c2ab404e45238d0a">
> <p style="white-space: pre-wrap">bl31.bin or bl31.elf from TF-A project
> This corresponds to a binman 'entry'. It is a single partition which holds data of a defined type.</p>
> </div>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not 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>

---

# TP-Link SafeLoader partitions

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

> Device-tree binding reference for TP-Link SafeLoader partitions.

<!-- 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;partitions&#47;tplink&#44;safeloader&#45;partitions&#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">TP-Link home routers store various data on flash (e.g. bootloader,
flash layout, firmware, product info, configuration, calibration
data). That requires flash partitioning.</p>
<p style="white-space: pre-wrap">Flash space layout of TP-Link devices is stored on flash itself using
a custom ASCII-based format. That format was first found in TP-Link
devices with a custom SafeLoader bootloader. Later it was adapted to
CFE and U-Boot bootloaders.</p>
<p style="white-space: pre-wrap">Partitions specified in partitions table cover whole flash space. Some
contain static data that shouldn't get modified (device's MAC or WiFi
calibration data). Others are semi-static (like kernel). Finally some
partitions contain fully changeable content (like rootfs).</p>
<p style="white-space: pre-wrap">This binding describes partitioning method and defines offset of ASCII
based partitions table. That offset is picked at manufacturing process
and doesn't change.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Rafał Miłecki &#60;rafal&#64;milecki&#46;pl&#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

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

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

### <code>partitions&#45;table&#45;offset</code> — required here

<div id="dt-92a07f0da47492836a6c">
<p style="white-space: pre-wrap">Flash offset of partitions table</p>
</div>

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

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

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

<a id="dt-231a3b187307fb46e134"></a>

### <code>&#94;partition&#45;&#46;&#42;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ba27bd4aa2ba8f5bdd43">[<code>partition&#46;yaml&#35;&#47;&#36;defs&#47;partition&#45;node</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-b43252f69d556623c54c>)</span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;partitions&#45;table&#45;offset&#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">partitions {
    compatible = "tplink,safeloader-partitions";
    partitions-table-offset = &lt;0x100000&gt;;

    partition-file-system {
            linux,rootfs;
    };
};
</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-only OR BSD-2-Clause</span></p>

</details>

---

# U-Boot bootloader partition

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

> Device-tree binding reference for U-Boot bootloader partition.

<!-- 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;partitions&#47;u&#45;boot&#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">U-Boot is a bootloader commonly used in embedded devices. It's almost always
located on some kind of flash device.</p>
<p style="white-space: pre-wrap">Device configuration is stored as a set of environment variables that are
located in a (usually standalone) block of data.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Rafał Miłecki &#60;rafal&#64;milecki&#46;pl&#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>partition&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-root>)</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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;brcm&#44;u&#45;boot&#34;</code></span>
>
> <div id="dt-ab1c3e7063bd95dc962e">
> <p style="white-space: pre-wrap">Broadcom stores environment variables inside a U-Boot partition. They
> can be identified by a custom header with magic value.</p>
> </div>

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

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

<a id="dt-231a3b187307fb46e134"></a>

### <code>&#94;partition&#45;&#46;&#42;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ba27bd4aa2ba8f5bdd43">[<code>partition&#46;yaml&#35;&#47;&#36;defs&#47;partition&#45;node</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-b43252f69d556623c54c>)</span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">partitions {
    compatible = "fixed-partitions";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    partition@0 {
        compatible = "brcm,u-boot";
        reg = &lt;0x0 0x100000&gt;;
        label = "u-boot";

        partition-u-boot-env {
        };
    };

    partition@100000 {
        reg = &lt;0x100000 0x1ff00000&gt;;
        label = "firmware";
    };
};
</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-only OR BSD-2-Clause</span></p>

</details>

---

# UBI volume

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

> Device-tree binding reference for UBI volume.

<!-- 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;partitions&#47;ubi&#45;volume&#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">This binding describes a single UBI volume. Volumes can be matches either
by their ID or their name, or both.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Daniel Golle &#60;daniel&#64;makrotopia&#46;org&#62;&#34;</code></span>

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

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fe5054de33534a02ed70">[<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-3e0c8a79b8a004b1e674">
<p style="white-space: pre-wrap">Match UBI volume ID</p>
</div>

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

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

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

<div id="dt-8486ebdd4ddfe6cb2611">
<p style="white-space: pre-wrap">Match UBI volume ID</p>
</div>

<a id="dt-471cf9e1db75cd15a4c6"></a>

### <code>nvmem&#45;layout</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-afa21dd3acda23c4c1d4">[<code>&#47;schemas&#47;nvmem&#47;layouts&#47;nvmem&#45;layout&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-nvmem/layouts/nvmem-layout.md#dt-root>)</span>

<div id="dt-f65bd309d804ec56f5a9">
<p style="white-space: pre-wrap">This container may reference an NVMEM layout parser.</p>
</div>

<a id="dt-413065af65ac6af8f24e"></a>

## At least one of these rules must match (<code>anyOf</code>)

<a id="dt-96eb361b08260472facb"></a>

### Rule 1

> **Required in this object (<code>required</code>):** <a id="dt-a3ce052275bac2469e04"></a> <span id="dt-396aa8b3d1b1aeeb2c7a"><code>&#34;volid&#34;</code></span>

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

### Rule 2

> **Required in this object (<code>required</code>):** <a id="dt-bb61b4b3827abc4e9b85"></a> <span id="dt-cffc196e945e46f91e3a"><code>&#34;volname&#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 39:</strong> <span> This is a generic file other binding inherit from and extend</span></p>

</details>

---

# Allwinner A10 NAND Controller

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

> Device-tree binding reference for Allwinner A10 NAND 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;mtd&#47;allwinner&#44;sun4i&#45;a10&#45;nand&#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;Chen&#45;Yu Tsai &#60;wens&#64;csie&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Maxime Ripard &#60;mripard&#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> — required here

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;allwinner&#44;sun4i&#45;a10&#45;nand&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;allwinner&#44;sun8i&#45;a23&#45;nand&#45;controller&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;allwinner&#44;sun50i&#45;h616&#45;nand&#45;controller&#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-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-4e9a371963ac013ad39d"></a>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-1f26a8d0aa315cbb9547"><code>2</code></span>

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">Bus Clock</p>
> </div>

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

**Item 2**

> <div id="dt-6b79aebfd2287d4aeab8">
> <p style="white-space: pre-wrap">Module Clock</p>
> </div>

<a id="dt-2e04c77836db3f7805be"></a>

**Item 3**

> <div id="dt-98e44cf6c35fb1f8c6f9">
> <p style="white-space: pre-wrap">ECC Clock</p>
> </div>

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

**Item 4**

> <div id="dt-dea0dc8762ea31ff72ac">
> <p style="white-space: pre-wrap">MBus Clock</p>
> </div>

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-dab867b03596a88fc725"><code>2</code></span>

<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;ahb&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;mod&#34;</code></span>

<a id="dt-261be8310c899fd46631"></a>

**Item 3**

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

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

**Item 4**

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

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

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

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

<a id="dt-563c20491090a57ac4c9"></a>

### <code>reset&#45;names</code> — not listed as required here

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

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

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

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

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

### <code>dma&#45;names</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-05981720df4cd7d43d3c"><code>&#34;rxtx&#34;</code></span>

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

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

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

### <code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4047c0ee7509401a701c">[<code>raw&#45;nand&#45;chip&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/raw-nand-chip.md#dt-root>)</span>

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

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

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

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

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

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

<a id="dt-28ce93b5e5919037e042"></a>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-e0bd7979a17ce1c59aae"></a> <span id="dt-fe0b5f76fd0c22e710f3"><code>512</code></span>, <span id="dt-7be13caae78616f1aa06"><code>1024</code></span>

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

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

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

<a id="dt-750ba5c1cea6d71c5bc6"></a>

**<code>allwinner&#44;rb</code> — not listed as required here**

<div id="dt-3dc400e42bea3436502e">
<p style="white-space: pre-wrap">Contains the native Ready/Busy IDs.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-3abc625c065a48e15a79">[<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>

**Minimum number of items (<code>minItems</code>):** <span id="dt-9dba19f3b37831ecc047"><code>1</code></span>

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

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

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

> **Minimum value (<code>minimum</code>):** <span id="dt-157925e2926f16e0e61d"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-97913eb6133b407caa61"><code>1</code></span>

<a id="dt-5957228d95e49801719f"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</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>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-61039da0155527cc02ba"></a> <span id="dt-20f8a813aab744ff239a"><code>&#34;allwinner&#44;sun4i&#45;a10&#45;nand&#34;</code></span>, <span id="dt-97636aa7a2139f7622b5"><code>&#34;allwinner&#44;sun8i&#45;a23&#45;nand&#45;controller&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-cc2edf6d98aafaff5f44"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-3aa42810e911ab2a41de"><code>2</code></span>
> >
> > <a id="dt-dde63784a5285c3f925c"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-0ef0c7f4bdcebd3c8c32"><code>2</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-7838023cb1ac8ba1fc13"></a> <span id="dt-2698b34438b1aced3e06"><code>&#34;allwinner&#44;sun50i&#45;h616&#45;nand&#45;controller&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-8308c8f88877cb33a5a0"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-9d121778b610668f3c64"><code>4</code></span>
> >
> > <a id="dt-c6cd9634653c9bd1a32e"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-36a2ca4e9a374680acbd"><code>4</code></span>

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/clock/sun6i-rtc.h&gt;
#include &lt;dt-bindings/clock/sun8i-a23-a33-ccu.h&gt;
#include &lt;dt-bindings/reset/sun8i-a23-a33-ccu.h&gt;

nand-controller@1c03000 {
    compatible = "allwinner,sun8i-a23-nand-controller";
    reg = &lt;0x01c03000 0x1000&gt;;
    interrupts = &lt;GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH&gt;;
    clocks = &lt;&amp;ccu CLK_BUS_NAND&gt;, &lt;&amp;ccu CLK_NAND&gt;;
    clock-names = "ahb", "mod";
    resets = &lt;&amp;ccu RST_BUS_NAND&gt;;
    reset-names = "ahb";
    dmas = &lt;&amp;dma 5&gt;;
    dma-names = "rxtx";
    pinctrl-names = "default";
    pinctrl-0 = &lt;&amp;nand_pins &amp;nand_cs0_pin &amp;nand_rb0_pin&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&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>

---

# Amlogic NAND Flash Controller (NFC) for GXBB/GXL/AXG family SoCs

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

> Device-tree binding reference for Amlogic NAND Flash Controller (NFC) for GXBB/GXL/AXG family SoCs.

<!-- 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;amlogic&#44;meson&#45;nand&#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>

<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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;liang&#46;yang&#64;amlogic&#46;com&#34;</code></span>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;amlogic&#44;meson&#45;gxl&#45;nfc&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;amlogic&#44;meson&#45;axg&#45;nfc&#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>2</code></span>

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

### <code>reg&#45;names</code> — not listed as required here

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;nfc&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;emmc&#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-4e9a371963ac013ad39d"></a>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-1f26a8d0aa315cbb9547"><code>2</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;core&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;device&#34;</code></span>

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

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

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

### <code>&#94;nand&#64;&#91;0&#45;7&#93;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7e132ef8714d0ef959ab">[<code>raw&#45;nand&#45;chip&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/raw-nand-chip.md#dt-root>)</span>

<a id="dt-79f79c377c9b68422e41"></a>

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

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

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-13abec96374eea0eccef"><code>1</code></span>

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

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

**Exact value (<code>const</code>):** <span id="dt-0e74dc58c13762b55e36"><code>&#34;hw&#34;</code></span>

<a id="dt-44d4b7f369dd06ae4a15"></a>

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

**Allowed values (<code>enum</code>):** <a id="dt-38f771f28df2953b92d8"></a> <span id="dt-6ad4a6596ea175c10bbd"><code>512</code></span>, <span id="dt-d89c51f08147550c09c9"><code>1024</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-e954ce33de909bc2e11b"></a> <span id="dt-bec9cf118f8d9d4ecf72"><code>8</code></span>, <span id="dt-33639a2ee0e47e551349"><code>16</code></span>, <span id="dt-af8938350283ed03d1ce"><code>24</code></span>, <span id="dt-fef931c30258b4e4431c"><code>30</code></span>, <span id="dt-3ab01a65b41557e11ea1"><code>40</code></span>, <span id="dt-04ceb72dd9a108f1c5d4"><code>50</code></span>, <span id="dt-02de81e6c053e6175f48"><code>60</code></span>

<div id="dt-853e9d6b9a780a11fd2a">
<pre><code>The ECC configurations that can be supported are as follows.
  meson-gxl-nfc 8, 16, 24, 30, 40, 50, 60
  meson-axg-nfc 8</code></pre>
</div>

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

**<code>nand&#45;rb</code> — not listed as required here**

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

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

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

> **Maximum value (<code>maximum</code>):** <span id="dt-16f3f3017b9cdb5fa58a"><code>0</code></span>

<a id="dt-7443c0c36c299e947a65"></a>

**<code>amlogic&#44;boot&#45;pages</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ee63bb319463f954a238">[<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-e8a8502342eca7da3f33">
<p style="white-space: pre-wrap">Number of pages starting from offset 0, where a special ECC configuration must be used because it is accessed by the ROM code. This ECC configuration uses 384 bytes data blocks. Also scrambling mode is enabled for such pages.</p>
</div>

<a id="dt-284cbf19d1692e48212a"></a>

**<code>amlogic&#44;boot&#45;page&#45;step</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-06aa0bbc88e5f7c8641a">[<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-74cafcd7ebb873cb0f9e">
<p style="white-space: pre-wrap">Interval between pages, accessed by the ROM code. For example we have 8 pages [0, 7]. Pages 0,2,4,6 are accessed by the ROM code, so this field will be 2 (e.g. every 2nd page). Rest of pages - 1,3,5,7 are read/written without this mode.</p>
</div>

<a id="dt-787c625b0fca14cff0cc"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-21c6e596bac8062e93b0"></a>

#### Property dependencies (<code>dependencies</code>)

<a id="dt-895dc89d30e3ffd7dfb8"></a>

**<code>nand&#45;ecc&#45;strength</code> — applies when this property is present**

Also requires: <span id="dt-f0084e7de6a576ade0f2"><code>&#34;nand&#45;ecc&#45;step&#45;size&#34;</code></span>

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

**<code>nand&#45;ecc&#45;step&#45;size</code> — applies when this property is present**

Also requires: <span id="dt-7bdabc398105466a242d"><code>&#34;nand&#45;ecc&#45;strength&#34;</code></span>

<a id="dt-689db295e4a761f1bd2f"></a>

**<code>amlogic&#44;boot&#45;pages</code> — applies when this property is present**

Also requires: <span id="dt-2d6c7315212d48f78ce1"><code>&#34;nand&#45;is&#45;boot&#45;medium&#34;</code></span>, <span id="dt-6337eafabab827356ad7"><code>&#34;amlogic&#44;boot&#45;page&#45;step&#34;</code></span>

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

**<code>amlogic&#44;boot&#45;page&#45;step</code> — applies when this property is present**

Also requires: <span id="dt-90881dd1539549de88d5"><code>&#34;nand&#45;is&#45;boot&#45;medium&#34;</code></span>, <span id="dt-0f4694297300e4b00d0b"><code>&#34;amlogic&#44;boot&#45;pages&#34;</code></span>

**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>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/clock/axg-clkc.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
nand-controller@ffe07800 {
  compatible = "amlogic,meson-axg-nfc";
  reg = &lt;0xffe07800 0x100&gt;, &lt;0xffe07000 0x800&gt;;
  reg-names = "nfc", "emmc";
  interrupts = &lt;GIC_SPI 34 IRQ_TYPE_EDGE_RISING&gt;;
  clocks = &lt;&amp;clkc CLKID_SD_EMMC_C&gt;,  &lt;&amp;clkc CLKID_FCLK_DIV2&gt;;
  clock-names = "core", "device";

  pinctrl-0 = &lt;&amp;nand_pins&gt;;
  pinctrl-names = "default";

  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  nand@0 {
    reg = &lt;0&gt;;
    nand-rb = &lt;0&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Arasan NAND Flash Controller with ONFI 3.1 support

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

> Device-tree binding reference for Arasan NAND Flash Controller with ONFI 3.1 support.

<!-- 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;arasan&#44;nand&#45;controller&#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>

<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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Michal Simek &#60;michal&#46;simek&#64;amd&#46;com&#62;&#34;</code></span>

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

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

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

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

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

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;xlnx&#44;zynqmp&#45;nand&#45;controller&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;arasan&#44;nfc&#45;v3p10&#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

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">Controller clock</p>
> </div>

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

**Item 2**

> <div id="dt-6b79aebfd2287d4aeab8">
> <p style="white-space: pre-wrap">NAND bus clock</p>
> </div>

<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;controller&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;bus&#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>

**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;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;interrupts&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">nfc: nand-controller@ff100000 {
    compatible = "xlnx,zynqmp-nand-controller", "arasan,nfc-v3p10";
    reg = &lt;0xff100000 0x1000&gt;;
    clock-names = "controller", "bus";
    clocks = &lt;&amp;clk200&gt;, &lt;&amp;clk100&gt;;
    interrupt-parent = &lt;&amp;gic&gt;;
    interrupts = &lt;0 14 4&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&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-only OR BSD-2-Clause)</span></p>

</details>

---

# PL353 NAND Controller

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

> Device-tree binding reference for PL353 NAND Controller.

<!-- 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;arm&#44;pl353&#45;nand&#45;r2p1&#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>

<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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

**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-e1f655ed0ff4d595dadc"></a>

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

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

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-aaadfb6b044cada8472e"><code>&#34;arm&#44;pl353&#45;nand&#45;r2p1&#34;</code></span>

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

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

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

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

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

**Item 1**

> <a id="dt-81bf77df9cea27d02479"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-3039ee63c7c62f8bd596"></a>
>
> **Item 1**
>
> > <div id="dt-ef6d49bdd236bbde0bef">
> > <p style="white-space: pre-wrap">CS with regard to the parent ranges property</p>
> > </div>
>
> <a id="dt-2bbfb139ed2155ecf016"></a>
>
> **Item 2**
>
> > <div id="dt-a56be4070d9ae04e66e7">
> > <p style="white-space: pre-wrap">Offset of the memory region requested by the device</p>
> > </div>
>
> <a id="dt-bb1f3b7a1f769b9dea2a"></a>
>
> **Item 3**
>
> > <div id="dt-4444b1d0f903a417b5ed">
> > <p style="white-space: pre-wrap">Length of the memory region requested by the device</p>
> > </div>

**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>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">smcc: memory-controller@e000e000 {
    compatible = "arm,pl353-smc-r2p1", "arm,primecell";
    reg = &lt;0xe000e000 0x0001000&gt;;
    clock-names = "memclk", "apb_pclk";
    clocks = &lt;&amp;clkc 11&gt;, &lt;&amp;clkc 44&gt;;
    ranges = &lt;0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */
              0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */
              0x2 0x0 0xe4000000 0x2000000&gt;; /* SRAM/NOR CS1 region */
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;1&gt;;

    nfc0: nand-controller@0,0 {
        compatible = "arm,pl353-nand-r2p1";
        reg = &lt;0 0 0x1000000&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Atmel DataFlash

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

> Device-tree binding reference for Atmel DataFlash.

<!-- 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;atmel&#44;dataflash&#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;Nayab Sayed &#60;nayabbasha&#46;sayed&#64;microchip&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Atmel DataFlash is a low pin-count serial interface sequential access Flash memory, compatible with SPI standard. The device tree may optionally contain sub-nodes describing partitions of the address space.</p>
</div>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;atmel&#44;at45db321d&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;atmel&#44;at45db041e&#34;</code></span>, <span id="dt-b7d19de74fd35364d49f"><code>&#34;atmel&#44;at45db642d&#34;</code></span>, <span id="dt-6cbdeefc52e7132bc62c"><code>&#34;atmel&#44;at45db021d&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;atmel&#44;at45&#34;</code></span>
>
> <a id="dt-8aea0680b70f72ffdfb0"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-a8216d5f954c632b59e8"><code>&#34;atmel&#44;dataflash&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;atmel&#44;at45&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;atmel&#44;dataflash&#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>

**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>

<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>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8549616abc3b04702c51">[<code>&#47;schemas&#47;spi&#47;spi&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-peripheral-props.md#dt-root>)</span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    flash@1 {
        compatible = "atmel,at45db321d", "atmel,at45", "atmel,dataflash";
        reg = &lt;1&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Broadcom STB NAND Controller

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

> Device-tree binding reference for Broadcom STB NAND Controller.

<!-- 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;brcm&#44;brcmnand&#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;Brian Norris &#60;computersforpeace&#64;gmail&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Kamal Dasu &#60;kdasu&#46;kdev&#64;gmail&#46;com&#62;&#34;</code></span>, <span id="dt-2f1516674166ff6e66b8"><code>&#34;William Zhang &#60;william&#46;zhang&#64;broadcom&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Broadcom Set-Top Box NAND controller supports low-level access to raw NAND
flash chips. It has a memory-mapped register interface for both control
registers and for its data input/output buffer. On some SoCs, this controller
is paired with a custom DMA engine (inventively named "Flash DMA") which
supports basic PROGRAM and READ functions, among other features.</p>
<p style="white-space: pre-wrap">This controller was originally designed for STB SoCs (BCM7xxx) but is now
available on a variety of Broadcom SoCs, including some BCM3xxx, MIPS based
Broadband SoC (BCM63xx), ARM based Broadband SoC (BCMBCA) and iProc/Cygnus.
Its history includes several similar (but not fully register compatible)
versions.</p>
<p style="white-space: pre-wrap">-- Additional SoC-specific NAND controller properties --</p>
<p style="white-space: pre-wrap">The NAND controller is integrated differently on the variety of SoCs on which
it is found. Part of this integration involves providing status and enable
bits with which to control the 8 exposed NAND interrupts, as well as hardware
for configuring the endianness of the data bus. On some SoCs, these features
are handled via standard, modular components (e.g., their interrupts look like
a normal IRQ chip), but on others, they are controlled in unique and
interesting ways, sometimes with registers that lump multiple NAND-related
functions together. The former case can be described simply by the standard
interrupts properties in the main controller node. But for the latter
exceptional cases, we define additional 'compatible' properties and associated
register resources within the NAND controller node above.</p>
</div>

<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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;brcm&#44;brcmnand&#45;v2&#46;1&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;brcm&#44;brcmnand&#45;v2&#46;2&#34;</code></span>, <span id="dt-b7d19de74fd35364d49f"><code>&#34;brcm&#44;brcmnand&#45;v4&#46;0&#34;</code></span>, <span id="dt-6cbdeefc52e7132bc62c"><code>&#34;brcm&#44;brcmnand&#45;v5&#46;0&#34;</code></span>, <span id="dt-fd88adda17227ca32776"><code>&#34;brcm&#44;brcmnand&#45;v6&#46;0&#34;</code></span>, <span id="dt-f0dfbb755d86acc4c265"><code>&#34;brcm&#44;brcmnand&#45;v6&#46;1&#34;</code></span>, <span id="dt-fd90c4a6b4c12fdce245"><code>&#34;brcm&#44;brcmnand&#45;v6&#46;2&#34;</code></span>, <span id="dt-e2dcb0e367ca5c3b7bca"><code>&#34;brcm&#44;brcmnand&#45;v7&#46;0&#34;</code></span>, <span id="dt-8f172ba5f5ba57694b17"><code>&#34;brcm&#44;brcmnand&#45;v7&#46;1&#34;</code></span>, <span id="dt-818bfc86902057a0cfa5"><code>&#34;brcm&#44;brcmnand&#45;v7&#46;2&#34;</code></span>, <span id="dt-40cc8e0354bd3c46c2b0"><code>&#34;brcm&#44;brcmnand&#45;v7&#46;3&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;brcm&#44;brcmnand&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <div id="dt-4b64ce44adfe069638c4">
> <p style="white-space: pre-wrap">BCMBCA SoC-specific NAND controller</p>
> </div>
>
> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;brcm&#44;nand&#45;bcm63138&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-a400b9f7a23cd39bfbe8"></a> <span id="dt-150639d9ec5a95647f02"><code>&#34;brcm&#44;brcmnand&#45;v7&#46;0&#34;</code></span>, <span id="dt-1d85ec3bb3f930ba81fc"><code>&#34;brcm&#44;brcmnand&#45;v7&#46;1&#34;</code></span>
>
> <a id="dt-1655c7bc2063a21f60f8"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-7c57653c6bcac024338a"><code>&#34;brcm&#44;brcmnand&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <div id="dt-34ebc3371373135d1528">
> <p style="white-space: pre-wrap">iProc SoC-specific NAND controller</p>
> </div>
>
> <a id="dt-e626d61e9d5d76cc48f9"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6b46935eab08de6d1f0a"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-b4cf31a5f463012e1429"><code>&#34;brcm&#44;nand&#45;iproc&#34;</code></span>
>
> <a id="dt-5ea82ea034747ba6da29"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-e9c55cb91230c7ee5a28"><code>&#34;brcm&#44;brcmnand&#45;v6&#46;1&#34;</code></span>

<a id="dt-61219c29f99de6d21702"></a>

**Rule 4**

> <div id="dt-2e7dbd5da540c0c7ff41">
> <p style="white-space: pre-wrap">BCM63168 SoC-specific NAND controller</p>
> </div>
>
> <a id="dt-a1b1c435b08c85ff96c7"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4758c8f9c99bfa28b10c"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-4c3894ced8f7125f7050"><code>&#34;brcm&#44;nand&#45;bcm63168&#34;</code></span>
>
> <a id="dt-c99d921c49bf15e79633"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-9e0f2ef968dd632f09b7"><code>&#34;brcm&#44;nand&#45;bcm6368&#34;</code></span>
>
> <a id="dt-a173ae1b2bc94ef6d3cd"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-fa32c9ce3acc1f92990a"><code>&#34;brcm&#44;brcmnand&#45;v4&#46;0&#34;</code></span>
>
> <a id="dt-dda64f8dac7dddd1d9f5"></a>
>
> **Item 4**
>
> > **Exact value (<code>const</code>):** <span id="dt-326780ebf194b807e1ae"><code>&#34;brcm&#44;brcmnand&#34;</code></span>

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-4b3e7791b11b96c3db87"><code>1</code></span>

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

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-3f2820449161ca72af98"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-58a7d566e1c7a6b0e414"><code>6</code></span>

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

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

> **Allowed values (<code>enum</code>):** <a id="dt-ac696420caa6496e1958"></a> <span id="dt-4e7351f724ec96f3fd6e"><code>&#34;nand&#34;</code></span>, <span id="dt-804ff64a0e610fe7b5a6"><code>&#34;flash&#45;dma&#34;</code></span>, <span id="dt-3a931cbdb4213571ebde"><code>&#34;flash&#45;edu&#34;</code></span>, <span id="dt-efefb5dfabb6b4a258f0"><code>&#34;nand&#45;cache&#34;</code></span>, <span id="dt-f1db535c0f128459383d"><code>&#34;nand&#45;int&#45;base&#34;</code></span>, <span id="dt-8e8249efea5d45922789"><code>&#34;iproc&#45;idm&#34;</code></span>, <span id="dt-1977b1f887e5c23824cf"><code>&#34;iproc&#45;ext&#34;</code></span>

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-1691b9edf145244244a0"><code>1</code></span>

<a id="dt-985aed94c3a5de8e946a"></a>

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

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

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">NAND CTLRDY interrupt</p>
> </div>

<a id="dt-14fdf3275cf454d3c593"></a>

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">FLASH_DMA_DONE (if flash DMA is available) or FLASH_EDU_DONE (if EDU is available)</p>
> </div>

<a id="dt-8aa4fd7705c68de75d2b"></a>

### <code>interrupt&#45;names</code> — not listed as required here

**Minimum number of items (<code>minItems</code>):** <span id="dt-30089c7b6e408306475b"><code>1</code></span>

<a id="dt-77e94e63ca0b20bb5ef1"></a>

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

<a id="dt-1198ecbdbe49337cf73e"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-7f7686a533ef09dda0b1"><code>&#34;nand&#95;ctlrdy&#34;</code></span>

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

**Item 2**

> **Allowed values (<code>enum</code>):** <a id="dt-d25b2656a5bc6f097628"></a> <span id="dt-337b280e9f156c12b3f9"><code>&#34;flash&#95;dma&#95;done&#34;</code></span>, <span id="dt-b4adbc01099aa2909a74"><code>&#34;flash&#95;edu&#95;done&#34;</code></span>

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

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

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">reference to the clock for the NAND controller</p>
</div>

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

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

**Exact value (<code>const</code>):** <span id="dt-882f4571b4b135d59582"><code>&#34;nand&#34;</code></span>

<a id="dt-605f58e209f9992ea052"></a>

### <code>brcm&#44;nand&#45;has&#45;wp</code> — not listed as required here

<div id="dt-7e13e4418244550aef59">
<p style="white-space: pre-wrap">Some versions of this IP include a write-protect (WP) control bit. It is always available on &gt;= v7.0. Use this property to describe the rare earlier versions of this core that include WP</p>
</div>

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

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

### <code>brcm&#44;wp&#45;not&#45;connected</code> — not listed as required here

<div id="dt-25ce590ad239d6dde2dd">
<p style="white-space: pre-wrap">Use this property when WP pin is not physically wired to the NAND chip. Write protection feature cannot be used. By default, controller assumes the pin is connected and feature is used.</p>
</div>

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

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

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

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

### <code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4047c0ee7509401a701c">[<code>raw&#45;nand&#45;chip&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/raw-nand-chip.md#dt-root>)</span>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-914e04e598696601f509"><code>&#34;brcm&#44;nandcs&#34;</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-e0bd7979a17ce1c59aae"></a> <span id="dt-fe0b5f76fd0c22e710f3"><code>512</code></span>, <span id="dt-7be13caae78616f1aa06"><code>1024</code></span>

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

**<code>brcm&#44;nand&#45;oob&#45;sector&#45;size</code> — not listed as required here**

<div id="dt-d3d1b1c41c25fcd16c0a">
<p style="white-space: pre-wrap">integer, to denote the spare area sector size
expected for the ECC layout in use. This size, in
addition to the strength and step-size,
determines how the hardware BCH engine will lay
out the parity bytes it stores on the flash.
This property can be automatically determined by
the flash geometry (particularly the NAND page
and OOB size) in many cases, but when booting
from NAND, the boot controller has only a limited
number of available options for its default ECC
layout.</p>
</div>

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

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

**<code>brcm&#44;nand&#45;ecc&#45;use&#45;strap</code> — not listed as required here**

<div id="dt-80a54f55f4770a364b49">
<p style="white-space: pre-wrap">This property requires the host system to get the ECC related settings from the SoC NAND boot strap configuration instead of the generic NAND ECC settings. This is a common hardware design on BCMBCA based boards. This strap ECC option and generic NAND ECC option can not be specified at the same time.</p>
</div>

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

<a id="dt-5957228d95e49801719f"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<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>nand&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9b74ad9882646c4a5116"><code>&#34;brcm&#44;nand&#45;bcm63138&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-d950ec7774f5cc573245"></a>
> >
> > **<code>reg&#45;names</code> — not listed as required here**
> >
> > <a id="dt-a800b5914a4cda2cce34"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-0428080af588ed1ee599"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9324644531bdb5ab5d65"><code>&#34;nand&#34;</code></span>
> >
> > <a id="dt-7f354359a699c3516473"></a>
> >
> > **Item 2**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-ec321e37d7c7679af086"><code>&#34;nand&#45;int&#45;base&#34;</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8cd5c6ac7cc13c2d9acf"><code>&#34;brcm&#44;nand&#45;bcm6368&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bd9dc2a7f2932e6ab1da"></a>
> >
> > **<code>reg&#45;names</code> — not listed as required here**
> >
> > <a id="dt-fde1d3c624a00abc8018"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-b3b2c750f659b2580a6c"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-b3cf4af1bb090e25b2c6"><code>&#34;nand&#34;</code></span>
> >
> > <a id="dt-ca1e83427ff0d146577e"></a>
> >
> > **Item 2**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-e4d8bd7b14e21e79c54e"><code>&#34;nand&#45;int&#45;base&#34;</code></span>
> >
> > <a id="dt-318fc332effea334604e"></a>
> >
> > **Item 3**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-6129ddfb7890e6ac7a69"><code>&#34;nand&#45;cache&#34;</code></span>

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

### Rule 4

> <a id="dt-5d622c5a2672c1e49b35"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-8d84f7bba76b4e26221f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-11dc65c5cf7abc0317bb"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-3de4a4db25c09109abf4"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-5c56c46a4e287cf52ece"><code>&#34;brcm&#44;nand&#45;iproc&#34;</code></span>
>
> <a id="dt-889ceb40bc531bf0dc1d"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-7cd597a6bb6b91730c25"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-45804beff97bd082668f"></a>
> >
> > **<code>reg&#45;names</code> — not listed as required here**
> >
> > <a id="dt-2ebcf4f110c89094eefb"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-43a64a187f9fc3bdab95"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-3897372980c01b7954e8"><code>&#34;nand&#34;</code></span>
> >
> > <a id="dt-b200cdeab497906745de"></a>
> >
> > **Item 2**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-3f4917d088f4511bc35c"><code>&#34;iproc&#45;idm&#34;</code></span>
> >
> > <a id="dt-87ea3d2ea4da138fd4e7"></a>
> >
> > **Item 3**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-70bbf7b0fe0e8a07afd5"><code>&#34;iproc&#45;ext&#34;</code></span>

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

### Rule 5

> <a id="dt-30dd43480a02ff52099e"></a>
>
> #### Condition (<code>if</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-4fc8d2ad4b7a3dfb5411"></a> <span id="dt-dd24be0d6a853b5a83e7"><code>&#34;interrupts&#34;</code></span>
> >
> > <a id="dt-815e247e2e39708faa21"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e87df60ff17e7bb96b31"></a>
> >
> > **<code>interrupts</code> — required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-61939b8dd8d43f65cc77"><code>2</code></span>
>
> <a id="dt-b13bdf6bf01ba2db1729"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-d0be233c145bb706d4e5"></a> <span id="dt-70d480dba72a9448693e"><code>&#34;interrupt&#45;names&#34;</code></span>

<a id="dt-51879ae9be030b28e888"></a>

### Rule 6

> <a id="dt-29f1a7d11303016de0fb"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81980e97cb5664efadfc"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-6d759877466d2bec58d7"></a>
> >
> > **<code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression**
> >
> > **Required in this object (<code>required</code>):** <a id="dt-10356c3da5053e561c0f"></a> <span id="dt-725c3d660e37e7d53d47"><code>&#34;brcm&#44;nand&#45;ecc&#45;use&#45;strap&#34;</code></span>
>
> <a id="dt-5d3814a6fa606b79b9a6"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-1db36e06aed26562c164"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-c2f5651ae395e44d05f2"></a>
> >
> > **<code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-b787fa71638fcac5b8e8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-8b1ee01649b52992744c"></a>
> >
> > **<code>nand&#45;ecc&#45;strength</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-291b4db7a3af34d899e7"></a>
> >
> > **<code>nand&#45;ecc&#45;step&#45;size</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-8d4b89d98059b2412a68"></a>
> >
> > **<code>nand&#45;ecc&#45;maximize</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-b724447476bd42961127"></a>
> >
> > **<code>nand&#45;ecc&#45;algo</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-1ca47480b567f3c48841"></a>
> >
> > **<code>brcm&#44;nand&#45;oob&#45;sector&#45;size</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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;reg&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#45;names&#34;</code></span>

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">nand-controller@f0442800 {
    compatible = "brcm,brcmnand-v7.0", "brcm,brcmnand";
    reg = &lt;0xf0442800 0x600&gt;,
          &lt;0xf0443000 0x100&gt;;
    reg-names = "nand", "flash-dma";
    interrupt-parent = &lt;&amp;hif_intr2_intc&gt;;
    interrupts = &lt;24&gt;, &lt;4&gt;;
    interrupt-names = "nand_ctlrdy", "flash_dma_done";

    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    nand@1 {
        compatible = "brcm,nandcs";
        reg = &lt;1&gt;; // Chip select 1
        nand-on-flash-bbt;
        nand-ecc-strength = &lt;12&gt;;
        nand-ecc-step-size = &lt;512&gt;;

        #address-cells = &lt;1&gt;;
        #size-cells = &lt;1&gt;;
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">nand-controller@10000200 {
    compatible = "brcm,nand-bcm63168", "brcm,nand-bcm6368",
                 "brcm,brcmnand-v4.0", "brcm,brcmnand";
    reg = &lt;0x10000200 0x180&gt;,
          &lt;0x100000b0 0x10&gt;,
          &lt;0x10000600 0x200&gt;;
    reg-names = "nand", "nand-int-base", "nand-cache";
    interrupt-parent = &lt;&amp;periph_intc&gt;;
    interrupts = &lt;50&gt;;
    clocks = &lt;&amp;periph_clk 20&gt;;
    clock-names = "nand";

    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    nand@0 {
        compatible = "brcm,nandcs";
        reg = &lt;0&gt;;
        nand-on-flash-bbt;
        nand-ecc-strength = &lt;1&gt;;
        nand-ecc-step-size = &lt;512&gt;;

        #address-cells = &lt;1&gt;;
        #size-cells = &lt;1&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-only OR BSD-2-Clause</span></p>

</details>

---

# Cadence NAND controller

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

> Device-tree binding reference for Cadence NAND controller.

<!-- 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;cdns&#44;hp&#45;nfc&#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;Niravkumar L Rabara &#60;niravkumar&#46;l&#46;rabara&#64;intel&#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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

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

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

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

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-aaadfb6b044cada8472e"><code>&#34;cdns&#44;hp&#45;nfc&#34;</code></span>

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

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">Controller register set</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">Slave DMA data port register set</p>
> </div>

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

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;reg&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;sdma&#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-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;nf&#95;clk&#34;</code></span>

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

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

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

<a id="dt-4603ee192633e8dffc49"></a>

### <code>dma&#45;coherent</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

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

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

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

### <code>cdns&#44;board&#45;delay&#45;ps</code> — not listed as required here

<div id="dt-81ad3ae2c7ae57cabeb5">
<p style="white-space: pre-wrap">Estimated Board delay. The value includes the total round trip
delay for the signals and is used for deciding on values associated
with data read capture. The example formula for SDR mode is the
following.
board delay = RE#PAD delay + PCB trace to device + PCB trace from device
+ DQ PAD delay</p>
</div>

**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;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;interrupts&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;clocks&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;clock&#45;names&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;

nand-controller@10b80000 {
    compatible = "cdns,hp-nfc";
    reg = &lt;0x10b80000 0x10000&gt;,
          &lt;0x10840000 0x10000&gt;;
    reg-names = "reg", "sdma";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    interrupts = &lt;GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH&gt;;
    clocks = &lt;&amp;clk&gt;;
    clock-names = "nf_clk";
    cdns,board-delay-ps = &lt;4830&gt;;

    nand@0 {
        reg = &lt;0&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-only OR BSD-2-Clause</span></p>

</details>

---

# Denali NAND controller

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

> Device-tree binding reference for Denali NAND controller.

<!-- 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;denali&#44;nand&#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;Masahiro Yamada &#60;yamada&#46;masahiro&#64;socionext&#46;com&#62;&#34;</code></span>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;altr&#44;socfpga&#45;denali&#45;nand&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;socionext&#44;uniphier&#45;denali&#45;nand&#45;v5a&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;socionext&#44;uniphier&#45;denali&#45;nand&#45;v5b&#34;</code></span>

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

### <code>reg&#45;names</code> — not listed as required here

<div id="dt-c6f78d81605b46af6c17">
<pre><code>There are two register regions:
  nand_data:  host data/command interface
  denali_reg: register interface</code></pre>
</div>

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;nand&#95;data&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;denali&#95;reg&#34;</code></span>

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-4b3e7791b11b96c3db87"><code>2</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>2</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-041d7cd76b652a5de06a"></a>

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

<div id="dt-d153c20aa0faf1618c41">
<pre><code>There are three clocks:
  nand:   controller core clock
  nand_x: bus interface clock
  ecc:    ECC circuit clock</code></pre>
</div>

<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;nand&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;nand&#95;x&#34;</code></span>

<a id="dt-261be8310c899fd46631"></a>

**Item 3**

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

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-1f26a8d0aa315cbb9547"><code>3</code></span>

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

<a id="dt-563c20491090a57ac4c9"></a>

### <code>reset&#45;names</code> — not listed as required here

<div id="dt-7947d2f7af48e05cffd9">
<pre><code>There are two optional resets:
  nand: controller core reset
  reg:  register reset</code></pre>
</div>

<a id="dt-84c6a37e912f0ce4d1cb"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

<a id="dt-294654dc23486e4a5f67"></a>

**Rule 1**

> <a id="dt-1924b13946f57d665096"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-760ce46ce60ce102da5a"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-736f019ee948d355c45e"><code>&#34;nand&#34;</code></span>
>
> <a id="dt-bf571d017a492438de6a"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-8b78a757d60e5c73134e"><code>&#34;reg&#34;</code></span>

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

**Rule 2**

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

<a id="dt-3964573da5b6de54895c"></a>

**Rule 3**

> **Exact value (<code>const</code>):** <span id="dt-96f51990de7bd6a8c1ca"><code>&#34;reg&#34;</code></span>

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-645ab1fb5ab11474dc54"><code>1</code></span>

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

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

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

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

### <code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4047c0ee7509401a701c">[<code>raw&#45;nand&#45;chip&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/raw-nand-chip.md#dt-root>)</span>

<a id="dt-5957228d95e49801719f"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9b74ad9882646c4a5116"><code>&#34;altr&#44;socfpga&#45;denali&#45;nand&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-8b91e530d80f7cc46df3"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-4b291534d80d82821019"></a>
> >
> > **<code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-726534ff82b203ad5813"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-8e2af35b5910557bdb16"></a>
> >
> > **<code>nand&#45;ecc&#45;strength</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-7e67db954367c8b63fa1"></a> <span id="dt-7c4911a588aa5c8ca885"><code>8</code></span>, <span id="dt-6cf7e88e7acb08b30602"><code>15</code></span>
> >
> > <a id="dt-6f4caa43bd86f74f6a0f"></a>
> >
> > **<code>nand&#45;ecc&#45;step&#45;size</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-9473e74bdd3e74281bc5"></a> <span id="dt-dc69186f1825114dd749"><code>512</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8cd5c6ac7cc13c2d9acf"><code>&#34;socionext&#44;uniphier&#45;denali&#45;nand&#45;v5a&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-c8fcd31065f7e965d191"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-b7c6093205546bcdf4b1"></a>
> >
> > **<code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-4637a316da63524cdbe4"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-0b47210f76dcbc10e012"></a>
> >
> > **<code>nand&#45;ecc&#45;strength</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-51e9eccd73c6274e1c42"></a> <span id="dt-6731bcccd266026b6da5"><code>8</code></span>, <span id="dt-403345cd245956492e3d"><code>16</code></span>, <span id="dt-fb3373e9589e87516551"><code>24</code></span>
> >
> > <a id="dt-9fefc3a2853ff44bdcea"></a>
> >
> > **<code>nand&#45;ecc&#45;step&#45;size</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-65032bc095bef5a4a263"></a> <span id="dt-20a3cfc99795997bf94a"><code>1024</code></span>

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

### Rule 4

> <a id="dt-5d622c5a2672c1e49b35"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-8d84f7bba76b4e26221f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-11dc65c5cf7abc0317bb"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-3de4a4db25c09109abf4"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-5c56c46a4e287cf52ece"><code>&#34;socionext&#44;uniphier&#45;denali&#45;nand&#45;v5b&#34;</code></span>
>
> <a id="dt-889ceb40bc531bf0dc1d"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-9fff9961ce6722b392f4"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-db0009846645352666cd"></a>
> >
> > **<code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-c197b3ee0523ae0af761"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-ce0a5216abd1446b8814"></a>
> >
> > **<code>nand&#45;ecc&#45;strength</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-bed5e240461596c21c60"></a> <span id="dt-def89ec43cd65a15b71b"><code>8</code></span>, <span id="dt-2ad0a8fc2a5795b2d965"><code>16</code></span>
> >
> > <a id="dt-7df96c52ff834dd53ebf"></a>
> >
> > **<code>nand&#45;ecc&#45;step&#45;size</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-2ecd5f150c893602bd0c"></a> <span id="dt-e6adf327a538d459b7f7"><code>1024</code></span>

**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;clock&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;clocks&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">nand-controller@ff900000 {
    compatible = "altr,socfpga-denali-nand";
    reg-names = "nand_data", "denali_reg";
    reg = &lt;0xff900000 0x20&gt;, &lt;0xffb80000 0x1000&gt;;
    interrupts = &lt;0 144 4&gt;;
    clock-names = "nand", "nand_x", "ecc";
    clocks = &lt;&amp;nand_clk&gt;, &lt;&amp;nand_x_clk&gt;, &lt;&amp;nand_ecc_clk&gt;;
    reset-names = "nand", "reg";
    resets = &lt;&amp;nand_rst&gt;, &lt;&amp;nand_reg_rst&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    nand@0 {
        reg = &lt;0&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-only OR BSD-2-Clause</span></p>

</details>

---

# Freescale's NAND flash controller (NFC)

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

> Device-tree binding reference for Freescale's NAND flash controller (NFC).

<!-- 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;fsl&#44;vf610&#45;nfc&#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">This variant of the Freescale NAND flash controller (NFC) can be found on Vybrid (vf610), MPC5125, MCF54418 and Kinetis K70.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Frank Li &#60;Frank&#46;Li&#64;nxp&#46;com&#62;&#34;</code></span>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;fsl&#44;vf610&#45;nfc&#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-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-4e9a371963ac013ad39d"></a>

### <code>clocks</code> — not listed as 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> — not listed as 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;nfc&#34;</code></span>

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

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

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

### <code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4047c0ee7509401a701c">[<code>raw&#45;nand&#45;chip&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/raw-nand-chip.md#dt-root>)</span>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-914e04e598696601f509"><code>&#34;fsl&#44;vf610&#45;nfc&#45;nandcs&#34;</code></span>

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

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

**Exact value (<code>const</code>):** <span id="dt-90b22a073408930ee994"><code>0</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-bebffea65472968a8e27"></a> <span id="dt-b19ab79d98c0506978d1"><code>24</code></span>, <span id="dt-595b660e021c90b8aef9"><code>32</code></span>

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

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

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

<a id="dt-5957228d95e49801719f"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</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>

<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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/clock/vf610-clock.h&gt;

nand-controller@400e0000 {
    compatible = "fsl,vf610-nfc";
    reg = &lt;0x400e0000 0x4000&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    interrupts = &lt;GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH&gt;;
    clocks = &lt;&amp;clks VF610_CLK_NFC&gt;;
    clock-names = "nfc";
    assigned-clocks = &lt;&amp;clks VF610_CLK_NFC&gt;;
    assigned-clock-rates = &lt;33000000&gt;;

    nand@0 {
        compatible = "fsl,vf610-nfc-nandcs";
        reg = &lt;0&gt;;
        nand-bus-width = &lt;8&gt;;
        nand-ecc-mode = "hw";
        nand-ecc-strength = &lt;32&gt;;
        nand-ecc-step-size = &lt;2048&gt;;
        nand-on-flash-bbt;
    };
};
</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-only OR BSD-2-Clause)</span></p>

</details>

---

# Freescale General-Purpose Media Interface (GPMI)

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

> Device-tree binding reference for Freescale General-Purpose Media Interface (GPMI).

<!-- 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;gpmi&#45;nand&#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;Han Xu &#60;han&#46;xu&#64;nxp&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The GPMI nand controller provides an interface to control the NAND
flash chips. The device tree may optionally contain sub-nodes
describing partitions of the address space. See mtd.yaml for
more detail.</p>
</div>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;fsl&#44;imx23&#45;gpmi&#45;nand&#34;</code></span>, <span id="dt-44b402f75e7bf3caf313"><code>&#34;fsl&#44;imx28&#45;gpmi&#45;nand&#34;</code></span>, <span id="dt-f03e1478792ca587ff5c"><code>&#34;fsl&#44;imx6q&#45;gpmi&#45;nand&#34;</code></span>, <span id="dt-34cab0afbb7f2b55efc5"><code>&#34;fsl&#44;imx6sx&#45;gpmi&#45;nand&#34;</code></span>, <span id="dt-d29c3f554eb9a606c63a"><code>&#34;fsl&#44;imx7d&#45;gpmi&#45;nand&#34;</code></span>, <span id="dt-6abdfa16ccd722b794e6"><code>&#34;fsl&#44;imx8qxp&#45;gpmi&#45;nand&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;fsl&#44;imx8mm&#45;gpmi&#45;nand&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;fsl&#44;imx8mn&#45;gpmi&#45;nand&#34;</code></span>, <span id="dt-bdca084879537277097b"><code>&#34;fsl&#44;imx8mp&#45;gpmi&#45;nand&#34;</code></span>, <span id="dt-922f7901d25b667972ac"><code>&#34;fsl&#44;imx8mq&#45;gpmi&#45;nand&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;fsl&#44;imx7d&#45;gpmi&#45;nand&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <a id="dt-e626d61e9d5d76cc48f9"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6b46935eab08de6d1f0a"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-9d5b9f6fd2f9759f6e43"></a> <span id="dt-73fb2f4b762df7b35870"><code>&#34;fsl&#44;imx8dxl&#45;gpmi&#45;nand&#34;</code></span>, <span id="dt-4f2dd487e4b2e6e79827"><code>&#34;fsl&#44;imx8qm&#45;gpmi&#45;nand&#34;</code></span>
>
> <a id="dt-5ea82ea034747ba6da29"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-e9c55cb91230c7ee5a28"><code>&#34;fsl&#44;imx8qxp&#45;gpmi&#45;nand&#34;</code></span>

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

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">Address and length of gpmi block.</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">Address and length of bch block.</p>
> </div>

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

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;gpmi&#45;nand&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;bch&#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-8aa4fd7705c68de75d2b"></a>

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

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

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

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-05981720df4cd7d43d3c"><code>&#34;rx&#45;tx&#34;</code></span>

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-1f26a8d0aa315cbb9547"><code>1</code></span>

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

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-dab867b03596a88fc725"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-65c84d57f9774b7ce5c4"><code>5</code></span>

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

### <code>fsl&#44;use&#45;minimum&#45;ecc</code> — not listed as required here

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

<div id="dt-276a47a3f0c0737ce0c9">
<p style="white-space: pre-wrap">Protect this NAND flash with the minimum ECC strength required.
The required ECC strength is automatically discoverable for some
flash (e.g., according to the ONFI standard). However, note that
if this strength is not discoverable or this property is not enabled,
the software may chooses an implementation-defined ECC scheme.</p>
</div>

<a id="dt-97e63950bb369613ee1b"></a>

### <code>fsl&#44;no&#45;blockmark&#45;swap</code> — not listed as required here

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

<div id="dt-5e71cd6fe838522eee33">
<p style="white-space: pre-wrap">Don't swap the bad block marker from the OOB area with the byte in
the data area but rely on the flash based BBT for identifying bad blocks.
NOTE: this is only valid in conjunction with 'nand-on-flash-bbt'.
WARNING: on i.MX28 blockmark swapping cannot be disabled for the BootROM
in the FCB. Thus, partitions written from Linux with this feature turned
on may not be accessible by the BootROM code.</p>
</div>

**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;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;interrupts&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;interrupt&#45;names&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;clocks&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;dmas&#34;</code></span>, <span id="dt-727c9b818c335e022c0e"><code>&#34;dma&#45;names&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-61039da0155527cc02ba"></a> <span id="dt-20f8a813aab744ff239a"><code>&#34;fsl&#44;imx23&#45;gpmi&#45;nand&#34;</code></span>, <span id="dt-97636aa7a2139f7622b5"><code>&#34;fsl&#44;imx28&#45;gpmi&#45;nand&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-cc2edf6d98aafaff5f44"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > <a id="dt-9bc2c4bcef6f6d2c7e6f"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-9a92b8140775cdd9d56e"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-5f2a23fcde50f95228b6">
> > > <p style="white-space: pre-wrap">SoC gpmi io clock</p>
> > > </div>
> >
> > <a id="dt-dde63784a5285c3f925c"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > <a id="dt-07c804bf76c975c5a644"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-855b6229a724a1e988d5"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-d22ff96126d7db564137"><code>&#34;gpmi&#95;io&#34;</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-7838023cb1ac8ba1fc13"></a> <span id="dt-2698b34438b1aced3e06"><code>&#34;fsl&#44;imx6q&#45;gpmi&#45;nand&#34;</code></span>, <span id="dt-dde728fd212bd16cfbc3"><code>&#34;fsl&#44;imx6sx&#45;gpmi&#45;nand&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-8308c8f88877cb33a5a0"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > <a id="dt-848f98d28ea162761487"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-5bfe5ca02fe705443505"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-09903707c496e0ef03ef">
> > > <p style="white-space: pre-wrap">SoC gpmi io clock</p>
> > > </div>
> >
> > <a id="dt-082251df1c3a6e1c1dfa"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-b5f0a83e869b82c86019">
> > > <p style="white-space: pre-wrap">SoC gpmi apb clock</p>
> > > </div>
> >
> > <a id="dt-0147bd2f7809dd2379e0"></a>
> >
> > **Item 3**
> >
> > > <div id="dt-2b5ef6a44a405d043732">
> > > <p style="white-space: pre-wrap">SoC gpmi bch clock</p>
> > > </div>
> >
> > <a id="dt-3a0a672c20b78928ae15"></a>
> >
> > **Item 4**
> >
> > > <div id="dt-850175713370c7ca8148">
> > > <p style="white-space: pre-wrap">SoC gpmi bch apb clock</p>
> > > </div>
> >
> > <a id="dt-6df94da7c913dae2b8a8"></a>
> >
> > **Item 5**
> >
> > > <div id="dt-eee4319fe5699954f61f">
> > > <p style="white-space: pre-wrap">SoC per1 bch clock</p>
> > > </div>
> >
> > <a id="dt-c6cd9634653c9bd1a32e"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > <a id="dt-5b4140344e7664199596"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-38d589b0741e87d4c52a"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-2c23cdf57281bef15cec"><code>&#34;gpmi&#95;io&#34;</code></span>
> >
> > <a id="dt-2317286a7b8251909776"></a>
> >
> > **Item 2**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-6649bb49f43157f996cf"><code>&#34;gpmi&#95;apb&#34;</code></span>
> >
> > <a id="dt-81f6c403985022409818"></a>
> >
> > **Item 3**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-a3cbb70d0db35ce9b406"><code>&#34;gpmi&#95;bch&#34;</code></span>
> >
> > <a id="dt-a22dd2aaad2f25cc64a2"></a>
> >
> > **Item 4**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-421c4015083292a7b223"><code>&#34;gpmi&#95;bch&#95;apb&#34;</code></span>
> >
> > <a id="dt-347c15da01ba5e373c0d"></a>
> >
> > **Item 5**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-3f3f8d78a54cb8d14263"><code>&#34;per1&#95;bch&#34;</code></span>

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

### Rule 4

> <a id="dt-5d622c5a2672c1e49b35"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-8d84f7bba76b4e26221f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-11dc65c5cf7abc0317bb"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-3de4a4db25c09109abf4"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-5c56c46a4e287cf52ece"><code>&#34;fsl&#44;imx7d&#45;gpmi&#45;nand&#34;</code></span>
>
> <a id="dt-889ceb40bc531bf0dc1d"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-7cd597a6bb6b91730c25"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-9b48ab756d49c09e7d6e"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > <a id="dt-3867b786a01b5ba0e050"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-e17f95830082fa69a39a"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-9c9c147b6c21cfafd2b5">
> > > <p style="white-space: pre-wrap">SoC gpmi io clock</p>
> > > </div>
> >
> > <a id="dt-f311694dd6b4103ae61e"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-bca0731aa3fcc6d84883">
> > > <p style="white-space: pre-wrap">SoC gpmi bch apb clock</p>
> > > </div>
> >
> > <a id="dt-0dd30bad243a0df76d0b"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > <a id="dt-15601e83d4b95ac95a9c"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-c6508f79b7c67f4ab5c7"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-6f7c4ab4df79eac8009c"><code>&#34;gpmi&#95;io&#34;</code></span>
> >
> > <a id="dt-8a09b1b82fc12eb8948c"></a>
> >
> > **Item 2**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-33aee55eeaaf3e7d4421"><code>&#34;gpmi&#95;bch&#95;apb&#34;</code></span>

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

### Rule 5

> <a id="dt-30dd43480a02ff52099e"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-815e247e2e39708faa21"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-95159efb137dae08a1e1"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-2bc9a23172c2091be559"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-f6f7348eb6a3f6a0c1d3"></a> <span id="dt-e23119600ac866295534"><code>&#34;fsl&#44;imx8qxp&#45;gpmi&#45;nand&#34;</code></span>
>
> <a id="dt-b13bdf6bf01ba2db1729"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-61105cb355bf27434ff1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-aa0d767cf1ac9fac4f5a"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > <a id="dt-01910f0371b9a8d8962a"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-d79e30658210adde634a"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-edc8cc3e80e347a85b51">
> > > <p style="white-space: pre-wrap">SoC gpmi io clock</p>
> > > </div>
> >
> > <a id="dt-36c087c9cf3da67ed30d"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-876d3e155d22523e4a67">
> > > <p style="white-space: pre-wrap">SoC gpmi apb clock</p>
> > > </div>
> >
> > <a id="dt-164ef1beb83efdf00a87"></a>
> >
> > **Item 3**
> >
> > > <div id="dt-072ec9ace82fbcaf70f0">
> > > <p style="white-space: pre-wrap">SoC gpmi bch clock</p>
> > > </div>
> >
> > <a id="dt-1f884aca7eaa3211e841"></a>
> >
> > **Item 4**
> >
> > > <div id="dt-94b7dac6dde27fb5d399">
> > > <p style="white-space: pre-wrap">SoC gpmi bch apb clock</p>
> > > </div>
> >
> > <a id="dt-50f1ce702c9c66684754"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > <a id="dt-e8a47eafddc2049ad540"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-ab9d3a4bb3f5c3a699cf"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-05088e2c6603aa4a6857"><code>&#34;gpmi&#95;io&#34;</code></span>
> >
> > <a id="dt-39cb4fd49e17b40e2baa"></a>
> >
> > **Item 2**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-6d4accee37c7236e6463"><code>&#34;gpmi&#95;apb&#34;</code></span>
> >
> > <a id="dt-2791ad0e9309567024af"></a>
> >
> > **Item 3**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-b57bcd1e276ca41d5e53"><code>&#34;gpmi&#95;bch&#34;</code></span>
> >
> > <a id="dt-5075d08e1e44a8adeaef"></a>
> >
> > **Item 4**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-60cc1d7d6bad70c3505c"><code>&#34;gpmi&#95;bch&#95;apb&#34;</code></span>

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">nand-controller@8000c000 {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    compatible = "fsl,imx28-gpmi-nand";
    reg = &lt;0x8000c000 0x2000&gt;, &lt;0x8000a000 0x2000&gt;;
    reg-names = "gpmi-nand", "bch";
    interrupts = &lt;41&gt;;
    interrupt-names = "bch";
    clocks = &lt;&amp;clks 50&gt;;
    clock-names = "gpmi_io";
    dmas = &lt;&amp;dma_apbh 4&gt;;
    dma-names = "rx-tx";
};
</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-only OR BSD-2-Clause)</span></p>

</details>

---

# Ingenic SoCs NAND controller

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

> Device-tree binding reference for Ingenic SoCs NAND controller.

<!-- 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;ingenic&#44;nand&#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;Paul Cercueil &#60;paul&#64;crapouillou&#46;net&#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>nand&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8549616abc3b04702c51">[<code>&#47;schemas&#47;memory&#45;controllers&#47;ingenic&#44;nemc&#45;peripherals&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-memory-controllers/ingenic-nemc-peripherals.md#dt-root>)</span>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;ingenic&#44;jz4740&#45;nand&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ingenic&#44;jz4725b&#45;nand&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ingenic&#44;jz4780&#45;nand&#34;</code></span>

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

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">Bank number, offset and size of first attached NAND chip</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">Bank number, offset and size of second attached NAND chip</p>
> </div>

<a id="dt-80d36cb915ffeff5364a"></a>

**Item 3**

> <div id="dt-5151e97c331b693ee0dd">
> <p style="white-space: pre-wrap">Bank number, offset and size of third attached NAND chip</p>
> </div>

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

**Item 4**

> <div id="dt-e7b71b4619e949c538b1">
> <p style="white-space: pre-wrap">Bank number, offset and size of fourth attached NAND chip</p>
> </div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-4b3e7791b11b96c3db87"><code>1</code></span>

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

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

<code>true</code> — No constraints added by this property rule.

<a id="dt-1661271ef1d2a38bb2d4"></a>

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

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

**Deprecated (<code>deprecated</code>):** <span id="dt-6486b31df322385a2691"><code>true</code></span>

<div id="dt-87783bb86ce6e2eed8a6">
<p style="white-space: pre-wrap">Node containing description of fixed partitions.</p>
</div>

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

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

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

### <code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4047c0ee7509401a701c">[<code>raw&#45;nand&#45;chip&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/raw-nand-chip.md#dt-root>)</span>

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

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

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

**<code>rb&#45;gpios</code> — not listed as required here**

<div id="dt-1cfd14eebcd1b719edec">
<p style="white-space: pre-wrap">GPIO specifier for the busy pin.</p>
</div>

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

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

**<code>wp&#45;gpios</code> — not listed as required here**

<div id="dt-573ae57a1a252fd5c5f2">
<p style="white-space: pre-wrap">GPIO specifier for the write-protect pin.</p>
</div>

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

<a id="dt-5957228d95e49801719f"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</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>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/clock/ingenic,jz4780-cgu.h&gt;
memory-controller@13410000 {
    compatible = "ingenic,jz4780-nemc";
    reg = &lt;0x13410000 0x10000&gt;;
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;1&gt;;
    ranges = &lt;1 0 0x1b000000 0x1000000&gt;,
             &lt;2 0 0x1a000000 0x1000000&gt;,
             &lt;3 0 0x19000000 0x1000000&gt;,
             &lt;4 0 0x18000000 0x1000000&gt;,
             &lt;5 0 0x17000000 0x1000000&gt;,
             &lt;6 0 0x16000000 0x1000000&gt;;

    clocks = &lt;&amp;cgu JZ4780_CLK_NEMC&gt;;

    nand-controller@1 {
        compatible = "ingenic,jz4780-nand";
        reg = &lt;1 0 0x1000000&gt;;

        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        ecc-engine = &lt;&amp;bch&gt;;

        ingenic,nemc-tAS = &lt;10&gt;;
        ingenic,nemc-tAH = &lt;5&gt;;
        ingenic,nemc-tBP = &lt;10&gt;;
        ingenic,nemc-tAW = &lt;15&gt;;
        ingenic,nemc-tSTRV = &lt;100&gt;;

        pinctrl-names = "default";
        pinctrl-0 = &lt;&amp;pins_nemc&gt;;

        nand@1 {
            reg = &lt;1&gt;;

            nand-ecc-step-size = &lt;1024&gt;;
            nand-ecc-strength = &lt;24&gt;;
            nand-ecc-mode = "hw";
            nand-on-flash-bbt;

            pinctrl-names = "default";
            pinctrl-0 = &lt;&amp;pins_nemc_cs1&gt;;

            partitions {
                compatible = "fixed-partitions";
                #address-cells = &lt;2&gt;;
                #size-cells = &lt;2&gt;;

                partition@0 {
                    label = "u-boot-spl";
                    reg = &lt;0x0 0x0 0x0 0x800000&gt;;
                };

                partition@800000 {
                    label = "u-boot";
                    reg = &lt;0x0 0x800000 0x0 0x200000&gt;;
                };

                partition@a00000 {
                    label = "u-boot-env";
                    reg = &lt;0x0 0xa00000 0x0 0x200000&gt;;
                };

                partition@c00000 {
                    label = "boot";
                    reg = &lt;0x0 0xc00000 0x0 0x4000000&gt;;
                };

                partition@4c00000 {
                    label = "system";
                    reg = &lt;0x0 0x4c00000 0x1 0xfb400000&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Intel LGM SoC NAND Controller

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

> Device-tree binding reference for Intel LGM SoC NAND Controller.

<!-- SPDX-License-Identifier: (GPL-2.0 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;intel&#44;lgm&#45;ebunand&#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>

<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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Ramuthevar Vadivel Murugan &#60;vadivel&#46;muruganx&#46;ramuthevar&#64;linux&#46;intel&#46;com&#62;&#34;</code></span>

<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;intel&#44;lgm&#45;ebunand&#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>6</code></span>

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

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;ebunand&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;hsnand&#34;</code></span>

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

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-bd78c6ffbdc5ce20feb0"><code>&#34;nand&#95;cs0&#34;</code></span>

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

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-98e4b3caabf49b98c17d"><code>&#34;nand&#95;cs1&#34;</code></span>

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

**Item 5**

> **Exact value (<code>const</code>):** <span id="dt-f5b0caab3d0e3bc730aa"><code>&#34;addr&#95;sel0&#34;</code></span>

<a id="dt-6163748256066003777f"></a>

**Item 6**

> **Exact value (<code>const</code>):** <span id="dt-81567d5e5cafc8c025ce"><code>&#34;addr&#95;sel1&#34;</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-5bb8576c9296c5644e7f"></a>

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

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

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

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

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

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

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

**Item 1**

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

<a id="dt-5368efb369d036c8a734"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0d0500dc5105c48e5e72"><code>&#34;rx&#34;</code></span>

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

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

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

### <code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4047c0ee7509401a701c">[<code>raw&#45;nand&#45;chip&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/raw-nand-chip.md#dt-root>)</span>

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

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

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

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

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

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

<a id="dt-28ce93b5e5919037e042"></a>

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

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

<a id="dt-5957228d95e49801719f"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</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;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clocks&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;dmas&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;dma&#45;names&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">nand-controller@e0f00000 {
    compatible = "intel,lgm-ebunand";
    reg = &lt;0xe0f00000 0x100&gt;,
          &lt;0xe1000000 0x300&gt;,
          &lt;0xe1400000 0x8000&gt;,
          &lt;0xe1c00000 0x1000&gt;,
          &lt;0x17400000 0x4&gt;,
          &lt;0x17c00000 0x4&gt;;
    reg-names = "ebunand", "hsnand", "nand_cs0", "nand_cs1",
                "addr_sel0", "addr_sel1";
    clocks = &lt;&amp;cgu0 125&gt;;
    dmas = &lt;&amp;dma0 8&gt;, &lt;&amp;dma0 9&gt;;
    dma-names = "tx", "rx";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    nand@0 {
        reg = &lt;0&gt;;
        nand-ecc-mode = "hw";
    };
};
</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 OR BSD-2-Clause)</span></p>

</details>

---

# SPI NOR flash ST M25Pxx (and similar) serial flash chips

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

> Device-tree binding reference for SPI NOR flash ST M25Pxx (and similar) serial flash chips.

<!-- SPDX-License-Identifier: GPL-2.0-only -->


<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;jedec&#44;spi&#45;nor&#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;Rob Herring &#60;robh&#64;kernel&#46;org&#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>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8549616abc3b04702c51">[<code>&#47;schemas&#47;spi&#47;spi&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-peripheral-props.md#dt-root>)</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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-693b4372baab773d14c8"><code>&#34;&#94;&#40;&#40;&#40;&#40;micron&#124;spansion&#124;st&#41;&#44;&#41;&#63;&#40;m25p&#40;40&#124;80&#124;16&#124;32&#124;64&#124;128&#41;&#124;n25q&#40;32b&#124;064&#124;128a11&#124;128a13&#124;256a&#124;512a&#124;164k&#41;&#41;&#41;&#124;atmel&#44;at&#40;25&#124;26&#41;df&#40;321a&#124;641&#124;081a&#41;&#124;everspin&#44;mr25h&#40;10&#124;40&#124;128&#124;256&#41;&#124;&#40;mxicy&#124;macronix&#41;&#44;mx25l&#40;4005a&#124;1606e&#124;6405d&#124;8005&#124;12805d&#124;25635e&#41;&#124;&#40;mxicy&#124;macronix&#41;&#44;mx25u&#40;4033&#124;4035&#41;&#124;&#40;spansion&#44;&#41;&#63;s25fl&#40;128s&#124;256s1&#124;512s&#124;008k&#124;064k&#124;164k&#41;&#124;&#40;sst&#124;microchip&#41;&#44;sst25vf&#40;016b&#124;032b&#124;040b&#41;&#124;&#40;sst&#44;&#41;&#63;sst26wf016b&#124;&#40;sst&#44;&#41;&#63;sst25wf&#40;040b&#124;080&#41;&#124;winbond&#44;w25x&#40;80&#124;32&#41;&#124;&#40;winbond&#44;&#41;&#63;w25q&#40;16&#124;32&#40;w&#124;dw&#41;&#63;&#124;64&#40;dw&#41;&#63;&#124;80bl&#124;128&#40;fw&#41;&#63;&#124;256&#41;&#41;&#36;&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;jedec&#44;spi&#45;nor&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;issi&#44;is25lp016d&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;micron&#44;mt25qu02g&#34;</code></span>, <span id="dt-bdca084879537277097b"><code>&#34;mxicy&#44;mx25r1635f&#34;</code></span>, <span id="dt-922f7901d25b667972ac"><code>&#34;mxicy&#44;mx25u6435f&#34;</code></span>, <span id="dt-eb61ad381053476dae55"><code>&#34;mxicy&#44;mx25v8035f&#34;</code></span>, <span id="dt-05b29c21ca38ad337d53"><code>&#34;spansion&#44;s25sl12801&#34;</code></span>, <span id="dt-93c2763ada782db7e26c"><code>&#34;spansion&#44;s25fs512s&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;jedec&#44;spi&#45;nor&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> **Exact value (<code>const</code>):** <span id="dt-710bc579d54b8b6b1f6c"><code>&#34;jedec&#44;spi&#45;nor&#34;</code></span>

<div id="dt-e84064a2d568e9bcb9c3">
<p style="white-space: pre-wrap">SPI NOR flashes compatible with the JEDEC SFDP standard or which may be identified with the READ ID opcode (0x9F) do not deserve a specific compatible. They should instead only be matched against the generic "jedec,spi-nor" compatible.</p>
</div>

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-4b3e7791b11b96c3db87"><code>1</code></span>

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

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

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

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

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

### <code>m25p&#44;fast&#45;read</code> — not listed as required here

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

<div id="dt-607f2902927d8fddde3c">
<p style="white-space: pre-wrap">Use the "fast read" opcode to read data from the chip instead of the usual "read" opcode. This opcode is not supported by all chips and support for it can not be detected at runtime. Refer to your chips' datasheet to check if this is supported by your chip.</p>
</div>

<a id="dt-373bcb761b537c9f4180"></a>

### <code>broken&#45;flash&#45;reset</code> — not listed as required here

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

<div id="dt-852dae478c75dffaaa2a">
<p style="white-space: pre-wrap">Some flash devices utilize stateful addressing modes (e.g., for 32-bit addressing) which need to be managed carefully by a system. Because these sorts of flash don't have a standardized software reset command, and because some systems don't toggle the flash RESET# pin upon system reset (if the pin even exists at all), there are systems which cannot reboot properly if the flash is left in the "wrong" state. This boolean flag can be used on such systems, to denote the absence of a reliable reset mechanism.</p>
</div>

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

### <code>no&#45;wp</code> — not listed as required here

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

<div id="dt-b33fc3a0bcdf140a3acb">
<p style="white-space: pre-wrap">The status register write disable (SRWD) bit in status register, combined with the WP# signal, provides hardware data protection for the device. When the SRWD bit is set to 1, and the WP# signal is either driven LOW or hard strapped to LOW, the status register nonvolatile bits become read-only and the WRITE STATUS REGISTER operation will not execute. The only way to exit this hardware-protected mode is to drive WP# HIGH. If the WP# signal of the flash device is not connected or is wrongly tied to GND (that includes internal pull-downs) then status register permanently becomes read-only as the SRWD bit cannot be reset. This boolean flag can be used on such systems to avoid setting the SRWD bit while writing the status register. WP# signal hard strapped to GND can be a valid use case.</p>
</div>

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

### <code>reset&#45;gpios</code> — not listed as required here

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">A GPIO line connected to the RESET (active low) signal of the device. If "broken-flash-reset" is present then having this property does not make any difference.</p>
</div>

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

### <code>vcc&#45;supply</code> — not listed as required here

<div id="dt-304923183fea32e69a40">
<p style="white-space: pre-wrap">Supply for the SPI NOR power.</p>
</div>

<a id="dt-27851c8ce8d41152ef35"></a>

### <code>spi&#45;cpol</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

### <code>spi&#45;cpha</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

## Property dependencies (<code>dependencies</code>)

<a id="dt-2b457fa375dcfb146e4b"></a>

### <code>spi&#45;cpol</code> — applies when this property is present

Also requires: <span id="dt-f62b0830225b4edc59d0"><code>&#34;spi&#45;cpha&#34;</code></span>

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

### <code>spi&#45;cpha</code> — applies when this property is present

Also requires: <span id="dt-a00d999628bebde1818a"><code>&#34;spi&#45;cpol&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/gpio/gpio.h&gt;
spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    flash@0 {
        compatible = "spansion,m25p80", "jedec,spi-nor";
        reg = &lt;0&gt;;
        spi-max-frequency = &lt;40000000&gt;;
        m25p,fast-read;
        reset-gpios = &lt;&amp;gpio 12 GPIO_ACTIVE_LOW&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-only</span></p>

</details>

---

# Loongson NAND Controller

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

> Device-tree binding reference for Loongson NAND Controller.

<!-- 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;loongson&#44;ls1b&#45;nand&#45;controller&#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;Keguang Zhang &#60;keguang&#46;zhang&#64;gmail&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Binbin Zhou &#60;zhoubinbin&#64;loongson&#46;cn&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Loongson NAND controller abstracts all supported operations, meaning it does not support low-level access to raw NAND flash chips. Moreover, the controller is paired with the DMA engine to perform READ and PROGRAM functions.</p>
</div>

<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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;loongson&#44;ls1b&#45;nand&#45;controller&#34;</code></span>, <span id="dt-44b402f75e7bf3caf313"><code>&#34;loongson&#44;ls1c&#45;nand&#45;controller&#34;</code></span>, <span id="dt-f03e1478792ca587ff5c"><code>&#34;loongson&#44;ls2k0500&#45;nand&#45;controller&#34;</code></span>, <span id="dt-34cab0afbb7f2b55efc5"><code>&#34;loongson&#44;ls2k1000&#45;nand&#45;controller&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;loongson&#44;ls1a&#45;nand&#45;controller&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;loongson&#44;ls1b&#45;nand&#45;controller&#34;</code></span>

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-4b3e7791b11b96c3db87"><code>2</code></span>

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

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-3f2820449161ca72af98"><code>2</code></span>

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;nand&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;nand&#45;dma&#34;</code></span>

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

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-bd78c6ffbdc5ce20feb0"><code>&#34;dma&#45;config&#34;</code></span>

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

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-05981720df4cd7d43d3c"><code>&#34;rxtx&#34;</code></span>

**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;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;dmas&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;dma&#45;names&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-158e3f6339df9dc0e448"></a>

## Condition (<code>if</code>)

> <a id="dt-0c7b6d12024f922c1b96"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-824fdc441f7c94ae56ca"></a>
>
> #### <code>compatible</code> — not listed as required here
>
> <a id="dt-8239149d6c8b0a5dabbe"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-33b6ed092215f2be8801"></a> <span id="dt-9dc9072d1f2469ee9637"><code>&#34;loongson&#44;ls2k1000&#45;nand&#45;controller&#34;</code></span>

<a id="dt-94d3067a06aec87aad7f"></a>

## When the condition matches (<code>then</code>)

> <a id="dt-d3da345ec82b9041251c"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-8893b96000b374eb19f2"></a>
>
> #### <code>reg</code> — not listed as required here
>
> **Minimum number of items (<code>minItems</code>):** <span id="dt-321e0e16fe3625b59ae7"><code>3</code></span>
>
> <a id="dt-e8875756bf0e0246b7eb"></a>
>
> #### <code>reg&#45;names</code> — not listed as required here
>
> **Minimum number of items (<code>minItems</code>):** <span id="dt-f477924b9ef02755d28d"><code>3</code></span>

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

## When the condition does not match (<code>else</code>)

> <a id="dt-cf075a4b84ee9b101feb"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-5e0272d80ce3f49e1ff9"></a>
>
> #### <code>reg</code> — not listed as required here
>
> **Maximum number of items (<code>maxItems</code>):** <span id="dt-7847ec4ac643eb377cf3"><code>2</code></span>
>
> <a id="dt-0ac968a119b8db3797f0"></a>
>
> #### <code>reg&#45;names</code> — not listed as required here
>
> **Maximum number of items (<code>maxItems</code>):** <span id="dt-e7c73afebc33fff19ddc"><code>2</code></span>

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">nand-controller@1fe78000 {
    compatible = "loongson,ls1b-nand-controller";
    reg = &lt;0x1fe78000 0x24&gt;, &lt;0x1fe78040 0x4&gt;;
    reg-names = "nand", "nand-dma";
    dmas = &lt;&amp;dma 0&gt;;
    dma-names = "rxtx";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    nand@0 {
        reg = &lt;0&gt;;
        label = "ls1x-nand";
        nand-use-soft-ecc-engine;
        nand-ecc-algo = "hamming";
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">nand-controller@1fe26000 {
    compatible = "loongson,ls2k1000-nand-controller";
    reg = &lt;0x1fe26000 0x24&gt;,
          &lt;0x1fe26040 0x4&gt;,
          &lt;0x1fe00438 0x8&gt;;
    reg-names = "nand", "nand-dma", "dma-config";
    dmas = &lt;&amp;apbdma0 0&gt;;
    dma-names = "rxtx";

    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    nand@0 {
        reg = &lt;0&gt;;
        label = "ls2k1000-nand";
        nand-use-soft-ecc-engine;
        nand-ecc-algo = "bch";
        nand-ecc-strength = &lt;8&gt;;
        nand-ecc-step-size = &lt;512&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Marvell NAND Flash Controller (NFC)

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

> Device-tree binding reference for Marvell NAND Flash Controller (NFC).

<!-- 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;marvell&#44;nand&#45;controller&#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-e1f655ed0ff4d595dadc"></a>

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-5deec2612224d8d915da"><code>&#34;marvell&#44;armada&#45;8k&#45;nand&#45;controller&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;marvell&#44;armada370&#45;nand&#45;controller&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> **Allowed values (<code>enum</code>):** <a id="dt-ad5dbad5326d5a61ae46"></a> <span id="dt-af4759e2a8ab9583f63d"><code>&#34;marvell&#44;ac5&#45;nand&#45;controller&#34;</code></span>, <span id="dt-9aa1d0e5d9a73a253eb7"><code>&#34;marvell&#44;armada370&#45;nand&#45;controller&#34;</code></span>, <span id="dt-5c9870d52793df25216b"><code>&#34;marvell&#44;pxa3xx&#45;nand&#45;controller&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <div id="dt-34ebc3371373135d1528">
> <p style="white-space: pre-wrap">legacy bindings</p>
> </div>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-0ced5c7fccd8fc640f58"><code>true</code></span>
>
> **Allowed values (<code>enum</code>):** <a id="dt-9fc3f5081af7fe32b794"></a> <span id="dt-264517b00ca7c7f3c30f"><code>&#34;marvell&#44;armada&#45;8k&#45;nand&#34;</code></span>, <span id="dt-78ff4d043ca24550ed33"><code>&#34;marvell&#44;armada370&#45;nand&#34;</code></span>, <span id="dt-aada3a31ecc374bd5eca"><code>&#34;marvell&#44;pxa3xx&#45;nand&#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-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-4e9a371963ac013ad39d"></a>

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Shall reference the NAND controller clocks, the second one is is only needed for the Armada 7K/8K SoCs</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-1f26a8d0aa315cbb9547"><code>1</code></span>

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

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-dab867b03596a88fc725"><code>1</code></span>

<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;core&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;reg&#34;</code></span>

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

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

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

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

### <code>dma&#45;names</code> — not listed as required here

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

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

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

**Item 1**

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

<a id="dt-79c12c7ea27da3e75031"></a>

### <code>marvell&#44;system&#45;controller</code> — not listed as required here

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

<div id="dt-45622b00e96a8e16f2b1">
<p style="white-space: pre-wrap">Syscon node that handles NAND controller related registers</p>
</div>

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

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

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

### <code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4047c0ee7509401a701c">[<code>raw&#45;nand&#45;chip&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/raw-nand-chip.md#dt-root>)</span>

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

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

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

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

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

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

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

**<code>nand&#45;rb</code> — required here**

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

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

<a id="dt-930e138ba973b92125e1"></a>

**Item 1**

> **Minimum value (<code>minimum</code>):** <span id="dt-4348fadd52f3c4314b89"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-588c35de1710dc3d8663"><code>1</code></span>

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

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-bebffea65472968a8e27"></a> <span id="dt-b19ab79d98c0506978d1"><code>1</code></span>, <span id="dt-595b660e021c90b8aef9"><code>4</code></span>, <span id="dt-311ef8a00c71bdc810dd"><code>8</code></span>, <span id="dt-e716dd52176f7d42d676"><code>12</code></span>, <span id="dt-e2b572dfc303db0f7edd"><code>16</code></span>

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

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

**Exact value (<code>const</code>):** <span id="dt-48c9682e9bc47e8fddf0"><code>&#34;hw&#34;</code></span>

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

**<code>marvell&#44;nand&#45;keep&#45;config</code> — not listed as required here**

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

<div id="dt-35a0979624952b59a966">
<p style="white-space: pre-wrap">Orders the driver not to take the timings from the core and leaving them completely untouched. Bootloader timings will then be used.</p>
</div>

<a id="dt-712d611209166c3594d0"></a>

**<code>marvell&#44;nand&#45;enable&#45;arbiter</code> — not listed as required here**

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

<div id="dt-23c210c20c1cc115ee12">
<p style="white-space: pre-wrap">To enable the arbiter, all boards blindly used it, this bit was set by the bootloader for many boards and even if it is marked reserved in several datasheets, it might be needed to set it (otherwise it is harmless).</p>
</div>

**Deprecated (<code>deprecated</code>):** <span id="dt-b33cc8f86dbaedefe700"><code>true</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8e1200328650c62b97b7"></a> <span id="dt-18dc79a6a0290d3b3d52"><code>&#34;reg&#34;</code></span>, <span id="dt-66c3e05c6c74f856a207"><code>&#34;nand&#45;rb&#34;</code></span>

<a id="dt-5957228d95e49801719f"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</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>

<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>nand&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9b74ad9882646c4a5116"><code>&#34;marvell&#44;pxa3xx&#45;nand&#45;controller&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-ee96a18d4bb2a9d39bd9"></a> <span id="dt-96ee7f71687cd234a9f8"><code>&#34;dmas&#34;</code></span>, <span id="dt-5daae4bef35eb1615659"><code>&#34;dma&#45;names&#34;</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8cd5c6ac7cc13c2d9acf"><code>&#34;marvell&#44;armada&#45;8k&#45;nand&#45;controller&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-8308c8f88877cb33a5a0"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-9d121778b610668f3c64"><code>2</code></span>
> >
> > <a id="dt-c6cd9634653c9bd1a32e"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-36a2ca4e9a374680acbd"><code>2</code></span>
> >
> > **Required in this object (<code>required</code>):** <a id="dt-caec4da91c2837148d80"></a> <span id="dt-aa785038ee05bfb1e067"><code>&#34;marvell&#44;system&#45;controller&#34;</code></span>
>
> <a id="dt-a27f5f4fc91750ae210f"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-10a581729d134f7b8a73"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-0f1a77fa3443de50a03f"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-3a50791bde7c31e14a56"><code>1</code></span>
> >
> > <a id="dt-129bda36b9b8f209dd84"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-6f6f7375e26e9f240363"><code>1</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
nand_controller: nand-controller@d0000 {
    compatible = "marvell,armada370-nand-controller";
    reg = &lt;0xd0000 0x54&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    interrupts = &lt;GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH&gt;;
    clocks = &lt;&amp;coredivclk 0&gt;;

    nand@0 {
        reg = &lt;0&gt;;
        label = "main-storage";
        nand-rb = &lt;0&gt;;
        nand-ecc-mode = "hw";
        marvell,nand-keep-config;
        nand-on-flash-bbt;
        nand-ecc-strength = &lt;4&gt;;
        nand-ecc-step-size = &lt;512&gt;;

        partitions {
            compatible = "fixed-partitions";
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;1&gt;;

            partition@0 {
                label = "Rootfs";
                reg = &lt;0x00000000 0x40000000&gt;;
            };
        };
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">cp0_nand_controller: nand-controller@720000 {
    compatible = "marvell,armada-8k-nand-controller",
            "marvell,armada370-nand-controller";
    reg = &lt;0x720000 0x54&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    interrupts = &lt;115 IRQ_TYPE_LEVEL_HIGH&gt;;
    clock-names = "core", "reg";
    clocks = &lt;&amp;cp0_clk 1 2&gt;,
             &lt;&amp;cp0_clk 1 17&gt;;
    marvell,system-controller = &lt;&amp;cp0_syscon0&gt;;

    nand@0 {
        reg = &lt;0&gt;;
        label = "main-storage";
        nand-rb = &lt;0&gt;;
        nand-ecc-mode = "hw";
        nand-ecc-strength = &lt;8&gt;;
        nand-ecc-step-size = &lt;512&gt;;
    };
};
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">nand-controller@43100000 {
    compatible = "marvell,pxa3xx-nand-controller";
    reg = &lt;0x43100000 90&gt;;
    interrupts = &lt;45&gt;;
    clocks = &lt;&amp;clks 1&gt;;
    clock-names = "core";
    dmas = &lt;&amp;pdma 97 3&gt;;
    dma-names = "data";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    nand@0 {
        reg = &lt;0&gt;;
        nand-rb = &lt;0&gt;;
        nand-ecc-mode = "hw";
        marvell,nand-keep-config;
    };
};
</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-only OR BSD-2-Clause)</span></p>

</details>

---

# MediaTek(MTK) SoCs raw NAND FLASH controller (NFC)

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

> Device-tree binding reference for MediaTek(MTK) SoCs raw NAND FLASH controller (NFC).

<!-- 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;mediatek&#44;mtk&#45;nfc&#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;Xiangsheng Hou &#60;xiangsheng&#46;hou&#64;mediatek&#46;com&#62;&#34;</code></span>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;mediatek&#44;mt2701&#45;nfc&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;mediatek&#44;mt2712&#45;nfc&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;mediatek&#44;mt7622&#45;nfc&#34;</code></span>

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

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">Base physical address and size of NFI.</p>
> </div>

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

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

<a id="dt-985aed94c3a5de8e946a"></a>

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

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

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">NFI interrupt</p>
> </div>

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

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

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">clock used for the controller</p>
> </div>

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

**Item 2**

> <div id="dt-6b79aebfd2287d4aeab8">
> <p style="white-space: pre-wrap">clock used for the pad</p>
> </div>

<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;nfi&#95;clk&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;pad&#95;clk&#34;</code></span>

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

### <code>ecc&#45;engine</code> — required here

<div id="dt-62c7f7fbbd1aa6403be1">
<p style="white-space: pre-wrap">device-tree node of the required ECC engine.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-53c65d03cbdf31f4d03e">[<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-e92215bd3c2f5373b164"></a>

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

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

### <code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression

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

<a id="dt-5957228d95e49801719f"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

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

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

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

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-48c9682e9bc47e8fddf0"><code>&#34;hw&#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>nand&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9b74ad9882646c4a5116"><code>&#34;mediatek&#44;mt2701&#45;nfc&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-8b91e530d80f7cc46df3"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-4b291534d80d82821019"></a>
> >
> > **<code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-726534ff82b203ad5813"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-6f4caa43bd86f74f6a0f"></a>
> >
> > **<code>nand&#45;ecc&#45;step&#45;size</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-9473e74bdd3e74281bc5"></a> <span id="dt-dc69186f1825114dd749"><code>512</code></span>, <span id="dt-6d160deb453e9729a286"><code>1024</code></span>
> >
> > <a id="dt-8e2af35b5910557bdb16"></a>
> >
> > **<code>nand&#45;ecc&#45;strength</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-7e67db954367c8b63fa1"></a> <span id="dt-7c4911a588aa5c8ca885"><code>4</code></span>, <span id="dt-6cf7e88e7acb08b30602"><code>6</code></span>, <span id="dt-3571b36a584888b2c242"><code>8</code></span>, <span id="dt-f46021ed85b44436f02a"><code>10</code></span>, <span id="dt-bb0dac3c8ea96e2b9440"><code>12</code></span>, <span id="dt-3881e1615bf043727420"><code>14</code></span>, <span id="dt-fd18ecc4852c7e294a75"><code>16</code></span>, <span id="dt-40cda1c30668973d7f34"><code>18</code></span>, <span id="dt-1cdb1fa53e923e33b8b5"><code>20</code></span>, <span id="dt-f07c4ef23dd0ecd52d98"><code>22</code></span>, <span id="dt-d880d41a84590a6b78dd"><code>24</code></span>, <span id="dt-df3e2e0708dcb1e0cbb1"><code>28</code></span>, <span id="dt-3aa61aee83f360ad8bb6"><code>32</code></span>, <span id="dt-b849640ba191b9ac5c80"><code>36</code></span>, <span id="dt-3ff25845ebfbb79089fc"><code>40</code></span>, <span id="dt-87b7ad480c17e1cc8303"><code>44</code></span>, <span id="dt-8c986b72a92444f848dd"><code>48</code></span>, <span id="dt-2a974cd9666090f0b980"><code>52</code></span>, <span id="dt-88c53c737030e1e46e79"><code>56</code></span>, <span id="dt-f270eefd7c9a831a63a1"><code>60</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8cd5c6ac7cc13c2d9acf"><code>&#34;mediatek&#44;mt2712&#45;nfc&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-c8fcd31065f7e965d191"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-b7c6093205546bcdf4b1"></a>
> >
> > **<code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-4637a316da63524cdbe4"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-9fefc3a2853ff44bdcea"></a>
> >
> > **<code>nand&#45;ecc&#45;step&#45;size</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-65032bc095bef5a4a263"></a> <span id="dt-20a3cfc99795997bf94a"><code>512</code></span>, <span id="dt-970efd075100c50843d5"><code>1024</code></span>
> >
> > <a id="dt-0b47210f76dcbc10e012"></a>
> >
> > **<code>nand&#45;ecc&#45;strength</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-51e9eccd73c6274e1c42"></a> <span id="dt-6731bcccd266026b6da5"><code>4</code></span>, <span id="dt-403345cd245956492e3d"><code>6</code></span>, <span id="dt-fb3373e9589e87516551"><code>8</code></span>, <span id="dt-48d4fc8e0298a88b8cbf"><code>10</code></span>, <span id="dt-d22abea187a9c558b92c"><code>12</code></span>, <span id="dt-3cc8d7260ae30603acb7"><code>14</code></span>, <span id="dt-b264feeb1d3d40a784dc"><code>16</code></span>, <span id="dt-2d6d86e98601fe60aa3a"><code>18</code></span>, <span id="dt-e3b400339204df481278"><code>20</code></span>, <span id="dt-db1bbf7b75743b2da086"><code>22</code></span>, <span id="dt-982e6196adf7ff80c18c"><code>24</code></span>, <span id="dt-511912c1bce467783d56"><code>28</code></span>, <span id="dt-13ff9df2030b1a90c75e"><code>32</code></span>, <span id="dt-685318544988d78c96f1"><code>36</code></span>, <span id="dt-0c39d6ada8edda2b4506"><code>40</code></span>, <span id="dt-6c23c3f9271bbcadd0c2"><code>44</code></span>, <span id="dt-b4297dc0fdb4c3c2f595"><code>48</code></span>, <span id="dt-95ef7e7578b9f127dd77"><code>52</code></span>, <span id="dt-fdcf77cff164be2b30a5"><code>56</code></span>, <span id="dt-1c8e06dfe000996f1546"><code>60</code></span>, <span id="dt-9aa23f303e15ed2fa376"><code>68</code></span>, <span id="dt-1475861b84138f94bc70"><code>72</code></span>, <span id="dt-63cd3aa878ade65be8a4"><code>80</code></span>

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

### Rule 4

> <a id="dt-5d622c5a2672c1e49b35"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-8d84f7bba76b4e26221f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-11dc65c5cf7abc0317bb"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-3de4a4db25c09109abf4"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-5c56c46a4e287cf52ece"><code>&#34;mediatek&#44;mt7622&#45;nfc&#34;</code></span>
>
> <a id="dt-889ceb40bc531bf0dc1d"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-9fff9961ce6722b392f4"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-db0009846645352666cd"></a>
> >
> > **<code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-c197b3ee0523ae0af761"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-7df96c52ff834dd53ebf"></a>
> >
> > **<code>nand&#45;ecc&#45;step&#45;size</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-1fdab91ba4b413c6f964"><code>512</code></span>
> >
> > <a id="dt-ce0a5216abd1446b8814"></a>
> >
> > **<code>nand&#45;ecc&#45;strength</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-bed5e240461596c21c60"></a> <span id="dt-def89ec43cd65a15b71b"><code>4</code></span>, <span id="dt-2ad0a8fc2a5795b2d965"><code>6</code></span>, <span id="dt-3a30b3716bf42f45591a"><code>8</code></span>, <span id="dt-62bc2e2b1f2452ca56ec"><code>10</code></span>, <span id="dt-4735657e81ca5ee1126c"><code>12</code></span>

**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;ecc&#45;engine&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/clock/mt2701-clk.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

soc {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    nand-controller@1100d000 {
        compatible = "mediatek,mt2701-nfc";
        reg = &lt;0 0x1100d000 0 0x1000&gt;;
        interrupts = &lt;GIC_SPI 56 IRQ_TYPE_LEVEL_LOW&gt;;
        clocks = &lt;&amp;pericfg CLK_PERI_NFI&gt;,
                 &lt;&amp;pericfg CLK_PERI_NFI_PAD&gt;;
        clock-names = "nfi_clk", "pad_clk";
        ecc-engine = &lt;&amp;bch&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        nand@0 {
            reg = &lt;0&gt;;

            nand-on-flash-bbt;
            nand-ecc-mode = "hw";
            nand-ecc-step-size = &lt;1024&gt;;
            nand-ecc-strength = &lt;24&gt;;

            partitions {
                compatible = "fixed-partitions";
                #address-cells = &lt;1&gt;;
                #size-cells = &lt;1&gt;;

                preloader@0 {
                    label = "pl";
                    read-only;
                    reg = &lt;0x0 0x400000&gt;;
                };
                android@400000 {
                    label = "android";
                    reg = &lt;0x400000 0x12c00000&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-only OR BSD-2-Clause)</span></p>

</details>

---

# MediaTek(MTK) SoCs NAND ECC engine

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

> Device-tree binding reference for MediaTek(MTK) SoCs NAND ECC engine.

<!-- 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;mediatek&#44;nand&#45;ecc&#45;engine&#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;Xiangsheng Hou &#60;xiangsheng&#46;hou&#64;mediatek&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">MTK NAND ECC engine can cowork with MTK raw NAND and SPI NAND controller.</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;mediatek&#44;mt2701&#45;ecc&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;mediatek&#44;mt2712&#45;ecc&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;mediatek&#44;mt7622&#45;ecc&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;mediatek&#44;mt7986&#45;ecc&#34;</code></span>

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

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">Base physical address and size of ECC.</p>
> </div>

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

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

<a id="dt-985aed94c3a5de8e946a"></a>

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

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

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">ECC interrupt</p>
> </div>

<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

**Exact value (<code>const</code>):** <span id="dt-882f4571b4b135d59582"><code>&#34;nfiecc&#95;clk&#34;</code></span>

**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>

<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">#include &lt;dt-bindings/clock/mt2701-clk.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

soc {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    bch: ecc@1100e000 {
        compatible = "mediatek,mt2701-ecc";
        reg = &lt;0 0x1100e000 0 0x1000&gt;;
        interrupts = &lt;GIC_SPI 55 IRQ_TYPE_LEVEL_LOW&gt;;
        clocks = &lt;&amp;pericfg CLK_PERI_NFI_ECC&gt;;
        clock-names = "nfiecc_clk";
    };
};
</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-only OR BSD-2-Clause)</span></p>

</details>

---

# Microchip 23K256 SPI SRAM

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

> Device-tree binding reference for Microchip 23K256 SPI SRAM.

<!-- 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;microchip&#44;mchp23k256&#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;Richard Weinberger &#60;richard&#64;nod&#46;at&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Microchip 23K256 is a 256 Kbit (32 Kbyte) serial SRAM with an SPI interface,supporting clock frequencies up to 20 MHz. It features a 32-byte page size for writes and supports byte, page, and sequential access modes.</p>
</div>

<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>&#47;schemas&#47;spi&#47;spi&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-peripheral-props.md#dt-root>)</span>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;microchip&#44;mchp23k256&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;microchip&#44;mchp23lcv1024&#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>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;reg&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;compatible&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;spi&#45;max&#45;frequency&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    sram@0 {
        compatible = "microchip,mchp23k256";
        reg = &lt;0&gt;;
        spi-max-frequency = &lt;20000000&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Microchip 48l640 (and similar) serial EERAM

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

> Device-tree binding reference for Microchip 48l640 (and similar) serial EERAM.

<!-- 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;microchip&#44;mchp48l640&#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;Heiko Schocher &#60;hs&#64;denx&#46;de&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Microchip 48l640 is a 8KByte EERAM connected via SPI.</p>
<p style="white-space: pre-wrap">datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/20006055B.pdf</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;fujitsu&#44;mb85rs128ty&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;microchip&#44;48l640&#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>

**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>

<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>&#47;schemas&#47;spi&#47;spi&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-peripheral-props.md#dt-root>)</span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    eeram@0 {
        compatible = "microchip,48l640";
        reg = &lt;0&gt;;
        spi-max-frequency = &lt;20000000&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-only OR BSD-2-Clause)</span></p>

</details>

---

# CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...)

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

> Device-tree binding reference for CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...).

<!-- 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;mtd&#47;mtd&#45;physmap&#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;Rob Herring &#60;robh&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Flash chips (Memory Technology Devices) are often used for solid state
file systems on embedded devices.</p>
</div>

<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>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8549616abc3b04702c51">[<code>&#47;schemas&#47;memory&#45;controllers&#47;mc&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-memory-controllers/mc-peripheral-props.md#dt-root>)</span>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;amd&#44;s29gl01gp&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;amd&#44;s29gl032a&#34;</code></span>, <span id="dt-b7d19de74fd35364d49f"><code>&#34;amd&#44;s29gl256n&#34;</code></span>, <span id="dt-6cbdeefc52e7132bc62c"><code>&#34;amd&#44;s29gl512n&#34;</code></span>, <span id="dt-fd88adda17227ca32776"><code>&#34;arm&#44;versatile&#45;flash&#34;</code></span>, <span id="dt-f0dfbb755d86acc4c265"><code>&#34;arm&#44;vexpress&#45;flash&#34;</code></span>, <span id="dt-fd90c4a6b4c12fdce245"><code>&#34;cortina&#44;gemini&#45;flash&#34;</code></span>, <span id="dt-e2dcb0e367ca5c3b7bca"><code>&#34;cypress&#44;hyperflash&#34;</code></span>, <span id="dt-8f172ba5f5ba57694b17"><code>&#34;ge&#44;imp3a&#45;firmware&#45;mirror&#34;</code></span>, <span id="dt-818bfc86902057a0cfa5"><code>&#34;ge&#44;imp3a&#45;paged&#45;flash&#34;</code></span>, <span id="dt-40cc8e0354bd3c46c2b0"><code>&#34;gef&#44;ppc9a&#45;firmware&#45;mirror&#34;</code></span>, <span id="dt-a51a88fcd7865e1371b5"><code>&#34;gef&#44;ppc9a&#45;paged&#45;flash&#34;</code></span>, <span id="dt-23e0456f1590624d28e6"><code>&#34;gef&#44;sbc310&#45;firmware&#45;mirror&#34;</code></span>, <span id="dt-97919bd8d4cffc92f04e"><code>&#34;gef&#44;sbc310&#45;paged&#45;flash&#34;</code></span>, <span id="dt-e645e3f9d6254b0c4193"><code>&#34;gef&#44;sbc610&#45;firmware&#45;mirror&#34;</code></span>, <span id="dt-582ea23e6d93a2ab2899"><code>&#34;gef&#44;sbc610&#45;paged&#45;flash&#34;</code></span>, <span id="dt-ec4788eeb35c9e532697"><code>&#34;intel&#44;28f128j3&#34;</code></span>, <span id="dt-ce811e7f5e306c3785e9"><code>&#34;intel&#44;dt28f160&#34;</code></span>, <span id="dt-6f653cf4e4f652d90d72"><code>&#34;intel&#44;ixp4xx&#45;flash&#34;</code></span>, <span id="dt-ab188e9930e05044e305"><code>&#34;intel&#44;JS28F128&#34;</code></span>, <span id="dt-c622a051d6a3347abd43"><code>&#34;intel&#44;JS28F640&#34;</code></span>, <span id="dt-ef02f0552f26ea41f697"><code>&#34;intel&#44;PC28F640P30T85&#34;</code></span>, <span id="dt-1f14585309ea54d5cf7a"><code>&#34;numonyx&#44;js28f00a&#34;</code></span>, <span id="dt-dec3cf0db51cc78978a9"><code>&#34;numonyx&#44;js28f128&#34;</code></span>, <span id="dt-91e08d0936fb7374a7a9"><code>&#34;sst&#44;sst39vf320&#34;</code></span>, <span id="dt-beabf1745c7000cd366c"><code>&#34;xlnx&#44;xps&#45;mch&#45;emc&#45;2&#46;00&#46;a&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-9cd758e5ad85b04d8a92"></a> <span id="dt-6876dcb874892768c533"><code>&#34;cfi&#45;flash&#34;</code></span>, <span id="dt-400ed4866acf4f50198b"><code>&#34;jedec&#45;flash&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;cypress&#44;cy7c1019dv33&#45;10zsxi&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;arm&#44;vexpress&#45;psram&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;mtd&#45;ram&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> **Allowed values (<code>enum</code>):** <a id="dt-9fc3f5081af7fe32b794"></a> <span id="dt-264517b00ca7c7f3c30f"><code>&#34;cfi&#45;flash&#34;</code></span>, <span id="dt-78ff4d043ca24550ed33"><code>&#34;jedec&#45;flash&#34;</code></span>, <span id="dt-aada3a31ecc374bd5eca"><code>&#34;mtd&#45;ram&#34;</code></span>, <span id="dt-6cdb02d4beab121ea3fa"><code>&#34;mtd&#45;rom&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">It's possible to (optionally) define multiple "reg" tuples so that
non-identical chips can be described in one node.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-4b3e7791b11b96c3db87"><code>1</code></span>

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

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

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Chips may need clocks to be enabled for themselves or for transparent
bridges.</p>
</div>

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

<div id="dt-33c740e5969dba94b4e6">
<p style="white-space: pre-wrap">Chips may need power domains to be enabled for themselves or for
transparent bridges.</p>
</div>

<a id="dt-47da4bbe0f29c8176b26"></a>

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

<div id="dt-89d0ae048d785aef611c">
<p style="white-space: pre-wrap">Width (in bytes) of the bank.  Equal to the device width times the number of interleaved chips.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-1ac9fe851d09be31d321"></a> <span id="dt-dc8b83b8b6385a148ef5"><code>1</code></span>, <span id="dt-1e14a40c0e941723f4ef"><code>2</code></span>, <span id="dt-00a4ac344914a1344bf9"><code>4</code></span>

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

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

<div id="dt-60657dc04a574b98affb">
<p style="white-space: pre-wrap">Width of a single mtd chip. If omitted, assumed to be equal to 'bank-width'.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-e9cdecf6eefae7c88507"></a> <span id="dt-de6fbdbcabfa5a809092"><code>1</code></span>, <span id="dt-612478ff5b28aa601314"><code>2</code></span>

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

### <code>no&#45;unaligned&#45;direct&#45;access</code> — not listed as required here

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

<div id="dt-e223307ae4d3871ee8cb">
<p style="white-space: pre-wrap">Disables the default direct mapping of the flash.</p>
<p style="white-space: pre-wrap">On some platforms (e.g. MPC5200) a direct 1:1 mapping may cause problems
with JFFS2 usage, as the local bus (LPB) doesn't support unaligned
accesses as implemented in the JFFS2 code via memcpy(). By defining
"no-unaligned-direct-access", the flash will not be exposed directly to
the MTD users (e.g. JFFS2) any more.</p>
</div>

<a id="dt-56a43f414615523b1473"></a>

### <code>linux&#44;mtd&#45;name</code> — not listed as required here

<div id="dt-0fed63aa783ca6c882f7">
<p style="white-space: pre-wrap">Allows specifying the mtd name for retro capability with physmap-flash drivers as boot loader pass the mtd partition via the old device name physmap-flash.</p>
</div>

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

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

### <code>use&#45;advanced&#45;sector&#45;protection</code> — not listed as required here

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

<div id="dt-8e1257fce6791a535174">
<p style="white-space: pre-wrap">Enables support for the advanced sector protection (Spansion: PPB -
Persistent Protection Bits) locking.</p>
</div>

<a id="dt-38050224f115c47c80f6"></a>

### <code>erase&#45;size</code> — not listed as required here

<div id="dt-00725644f75142a98511">
<p style="white-space: pre-wrap">The chip's physical erase block size in bytes.</p>
</div>

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

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

### <code>addr&#45;gpios</code> — not listed as required here

<div id="dt-a81a39ac07af1952cd50">
<p style="white-space: pre-wrap">List of GPIO descriptors that will be used to address the MSBs address lines. The order goes from LSB to MSB.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-72e627e15908a1471bd0"><code>1</code></span>

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

<a id="dt-2efe70314a961a652abe"></a>

### <code>&#35;address&#45;cells</code> — not listed as required here

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

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

### <code>&#35;size&#45;cells</code> — not listed as required here

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

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

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

<code>true</code> — No constraints added by this property rule.

<a id="dt-319a1197721d8cd4e338"></a>

### <code>big&#45;endian</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

### <code>little&#45;endian</code> — not listed as required here

<code>true</code> — No constraints added by this property 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>

<a id="dt-158e3f6339df9dc0e448"></a>

## Condition (<code>if</code>)

> <a id="dt-0c7b6d12024f922c1b96"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-824fdc441f7c94ae56ca"></a>
>
> #### <code>compatible</code> — not listed as required here
>
> <a id="dt-8239149d6c8b0a5dabbe"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Exact value (<code>const</code>):** <span id="dt-0259836b095562054cc8"><code>&#34;cortina&#44;gemini&#45;flash&#34;</code></span>

<a id="dt-94d3067a06aec87aad7f"></a>

## When the condition matches (<code>then</code>)

> <a id="dt-d3da345ec82b9041251c"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-55e07761537124891827"></a>
>
> #### <code>syscon</code> — required here
>
> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d2853bf1ce4d6aadd8fb">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2533fa46618221e83225>)</span>
>
> <div id="dt-b48817e0d5cc034d4aae">
> <p style="white-space: pre-wrap">Phandle to the syscon controller</p>
> </div>
>
> **Required in this object (<code>required</code>):** <a id="dt-824165741bab07e919e7"></a> <span id="dt-0be16f81402541b26aff"><code>&#34;syscon&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">
flash@ff000000 {
    compatible = "cfi-flash";
    reg = &lt;0xff000000 0x01000000&gt;;
    bank-width = &lt;4&gt;;
    device-width = &lt;1&gt;;

    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges = &lt;0 0xff000000 0x01000000&gt;;

    fs@0 {
        label = "fs";
        reg = &lt;0 0xf80000&gt;;
    };
    firmware@f80000 {
        label = "firmware";
        reg = &lt;0xf80000 0x80000&gt;;
        read-only;
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">/* An example with multiple "reg" tuples */

flash@0 {
    compatible = "intel,PC28F640P30T85", "cfi-flash";
    reg = &lt;0x00000000 0x02000000&gt;,
          &lt;0x02000000 0x02000000&gt;;
    bank-width = &lt;2&gt;;

    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges = &lt;0 0 0x04000000&gt;;

    partition@0 {
        label = "test-part1";
        reg = &lt;0 0x04000000&gt;;
    };
};
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">/* An example using SRAM */
bus {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;1&gt;;

    sram@2,0 {
        compatible = "mtd-ram";
        reg = &lt;2 0 0x00200000&gt;;
        bank-width = &lt;2&gt;;
    };
};
</code></pre>

<pre id="dt-cf8a683b5a963eb1c566"><code class="language-dts">/* An example using addr-gpios */
#include &lt;dt-bindings/gpio/gpio.h&gt;

flash@20000000 {
    compatible = "cfi-flash";
    reg = &lt;0x20000000 0x02000000&gt;;
    bank-width = &lt;2&gt;;
    addr-gpios = &lt;&amp;gpio1 2 GPIO_ACTIVE_HIGH&gt;;

    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges = &lt;0 0x00000000 0x02000000&gt;,
             &lt;1 0x02000000 0x02000000&gt;;

    partition@0 {
        label = "test-part1";
        reg = &lt;0 0x04000000&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>

---

# MTD (Memory Technology Device)

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

> Device-tree binding reference for MTD (Memory Technology Device).

<!-- SPDX-License-Identifier: (GPL-2.0 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;mtd&#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>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Richard Weinberger &#60;richard&#64;nod&#46;at&#62;&#34;</code></span>

<a id="dt-865ef19e891fb9fe7b15"></a>

## Automatic schema selection (<code>select</code>)

<code>false</code>

Not selected automatically by this rule.

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;&#40;flash&#124;&#46;&#42;sram&#124;nand&#41;&#40;&#64;&#46;&#42;&#41;&#63;&#36;&#34;</code></span>

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

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

<div id="dt-f7c1a813bb0d2e9dd066">
<p style="white-space: pre-wrap">User-defined MTD device name. Can be used to assign user friendly names to MTD devices (instead of the flash model or flash controller based name) in order to ease flash device identification and/or describe what they are used for.</p>
</div>

<a id="dt-2efe70314a961a652abe"></a>

### <code>&#35;address&#45;cells</code> — not listed as required here

**Deprecated (<code>deprecated</code>):** <span id="dt-20a9809b42bf0e01a9a2"><code>true</code></span>

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

### <code>&#35;size&#45;cells</code> — not listed as required here

**Deprecated (<code>deprecated</code>):** <span id="dt-cc1ba539712072fafe5b"><code>true</code></span>

<a id="dt-1661271ef1d2a38bb2d4"></a>

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

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

**Required in this object (<code>required</code>):** <a id="dt-1718eeb40e9fa4fbc445"></a> <span id="dt-2a07ba893e51fa8e2d4a"><code>&#34;compatible&#34;</code></span>

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

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

<a id="dt-2dd6997db9b0e51f210a"></a>

### <code>&#40;&#94;partition&#41;&#63;&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b9a2e19b2f93d2bf30fa">[<code>&#47;schemas&#47;mtd&#47;partitions&#47;partition&#46;yaml&#35;&#47;&#36;defs&#47;partition&#45;node</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-b43252f69d556623c54c>)</span>

**Deprecated (<code>deprecated</code>):** <span id="dt-269397ebfd963c904178"><code>true</code></span>

<a id="dt-124159550c5f7d726609"></a>

### <code>&#94;otp&#40;&#45;&#91;0&#45;9&#93;&#43;&#41;&#63;&#36;</code> — name matches this regular expression

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

<a id="dt-5400ecdbda2bc583ee87"></a>

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

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

**Rule 1**

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

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

**Rule 2**

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ecb24b717e48980e2596">[<code>&#47;schemas&#47;nvmem&#47;nvmem&#45;deprecated&#45;cells&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-nvmem/nvmem-deprecated-cells.md#dt-root>)</span>

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

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<div id="dt-329725bbfd563c9829d6">
<p style="white-space: pre-wrap">An OTP memory region. Some flashes provide a one-time-programmable
memory whose content can either be programmed by a user or is already
pre-programmed by the factory. Some flashes might provide both.</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-b9119d53304e8f0483d3"></a> <span id="dt-5ae99eba774b00186df5"><code>&#34;user&#45;otp&#34;</code></span>, <span id="dt-5b110603fcd7991c2981"><code>&#34;factory&#45;otp&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-548eeb3e38499f913c82"></a> <span id="dt-7f6a4d2ffd81fceefbeb"><code>&#34;compatible&#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.

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    flash@0 {
        reg = &lt;0&gt;;
        compatible = "jedec,spi-nor";
        label = "System-firmware";
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    flash@0 {
        reg = &lt;0&gt;;
        compatible = "jedec,spi-nor";

        otp-1 {
            compatible = "factory-otp";
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;1&gt;;

            electronic-serial-number@0 {
                reg = &lt;0 8&gt;;
            };
        };

        otp-2 {
            compatible = "user-otp";
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;1&gt;;

            mac-address@0 {
                reg = &lt;0 6&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 OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 66:</strong> <span> This is a generic file other binding inherit from</span></p>

</details>

---

# Freescale's mxc_nand

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

> Device-tree binding reference for Freescale's mxc_nand.

<!-- 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;mxc&#45;nand&#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;Uwe Kleine&#45;König &#60;u&#46;kleine&#45;koenig&#64;pengutronix&#46;de&#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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;fsl&#44;imx27&#45;nand&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;fsl&#44;imx31&#45;nand&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;fsl&#44;imx27&#45;nand&#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-c2de09e7f7fd211b679d"></a>

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

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

**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>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">nand-controller@d8000000 {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    compatible = "fsl,imx27-nand";
    reg = &lt;0xd8000000 0x1000&gt;;
    interrupts = &lt;29&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Macronix Raw NAND Controller

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

> Device-tree binding reference for Macronix Raw NAND Controller.

<!-- 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;mxic&#44;multi&#45;itfc&#45;v009&#45;nand&#45;controller&#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;Mason Yang &#60;masonccyang&#64;mxic&#46;com&#46;tw&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Macronix Multi-Interface Raw NAND Controller is a versatile flash memory controller for embedding in SoCs, capable of interfacing with various NAND devices. It requires dedicated clock inputs for core, data transmit, and delayed transmit paths along with register space and an interrupt line for operation.</p>
</div>

<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>nand&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<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;mxic&#44;multi&#45;itfc&#45;v009&#45;nand&#45;controller&#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-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-2efe70314a961a652abe"></a>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-793e842f88ef513a8f93"><code>0</code></span>

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-1f26a8d0aa315cbb9547"><code>3</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><code>3</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;ps&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;send&#34;</code></span>

<a id="dt-261be8310c899fd46631"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-ad55fa67f3e765bf6ab6"><code>&#34;send&#95;dly&#34;</code></span>

**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;&#35;address&#45;cells&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;size&#45;cells&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;clocks&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;clock&#45;names&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
nand-controller@43c30000 {
    compatible = "mxic,multi-itfc-v009-nand-controller";
    reg = &lt;0x43c30000 0x10000&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    interrupts = &lt;GIC_SPI 0x1d IRQ_TYPE_EDGE_RISING&gt;;
    clocks = &lt;&amp;clkwizard 0&gt;, &lt;&amp;clkwizard 1&gt;, &lt;&amp;clkc 15&gt;;
    clock-names = "ps", "send", "send_dly";

    nand@0 {
        reg = &lt;0&gt;;
        nand-ecc-mode = "soft";
        nand-ecc-algo = "bch";
    };
};
</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-only OR BSD-2-Clause</span></p>

</details>

---

# Macronix NAND ECC engine

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

> Device-tree binding reference for Macronix NAND ECC engine.

<!-- 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;mxicy&#44;nand&#45;ecc&#45;engine&#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-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;mxicy&#44;nand&#45;ecc&#45;engine&#45;rev3&#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> — not listed as required here

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

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

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

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

**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>

<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">/* External configuration */
spi_controller0: spi@43c30000 {
    compatible = "mxicy,mx25f0a-spi";
    reg = &lt;0x43c30000 0x10000&gt;, &lt;0xa0000000 0x4000000&gt;;
    reg-names = "regs", "dirmap";
    clocks = &lt;&amp;clkwizard 0&gt;, &lt;&amp;clkwizard 1&gt;, &lt;&amp;clkc 15&gt;;
    clock-names = "send_clk", "send_dly_clk", "ps_clk";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    flash@0 {
        compatible = "spi-nand";
        reg = &lt;0&gt;;
        nand-ecc-engine = &lt;&amp;ecc_engine0&gt;;
    };
};

ecc_engine0: ecc@43c40000 {
    compatible = "mxicy,nand-ecc-engine-rev3";
    reg = &lt;0x43c40000 0x10000&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">/* Pipelined configuration */
spi_controller1: spi@43c30000 {
    compatible = "mxicy,mx25f0a-spi";
    reg = &lt;0x43c30000 0x10000&gt;, &lt;0xa0000000 0x4000000&gt;;
    reg-names = "regs", "dirmap";
    clocks = &lt;&amp;clkwizard 0&gt;, &lt;&amp;clkwizard 1&gt;, &lt;&amp;clkc 15&gt;;
    clock-names = "send_clk", "send_dly_clk", "ps_clk";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    nand-ecc-engine = &lt;&amp;ecc_engine1&gt;;

    flash@0 {
        compatible = "spi-nand";
        reg = &lt;0&gt;;
        nand-ecc-engine = &lt;&amp;spi_controller1&gt;;
    };
};

ecc_engine1: ecc@43c40000 {
    compatible = "mxicy,nand-ecc-engine-rev3";
    reg = &lt;0x43c40000 0x10000&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-only OR BSD-2-Clause)</span></p>

</details>

---

# 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>

---

# NAND Controller Common Properties

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

> Device-tree binding reference for NAND Controller 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;controller&#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>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Richard Weinberger &#60;richard&#64;nod&#46;at&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The NAND controller should be represented with its own DT node, and
all NAND chips attached to this controller should be defined as
children nodes of the NAND controller. This representation should be
enforced even for simple controllers supporting only one chip.</p>
</div>

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;nand&#45;controller&#40;&#64;&#46;&#42;&#41;&#63;&#34;</code></span>

<a id="dt-2efe70314a961a652abe"></a>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-793e842f88ef513a8f93"><code>0</code></span>

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

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

<code>true</code> — No constraints added by this property rule.

<a id="dt-753d71364d8d5e562885"></a>

### <code>cs&#45;gpios</code> — not listed as required here

<div id="dt-dd9e28225d0ed2cf0953">
<p style="white-space: pre-wrap">Array of chip-select available to the controller. The first entries are a 1:1 mapping of the available chip-select on the NAND controller (even if they are not used). As many additional chip-select as needed may follow and should be phandles of GPIO lines. 'reg' entries of the NAND chip subnodes become indexes of this array when this property is present.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-4baf5671ef113c6a651b"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-6e40d1950e04d6c3b089"><code>8</code></span>

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

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

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

### <code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression

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

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

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;&#35;size&#45;cells&#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.

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">nand-controller {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;
  cs-gpios = &lt;0&gt;, &lt;&amp;gpioA 1&gt;; /* A single native CS is available */

  /* controller specific properties */

  nand@0 {
    reg = &lt;0&gt;; /* Native CS */
    /* NAND chip specific properties */
  };

  nand@1 {
    reg = &lt;1&gt;; /* GPIO CS */
  };
};
</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-only OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 51:</strong> <span> This is a generic file other binding inherit from and extend</span></p>

</details>

---

# Nuvoton MA35D1 NAND Flash Interface (NFI) Controller

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

> Device-tree binding reference for Nuvoton MA35D1 NAND Flash Interface (NFI) Controller.

<!-- 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;nuvoton&#44;ma35d1&#45;nand&#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;Hui&#45;Ping Chen &#60;hpchen0nvt&#64;gmail&#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>nand&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;nuvoton&#44;ma35d1&#45;nand&#45;controller&#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-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-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-e92215bd3c2f5373b164"></a>

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

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

### <code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4047c0ee7509401a701c">[<code>raw&#45;nand&#45;chip&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/raw-nand-chip.md#dt-root>)</span>

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

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

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

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

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-e0bd7979a17ce1c59aae"></a> <span id="dt-fe0b5f76fd0c22e710f3"><code>512</code></span>, <span id="dt-7be13caae78616f1aa06"><code>1024</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-bebffea65472968a8e27"></a> <span id="dt-b19ab79d98c0506978d1"><code>8</code></span>, <span id="dt-595b660e021c90b8aef9"><code>12</code></span>, <span id="dt-311ef8a00c71bdc810dd"><code>24</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8e1200328650c62b97b7"></a> <span id="dt-18dc79a6a0290d3b3d52"><code>&#34;reg&#34;</code></span>

<a id="dt-5957228d95e49801719f"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</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>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/clock/nuvoton,ma35d1-clk.h&gt;

soc {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    nand-controller@401A0000 {
        compatible = "nuvoton,ma35d1-nand-controller";
        reg = &lt;0x0 0x401A0000 0x0 0x1000&gt;;
        interrupts = &lt;GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH&gt;;
        clocks = &lt;&amp;clk NAND_GATE&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        nand@0 {
            reg = &lt;0&gt;;
            nand-on-flash-bbt;
            nand-ecc-step-size = &lt;512&gt;;
            nand-ecc-strength = &lt;8&gt;;

            partitions {
                compatible = "fixed-partitions";
                #address-cells = &lt;1&gt;;
                #size-cells = &lt;1&gt;;

                uboot@0 {
                    label = "nand-uboot";
                    read-only;
                    reg = &lt;0x0 0x300000&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-only OR BSD-2-Clause)</span></p>

</details>

---

# NVIDIA Tegra NAND Flash Controller

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

> Device-tree binding reference for NVIDIA Tegra NAND Flash Controller.

<!-- 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;nvidia&#44;tegra20&#45;nand&#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;Jonathan Hunter &#60;jonathanh&#64;nvidia&#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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The NVIDIA NAND controller provides an interface between NVIDIA SoCs and raw NAND flash devices. It supports standard NAND operations, hardware-assisted ECC, OOB data access, and DMA transfers, and integrates with the Linux MTD NAND subsystem for reliable flash management.</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;tegra20&#45;nand&#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-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-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;nand&#34;</code></span>

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

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

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

<a id="dt-563c20491090a57ac4c9"></a>

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

<a id="dt-353fc881e5c58d1dcba1"></a>

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

<a id="dt-5629342117bd5a110a5b"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-00c19fce1fea453eab02"><code>&#34;nand&#34;</code></span>

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

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

<a id="dt-324942e28549e5e189eb"></a>

### <code>operating&#45;points&#45;v2</code> — not listed as required here

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

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

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

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

### <code>&#94;nand&#64;</code> — name matches this regular expression

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

<div id="dt-0dc22f711585c22d0dfe">
<p style="white-space: pre-wrap">Individual NAND chip connected to the NAND controller</p>
</div>

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

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

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

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-12c71016a1daa8b5eb9b"><code>5</code></span>

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

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</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;resets&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;reset&#45;names&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/clock/tegra20-car.h&gt;
#include &lt;dt-bindings/gpio/tegra-gpio.h&gt;

nand-controller@70008000 {
    compatible = "nvidia,tegra20-nand";
    reg = &lt;0x70008000 0x100&gt;;
    interrupts = &lt;GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH&gt;;
    clocks = &lt;&amp;tegra_car TEGRA20_CLK_NDFLASH&gt;;
    clock-names = "nand";
    resets = &lt;&amp;tegra_car 13&gt;;
    reset-names = "nand";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    nand@0 {
        reg = &lt;0&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;1&gt;;
        nand-bus-width = &lt;8&gt;;
        nand-on-flash-bbt;
        nand-ecc-algo = "bch";
        nand-ecc-strength = &lt;8&gt;;
        wp-gpios = &lt;&amp;gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_LOW&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-only OR BSD-2-Clause)</span></p>

</details>

---

# NXP SPI Flash Interface (SPIFI)

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

> Device-tree binding reference for NXP SPI Flash Interface (SPIFI).

<!-- 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;nxp&#44;lpc1773&#45;spifi&#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">NXP SPIFI is a specialized SPI interface for serial Flash devices. It supports one Flash device with 1-, 2- and 4-bits width in SPI mode 0 or 3. The controller operates in either command or memory mode. In memory mode the Flash is accessible from the CPU as normal memory.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Frank Li &#60;Frank&#46;Li&#64;nxp&#46;com&#62;&#34;</code></span>

<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;nxp&#44;lpc1773&#45;spifi&#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>2</code></span>

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

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;spifi&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;flash&#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-4e9a371963ac013ad39d"></a>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><code>2</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;spifi&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;reg&#34;</code></span>

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

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

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

<a id="dt-27851c8ce8d41152ef35"></a>

### <code>spi&#45;cpol</code> — not listed as required here

**Allowed values (<code>enum</code>):** <a id="dt-087efee1b20b712b9d55"></a> <span id="dt-eb7e9213fa92759bb18e"><code>0</code></span>, <span id="dt-ef29882eff77d0210779"><code>3</code></span>

**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;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;interrupts&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;clocks&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;clock&#45;names&#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>&#47;schemas&#47;spi&#47;spi&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-controller.md#dt-root>)</span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/clock/lpc18xx-ccu.h&gt;

spi@40003000 {
    compatible = "nxp,lpc1773-spifi";
    reg = &lt;0x40003000 0x1000&gt;, &lt;0x14000000 0x4000000&gt;;
    reg-names = "spifi", "flash";
    interrupts = &lt;30&gt;;
    clocks = &lt;&amp;ccu1 CLK_SPIFI&gt;, &lt;&amp;ccu1 CLK_CPU_SPIFI&gt;;
    clock-names = "spifi", "reg";
    resets = &lt;&amp;rgu 53&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Qualcomm NAND controller

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

> Device-tree binding reference for Qualcomm NAND controller.

<!-- 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;qcom&#44;nandc&#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;Manivannan Sadhasivam &#60;manivannan&#46;sadhasivam&#64;linaro&#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> — required here

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;qcom&#44;sdx75&#45;nand&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;qcom&#44;sdx55&#45;nand&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;qcom&#44;ipq806x&#45;nand&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;qcom&#44;ipq4019&#45;nand&#34;</code></span>, <span id="dt-bdca084879537277097b"><code>&#34;qcom&#44;ipq6018&#45;nand&#34;</code></span>, <span id="dt-922f7901d25b667972ac"><code>&#34;qcom&#44;ipq8074&#45;nand&#34;</code></span>, <span id="dt-eb61ad381053476dae55"><code>&#34;qcom&#44;sdx55&#45;nand&#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

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">Core Clock</p>
> </div>

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

**Item 2**

> <div id="dt-6b79aebfd2287d4aeab8">
> <p style="white-space: pre-wrap">Always ON Clock</p>
> </div>

<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;core&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;aon&#34;</code></span>

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

### <code>qcom&#44;cmd&#45;crci</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-f7201320e231b0428963">[<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-57031f36baff2f3ce750">
<p style="white-space: pre-wrap">Must contain the ADM command type CRCI block instance number specified for the NAND controller on the given platform</p>
</div>

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

### <code>qcom&#44;data&#45;crci</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-04d152db7588b90b84c8">[<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-ea283a6d187243dd51bb">
<p style="white-space: pre-wrap">Must contain the ADM data type CRCI block instance number specified for the NAND controller on the given platform</p>
</div>

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

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

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

### <code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4047c0ee7509401a701c">[<code>raw&#45;nand&#45;chip&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/raw-nand-chip.md#dt-root>)</span>

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

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

<a id="dt-89179586402e00fb2db1"></a>

**<code>nand&#45;bus&#45;width</code> — not listed as required here**

**Exact value (<code>const</code>):** <span id="dt-6a66ed0df718e0097002"><code>8</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-bebffea65472968a8e27"></a> <span id="dt-b19ab79d98c0506978d1"><code>1</code></span>, <span id="dt-595b660e021c90b8aef9"><code>4</code></span>, <span id="dt-311ef8a00c71bdc810dd"><code>8</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-e0bd7979a17ce1c59aae"></a> <span id="dt-fe0b5f76fd0c22e710f3"><code>512</code></span>

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

**<code>qcom&#44;boot&#45;partitions</code> — not listed as required here**

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

<a id="dt-845ff22f4d7e8a005698"></a>

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

> <a id="dt-2ceae21d02666cd559e1"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-de372c4ad858e7403ef6"></a>
>
> **Item 1**
>
> > <div id="dt-295750ab20bb4b105ae1">
> > <p style="white-space: pre-wrap">offset</p>
> > </div>
>
> <a id="dt-18fc243805773046e43c"></a>
>
> **Item 2**
>
> > <div id="dt-ff01c93247a5bf0a72f4">
> > <p style="white-space: pre-wrap">size</p>
> > </div>

<div id="dt-e6a527ba9a462323b60b">
<p style="white-space: pre-wrap">Boot partition use a different layout where the 4 bytes of spare data are not protected by ECC. Use this to declare these special partitions by defining first the offset and then the size.
It's in the form of &lt;offset1 size1 offset2 size2 offset3 ...&gt; and should be declared in ascending order.
Refer to the ipq8064 example on how to use this special binding.</p>
</div>

<a id="dt-5957228d95e49801719f"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<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>nand&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9b74ad9882646c4a5116"><code>&#34;qcom&#44;ipq806x&#45;nand&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-f444428309b17730c91b"></a>
> >
> > **<code>dmas</code> — not listed as required here**
> >
> > <a id="dt-1d7b15403ebf9c9471ad"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-99a95bc7386db42558d0"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-b8ca5c6118cb08d5a20e">
> > > <p style="white-space: pre-wrap">rxtx DMA channel</p>
> > > </div>
> >
> > <a id="dt-606ab4afd02d69f0a319"></a>
> >
> > **<code>dma&#45;names</code> — not listed as required here**
> >
> > <a id="dt-57cae489a5bcf2873a24"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-77058396ef4ad0e2fd84"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-70cf53df506800e116a6"><code>&#34;rxtx&#34;</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-7838023cb1ac8ba1fc13"></a> <span id="dt-2698b34438b1aced3e06"><code>&#34;qcom&#44;sdx75&#45;nand&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-f65aa3e43c5397e273f5"></a>
> >
> > **<code>iommus</code> — not listed as required here**
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-ef24450067a443ff766d"><code>1</code></span>

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

### Rule 4

> <a id="dt-5d622c5a2672c1e49b35"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-8d84f7bba76b4e26221f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-11dc65c5cf7abc0317bb"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-3de4a4db25c09109abf4"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-2f146490cc52d0a82c19"></a> <span id="dt-b1038ed41acf3cc462f9"><code>&#34;qcom&#44;ipq4019&#45;nand&#34;</code></span>, <span id="dt-ee83d100044168836749"><code>&#34;qcom&#44;ipq6018&#45;nand&#34;</code></span>, <span id="dt-e937cad1333060d95a2c"><code>&#34;qcom&#44;ipq8074&#45;nand&#34;</code></span>, <span id="dt-056d08a65205139bcaab"><code>&#34;qcom&#44;sdx55&#45;nand&#34;</code></span>
>
> <a id="dt-889ceb40bc531bf0dc1d"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-7cd597a6bb6b91730c25"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-30cd378844be5ceaa01e"></a>
> >
> > **<code>dmas</code> — not listed as required here**
> >
> > <a id="dt-5d3334cb98c299d9ef6e"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-4fa7a7feb2191d261261"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-8e394748d93917b51e13">
> > > <p style="white-space: pre-wrap">tx DMA channel</p>
> > > </div>
> >
> > <a id="dt-361c0dc1480437ecc8aa"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-7f53f77f14f5ed9f1875">
> > > <p style="white-space: pre-wrap">rx DMA channel</p>
> > > </div>
> >
> > <a id="dt-b0dbad07627519b0c5f4"></a>
> >
> > **Item 3**
> >
> > > <div id="dt-326552ef024f3cdae5c3">
> > > <p style="white-space: pre-wrap">cmd DMA channel</p>
> > > </div>
> >
> > <a id="dt-3a1f132714eaad271e7f"></a>
> >
> > **<code>dma&#45;names</code> — not listed as required here**
> >
> > <a id="dt-add9dd6104c07be607e1"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-0a0a8dee04750cea4206"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-ce5a4dcc00fcbbee7a4b"><code>&#34;tx&#34;</code></span>
> >
> > <a id="dt-ad217e448e36b8542553"></a>
> >
> > **Item 2**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-261f588e07601a05c20d"><code>&#34;rx&#34;</code></span>
> >
> > <a id="dt-8273302a8dcf76aabb68"></a>
> >
> > **Item 3**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-5fb93adde23d3dc26ffb"><code>&#34;cmd&#34;</code></span>
> >
> > <a id="dt-fcfb80240ffa2ce39baa"></a>
> >
> > **<code>qcom&#44;cmd&#45;crci</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-3e6d3fdea966f1995615"></a>
> >
> > **<code>qcom&#44;data&#45;crci</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-9fff9961ce6722b392f4"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-db0009846645352666cd"></a>
> >
> > **<code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-c197b3ee0523ae0af761"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-6cca4536fc3ccde27778"></a>
> >
> > **<code>qcom&#44;boot&#45;partitions</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property 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;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/clock/qcom,gcc-ipq806x.h&gt;
nand-controller@1ac00000 {
    compatible = "qcom,ipq806x-nand";
    reg = &lt;0x1ac00000 0x800&gt;;

    clocks = &lt;&amp;gcc EBI2_CLK&gt;,
             &lt;&amp;gcc EBI2_AON_CLK&gt;;
    clock-names = "core", "aon";

    dmas = &lt;&amp;adm_dma 3&gt;;
    dma-names = "rxtx";
    qcom,cmd-crci = &lt;15&gt;;
    qcom,data-crci = &lt;3&gt;;

    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    nand@0 {
        reg = &lt;0&gt;;

        nand-ecc-strength = &lt;4&gt;;
        nand-bus-width = &lt;8&gt;;

        qcom,boot-partitions = &lt;0x0 0x58a0000&gt;;

        partitions {
            compatible = "fixed-partitions";
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;1&gt;;

            partition@0 {
                label = "boot-nand";
                reg = &lt;0 0x58a0000&gt;;
            };

            partition@58a0000 {
                label = "fs-nand";
                reg = &lt;0x58a0000 0x4000000&gt;;
            };
        };
    };
};

#include &lt;dt-bindings/clock/qcom,gcc-ipq4019.h&gt;
nand-controller@79b0000 {
    compatible = "qcom,ipq4019-nand";
    reg = &lt;0x79b0000 0x1000&gt;;

    clocks = &lt;&amp;gcc GCC_QPIC_CLK&gt;,
             &lt;&amp;gcc GCC_QPIC_AHB_CLK&gt;;
    clock-names = "core", "aon";

    dmas = &lt;&amp;qpicbam 0&gt;,
           &lt;&amp;qpicbam 1&gt;,
           &lt;&amp;qpicbam 2&gt;;
    dma-names = "tx", "rx", "cmd";

    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    nand@0 {
        reg = &lt;0&gt;;
        nand-ecc-strength = &lt;4&gt;;
        nand-bus-width = &lt;8&gt;;

        partitions {
            compatible = "fixed-partitions";
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;1&gt;;

            partition@0 {
                label = "boot-nand";
                reg = &lt;0 0x58a0000&gt;;
            };

            partition@58a0000 {
                label = "fs-nand";
                reg = &lt;0x58a0000 0x4000000&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Raw NAND Chip Common Properties

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

> Device-tree binding reference for Raw 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;raw&#45;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>nand&#45;chip&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-chip.md#dt-root>)</span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The ECC strength and ECC step size properties define the user
desires in terms of correction capability of a controller. Together,
they request the ECC engine to correct {strength} bit errors per
{size} bytes for a particular raw NAND chip.</p>
<p style="white-space: pre-wrap">The interpretation of these parameters is implementation-defined, so
not all implementations must support all possible
combinations. However, implementations are encouraged to further
specify the value(s) they support.</p>
</div>

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;&#34;</code></span>

<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-60025d5fb806f38d012f"></a>

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

<div id="dt-878f8bd982360b23c8f8">
<p style="white-space: pre-wrap">Location of the ECC bytes. This location is unknown by default but can be explicitly set to "oob", if all ECC bytes are known to be stored in the OOB area, or "interleaved" if ECC bytes will be interleaved with regular data in the main area.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7114c85c72fa48926d5b">[<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-385d193eb5853cbccf17"></a> <span id="dt-8f1cc3c24d580b32bffb"><code>&#34;oob&#34;</code></span>, <span id="dt-40aad0ea66aee74d86cc"><code>&#34;interleaved&#34;</code></span>

**Deprecated (<code>deprecated</code>):** <span id="dt-2fc1f746e77511387143"><code>true</code></span>

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

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

<div id="dt-d09a977fba29113430c2">
<p style="white-space: pre-wrap">Legacy ECC configuration mixing the ECC engine choice and configuration.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fa48db518dbac27de04c">[<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-185d6cadef786a2514ee"></a> <span id="dt-636c616ec8efb5692788"><code>&#34;none&#34;</code></span>, <span id="dt-adac201280d2449214b9"><code>&#34;soft&#34;</code></span>, <span id="dt-e6952d7fb7f12baeda31"><code>&#34;soft&#95;bch&#34;</code></span>, <span id="dt-0dded4751c9b775a2ee3"><code>&#34;hw&#34;</code></span>, <span id="dt-5675d98d5cbee272838d"><code>&#34;hw&#95;syndrome&#34;</code></span>, <span id="dt-b9d3a0accfbda4357306"><code>&#34;on&#45;die&#34;</code></span>

**Deprecated (<code>deprecated</code>):** <span id="dt-ad77cba2ae6e950f3bd2"><code>true</code></span>

<a id="dt-87fb29b6c4a6f243ceb5"></a>

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

<div id="dt-6f8fb3981f2fcb221925">
<p style="white-space: pre-wrap">Bus width to the NAND chip</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-6734721de3a7e564d708"></a> <span id="dt-307577e82f7c96cbd537"><code>8</code></span>, <span id="dt-4e1479dd6acac7a5e8d6"><code>16</code></span>

**Default value (<code>default</code>):** <span id="dt-815f1b657af94fb5cc88"><code>8</code></span>

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

### <code>nand&#45;on&#45;flash&#45;bbt</code> — not listed as required here

<div id="dt-e1e46cdc5b87ff7bb1f8">
<p style="white-space: pre-wrap">With this property, the OS will search the device for a Bad Block Table (BBT). If not found, it will create one, reserve a few blocks at the end of the device to store it and update it as the device ages. Otherwise, the out-of-band area of a few pages of all the blocks will be scanned at boot time to find Bad Block Markers (BBM). These markers will help to build a volatile BBT in RAM.</p>
</div>

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

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

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

<div id="dt-95085e893ff49877e1e8">
<p style="white-space: pre-wrap">Whether or not the ECC strength should be maximized. The maximum ECC strength is both controller and chip dependent. The ECC engine has to select the ECC config providing the best strength and taking the OOB area size constraint into account. This is particularly useful when only the in-band area is used by the upper layers, and you want to make your NAND as reliable as possible.</p>
</div>

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

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

### <code>nand&#45;is&#45;boot&#45;medium</code> — not listed as required here

<div id="dt-558d7adc7e79d2c483db">
<p style="white-space: pre-wrap">Whether or not the NAND chip is a boot medium. Drivers might use this information to select ECC algorithms supported by the boot ROM or similar restrictions.</p>
</div>

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

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

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

<div id="dt-743b8e0e36a5f4857b7b">
<p style="white-space: pre-wrap">Contains the native Ready/Busy IDs.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fa0d0ac89be0fdc78600">[<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>

<a id="dt-073198d5a30667f60b51"></a>

### <code>rb&#45;gpios</code> — not listed as required here

<div id="dt-301648fb0dddefc0965b">
<p style="white-space: pre-wrap">Contains one or more GPIO descriptor (the numper of descriptor depends on the number of R/B pins exposed by the flash) for the Ready/Busy pins. Active state refers to the NAND ready state and should be set to GPIOD_ACTIVE_HIGH unless the signal is inverted.</p>
</div>

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

### <code>wp&#45;gpios</code> — not listed as required here

<div id="dt-b3d5c4aa54d3e1aefc66">
<p style="white-space: pre-wrap">Contains one GPIO descriptor for the Write Protect pin. Active state refers to the NAND Write Protect state and should be set to GPIOD_ACTIVE_LOW unless the signal is inverted.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-75b22d76838a8e8440a5"><code>1</code></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 110:</strong> <span> This is a generic file other binding inherit from and extend</span></p>

</details>

---

# Realtek SoCs NAND ECC engine

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

> Device-tree binding reference for Realtek SoCs NAND ECC engine.

<!-- 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;realtek&#44;rtl9301&#45;ecc&#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;Markus Stockhausen &#60;markus&#46;stockhausen&#64;gmx&#46;de&#62;&#34;</code></span>

<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;realtek&#44;rtl9301&#45;ecc&#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> — not listed as required here

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

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

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

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

**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>

<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">soc {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    ecc0: ecc@1a600 {
        compatible = "realtek,rtl9301-ecc";
        reg = &lt;0x1a600 0x54&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Renesas R-Car Gen3 & RZ/N1x NAND flash controller

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

> Device-tree binding reference for Renesas R-Car Gen3 & RZ/N1x NAND flash controller.

<!-- 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;renesas&#45;nandc&#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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;renesas&#44;r9a06g032&#45;nandc&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;renesas&#44;rzn1&#45;nandc&#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-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-4e9a371963ac013ad39d"></a>

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

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">APB host controller clock</p>
> </div>

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

**Item 2**

> <div id="dt-6b79aebfd2287d4aeab8">
> <p style="white-space: pre-wrap">External NAND bus clock</p>
> </div>

<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;hclk&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;eclk&#34;</code></span>

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — required here

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

**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;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;power&#45;domains&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;interrupts&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/clock/r9a06g032-sysctrl.h&gt;

nand-controller@40102000 {
    compatible = "renesas,r9a06g032-nandc", "renesas,rzn1-nandc";
    reg = &lt;0x40102000 0x2000&gt;;
    interrupts = &lt;GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH&gt;;
    clocks = &lt;&amp;sysctrl R9A06G032_HCLK_NAND&gt;, &lt;&amp;sysctrl R9A06G032_CLK_NAND&gt;;
    clock-names = "hclk", "eclk";
    power-domains = &lt;&amp;sysctrl&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Rockchip SoCs NAND FLASH Controller (NFC)

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

> Device-tree binding reference for Rockchip SoCs NAND FLASH Controller (NFC).

<!-- 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;rockchip&#44;nand&#45;controller&#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>

<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>nand&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Heiko Stuebner &#60;heiko&#64;sntech&#46;de&#62;&#34;</code></span>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;rockchip&#44;px30&#45;nfc&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;rockchip&#44;rk2928&#45;nfc&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> **Exact value (<code>const</code>):** <span id="dt-710bc579d54b8b6b1f6c"><code>&#34;rockchip&#44;rv1108&#45;nfc&#34;</code></span>

<a id="dt-61219c29f99de6d21702"></a>

**Rule 4**

> <a id="dt-a1b1c435b08c85ff96c7"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4758c8f9c99bfa28b10c"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-12b3e48e4010cb944698"></a> <span id="dt-e46f645e6715baa60581"><code>&#34;rockchip&#44;rk3036&#45;nfc&#34;</code></span>, <span id="dt-f0654d9dc65c16ce7d6a"><code>&#34;rockchip&#44;rk3128&#45;nfc&#34;</code></span>
>
> <a id="dt-c99d921c49bf15e79633"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-9e0f2ef968dd632f09b7"><code>&#34;rockchip&#44;rk2928&#45;nfc&#34;</code></span>

<a id="dt-6932ba24e194ea67730d"></a>

**Rule 5**

> <a id="dt-196210d7e8a5e94e1226"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4b7c967de45ba4ead27f"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-3f49949a764b6257a77a"><code>&#34;rockchip&#44;rk3308&#45;nfc&#34;</code></span>
>
> <a id="dt-caf6ce7d7f34e1e8d173"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-4a97b7e5e83d59103118"><code>&#34;rockchip&#44;rv1108&#45;nfc&#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-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-4e9a371963ac013ad39d"></a>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-1f26a8d0aa315cbb9547"><code>1</code></span>

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">Bus Clock</p>
> </div>

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

**Item 2**

> <div id="dt-6b79aebfd2287d4aeab8">
> <p style="white-space: pre-wrap">Module Clock</p>
> </div>

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-dab867b03596a88fc725"><code>1</code></span>

<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;ahb&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;nfc&#34;</code></span>

<a id="dt-12d2eb74181a2f7523ba"></a>

### <code>assigned&#45;clocks</code> — not listed as required here

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

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

### <code>assigned&#45;clock&#45;rates</code> — not listed as required here

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

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

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

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

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

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

### <code>&#94;nand&#64;&#91;0&#45;7&#93;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7e132ef8714d0ef959ab">[<code>raw&#45;nand&#45;chip&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/raw-nand-chip.md#dt-root>)</span>

<a id="dt-79f79c377c9b68422e41"></a>

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

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

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-13abec96374eea0eccef"><code>7</code></span>

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

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

**Exact value (<code>const</code>):** <span id="dt-0e74dc58c13762b55e36"><code>&#34;hw&#34;</code></span>

<a id="dt-44d4b7f369dd06ae4a15"></a>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-e954ce33de909bc2e11b"></a> <span id="dt-bec9cf118f8d9d4ecf72"><code>16</code></span>, <span id="dt-33639a2ee0e47e551349"><code>24</code></span>, <span id="dt-af8938350283ed03d1ce"><code>40</code></span>, <span id="dt-fef931c30258b4e4431c"><code>60</code></span>, <span id="dt-3ab01a65b41557e11ea1"><code>70</code></span>

<div id="dt-853e9d6b9a780a11fd2a">
<pre><code>The ECC configurations that can be supported are as follows.
  NFC v600 ECC 16, 24, 40, 60
    RK2928, RK3066, RK3188</code></pre>
<pre><code>  NFC v622 ECC 16, 24, 40, 60
    RK3036, RK3128</code></pre>
<pre><code>  NFC v800 ECC 16
    RK3308, RV1108</code></pre>
<pre><code>  NFC v900 ECC 16, 40, 60, 70
    RK3326, PX30</code></pre>
</div>

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

**<code>nand&#45;bus&#45;width</code> — not listed as required here**

**Exact value (<code>const</code>):** <span id="dt-32663b29b7a0b541d2a0"><code>8</code></span>

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

**<code>rockchip&#44;boot&#45;blks</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d0fb131bd5b57744b38c">[<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-0264caf7e1682bb47632"><code>2</code></span>

**Default value (<code>default</code>):** <span id="dt-461b50aafaa52e424906"><code>16</code></span>

<div id="dt-a293f08851c79f1281a9">
<p style="white-space: pre-wrap">The NFC driver need this information to select ECC algorithms supported by the boot ROM. Only used in combination with 'nand-is-boot-medium'.</p>
</div>

<a id="dt-3515f9954ccd93e7a344"></a>

**<code>rockchip&#44;boot&#45;ecc&#45;strength</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-80514d3e3178a93504e2"></a> <span id="dt-6ebd6f90d72c7f21acfd"><code>16</code></span>, <span id="dt-107b6eb55c1fca2320f1"><code>24</code></span>, <span id="dt-77ba986e11a95e73d4b8"><code>40</code></span>, <span id="dt-4791fafc50e41e0f32c4"><code>60</code></span>, <span id="dt-f6cc4186d91a41316bb5"><code>70</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ae9a8fd383013714ceb7">[<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-89d62cc1b0cad0774d56">
<pre><code>If specified it indicates that a different BCH/ECC setting is
supported by the boot ROM.
  NFC v600 ECC 16, 24
    RK2928, RK3066, RK3188</code></pre>
<pre><code>  NFC v622 ECC 16, 24, 40, 60
    RK3036, RK3128</code></pre>
<pre><code>  NFC v800 ECC 16
    RK3308, RV1108</code></pre>
<pre><code>  NFC v900 ECC 16, 70
    RK3326, PX30</code></pre>
<p style="white-space: pre-wrap">Only used in combination with 'nand-is-boot-medium'.</p>
</div>

<a id="dt-787c625b0fca14cff0cc"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</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>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/clock/rk3308-cru.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
nfc: nand-controller@ff4b0000 {
  compatible = "rockchip,rk3308-nfc",
               "rockchip,rv1108-nfc";
  reg = &lt;0xff4b0000 0x4000&gt;;
  interrupts = &lt;GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH&gt;;
  clocks = &lt;&amp;cru HCLK_NANDC&gt;, &lt;&amp;cru SCLK_NANDC&gt;;
  clock-names = "ahb", "nfc";
  assigned-clocks = &lt;&amp;clks SCLK_NANDC&gt;;
  assigned-clock-rates = &lt;150000000&gt;;

  pinctrl-0 = &lt;&amp;flash_ale &amp;flash_bus8 &amp;flash_cle &amp;flash_csn0
               &amp;flash_rdn &amp;flash_rdy &amp;flash_wrn&gt;;
  pinctrl-names = "default";

  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  nand@0 {
    reg = &lt;0&gt;;
    label = "rk-nand";
    nand-bus-width = &lt;8&gt;;
    nand-ecc-mode = "hw";
    nand-ecc-step-size = &lt;1024&gt;;
    nand-ecc-strength = &lt;16&gt;;
    nand-is-boot-medium;
    rockchip,boot-blks = &lt;8&gt;;
    rockchip,boot-ecc-strength = &lt;16&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Samsung S5Pv210 SoC OneNAND Controller

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

> Device-tree binding reference for Samsung S5Pv210 SoC OneNAND Controller.

<!-- 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;samsung&#44;s5pv210&#45;onenand&#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;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> — required here

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;samsung&#44;s5pv210&#45;onenand&#34;</code></span>

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

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">Control registers</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">OneNAND interface nCE[0]</p>
> </div>

<a id="dt-80d36cb915ffeff5364a"></a>

**Item 3**

> <div id="dt-5151e97c331b693ee0dd">
> <p style="white-space: pre-wrap">OneNAND interface nCE[1]</p>
> </div>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><code>2</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;bus&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;onenand&#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>

**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;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;interrupts&#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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/clock/s5pv210.h&gt;

nand-controller@b0600000 {
    compatible = "samsung,s5pv210-onenand";
    reg = &lt;0xb0600000 0x2000&gt;,
          &lt;0xb0000000 0x20000&gt;,
          &lt;0xb0040000 0x20000&gt;;
    clocks = &lt;&amp;clocks CLK_NANDXL&gt;, &lt;&amp;clocks DOUT_FLASH&gt;;
    clock-names = "bus", "onenand";
    interrupt-parent = &lt;&amp;vic1&gt;;
    interrupts = &lt;31&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    nand@0 {
        reg = &lt;0&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-only OR BSD-2-Clause</span></p>

</details>

---

# SPI-NAND flash

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

> Device-tree binding reference for SPI-NAND flash.

<!-- 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;spi&#45;nand&#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>nand&#45;chip&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-chip.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8549616abc3b04702c51">[<code>&#47;schemas&#47;spi&#47;spi&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-peripheral-props.md#dt-root>)</span>

<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;spi&#45;nand&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Encode the chip-select line on the SPI bus</p>
</div>

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

**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>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not 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>

---

# STMicroelectronics SPEAr600 Serial Memory Interface (SMI) Controller

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

> Device-tree binding reference for STMicroelectronics SPEAr600 Serial Memory Interface (SMI) Controller.

<!-- SPDX-License-Identifier: (GPL-2.0 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;st&#44;spear600&#45;smi&#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;Richard Weinberger &#60;richard&#64;nod&#46;at&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The SPEAr600 Serial Memory Interface (SMI) is a dedicated serial flash controller supporting up to four chip selects for serial NOR flashes connected in parallel. The controller is memory-mapped and the attached flash devices appear in the CPU address space.The driver (drivers/mtd/devices/spear_smi.c) probes the attached flashes dynamically by sending commands (e.g., RDID) to each bank. Flash sub nodes describe the memory range and optional per-flash properties.</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;st&#44;spear600&#45;smi&#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-c2de09e7f7fd211b679d"></a>

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

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

<a id="dt-2efe70314a961a652abe"></a>

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

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

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

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

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-39086cdf9eefb7e0083d">[<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-06feee67d6cb471eebad">
<p style="white-space: pre-wrap">Functional clock rate of the SMI controller in Hz.</p>
</div>

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

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

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

### <code>&#94;flash&#64;&#46;&#42;&#36;</code> — name matches this regular expression

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

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

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

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

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

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

<a id="dt-2d2852d3e98435950ccb"></a>

**<code>st&#44;smi&#45;fast&#45;mode</code> — not listed as required here**

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

<div id="dt-ec836b2cbd67348ab554">
<p style="white-space: pre-wrap">Indicates that the attached flash supports fast read mode.</p>
</div>

<a id="dt-da8fbbf678e50756ce3d"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

**Required in this object (<code>required</code>):** <a id="dt-7426dc9872501b28cf6d"></a> <span id="dt-e80a67b6688bd0eadc3b"><code>&#34;reg&#34;</code></span>

**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;clock&#45;rate&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;size&#45;cells&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">flash@fc000000 {
    compatible = "st,spear600-smi";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    reg = &lt;0xfc000000 0x1000&gt;;
    interrupt-parent = &lt;&amp;vic1&gt;;
    interrupts = &lt;12&gt;;
    clock-rate = &lt;50000000&gt;;  /* 50 MHz */

    flash@fc000000 {
        reg = &lt;0xfc000000 0x1000&gt;;
        st,smi-fast-mode;
    };
};
</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 OR BSD-2-Clause)</span></p>

</details>

---

# STMicroelectronics SPI FSM Serial NOR Flash Controller

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings_

> Device-tree binding reference for STMicroelectronics SPI FSM Serial NOR Flash Controller.

<!-- SPDX-License-Identifier: (GPL-2.0 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;st&#44;spi&#45;fsm&#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;Angus Clark &#60;angus&#46;clark&#64;st&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The STMicroelectronics Fast Sequence Mode (FSM) controller is a dedicated hardware accelerator integrated in older STiH4xx/STiDxxx set-top box SoCs (such as STiH407, STiH416, STiD127). It connects directly to a single external serial flash device used as the primary boot device. The FSM executes hard-coded or configurable instruction sequences in hardware, providing low-latency reads suitable for execute-in-place (XIP) boot and high read bandwidth.</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;st&#44;spi&#45;fsm&#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-a25ee402afa562132bc5"></a>

### <code>reg&#45;names</code> — required here

**Exact value (<code>const</code>):** <span id="dt-817e79faee2ad624aa2b"><code>&#34;spi&#45;fsm&#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-fc1b26dbee22a090a713"></a>

### <code>st&#44;syscfg</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-2f147a9922d3407d8805">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2533fa46618221e83225>)</span>

<div id="dt-cd46a6ff2c24fa7b007e">
<p style="white-space: pre-wrap">Phandle to the system configuration registers used for boot-device selection.</p>
</div>

<a id="dt-a8d6a0f8a33f1d620c5e"></a>

### <code>st&#44;boot&#45;device&#45;reg</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7ab4feadbcb5329f7867">[<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-e260afeb11bc74ff1d70">
<p style="white-space: pre-wrap">Offset of the boot-device register within the st,syscfg node.</p>
</div>

<a id="dt-16f8d787d8fc8aebbdfd"></a>

### <code>st&#44;boot&#45;device&#45;spi</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-2df2fe181659e92466a1">[<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-2d250bf333454c53dbc7">
<p style="white-space: pre-wrap">Expected boot-device value when booting from this SPI controller.</p>
</div>

**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;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;interrupts&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;pinctrl&#45;0&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
spifsm@fe902000 {
    compatible = "st,spi-fsm";
    reg = &lt;0xfe902000 0x1000&gt;;
    reg-names = "spi-fsm";
    interrupts = &lt;GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH&gt;;
    pinctrl-0 = &lt;&amp;pinctrl_fsm&gt;;
    st,syscfg = &lt;&amp;syscfg_rear&gt;;
    st,boot-device-reg = &lt;0x958&gt;;
    st,boot-device-spi = &lt;0x1a&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 OR BSD-2-Clause)</span></p>

</details>

---

# STMicroelectronics Flexible Memory Controller 2 (FMC2)

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings_

> Device-tree binding reference for STMicroelectronics Flexible Memory Controller 2 (FMC2).

<!-- 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;st&#44;stm32&#45;fmc2&#45;nand&#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;Christophe Kerello &#60;christophe&#46;kerello&#64;foss&#46;st&#46;com&#62;&#34;</code></span>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;st&#44;stm32mp15&#45;fmc2&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;st&#44;stm32mp1&#45;fmc2&#45;nfc&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;st&#44;stm32mp25&#45;fmc2&#45;nfc&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

**Minimum number of items (<code>minItems</code>):** <span id="dt-4b3e7791b11b96c3db87"><code>6</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>12</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-5bb8576c9296c5644e7f"></a>

### <code>dmas</code> — not listed as required here

<a id="dt-6b8b17969f3f8620256b"></a>

#### Array item rules (<code>items</code>)

<a id="dt-dd96a40b7042b311da6b"></a>

**Item 1**

> <div id="dt-46fea02e2850ca221aa0">
> <p style="white-space: pre-wrap">tx DMA channel</p>
> </div>

<a id="dt-51dd129ab41c33f151af"></a>

**Item 2**

> <div id="dt-1e039b421ae08d0b7b70">
> <p style="white-space: pre-wrap">rx DMA channel</p>
> </div>

<a id="dt-8776319d57222f2df729"></a>

**Item 3**

> <div id="dt-e644da6e49b8f1b9bf79">
> <p style="white-space: pre-wrap">ecc DMA channel</p>
> </div>

<a id="dt-5eca194f6565466d8a21"></a>

### <code>dma&#45;names</code> — not listed as required here

<a id="dt-5bb61e4f47c2d9203ed3"></a>

#### Array item rules (<code>items</code>)

<a id="dt-c93bb6563561f3ea6d51"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-eb45b3d6c9e2700a17b5"><code>&#34;tx&#34;</code></span>

<a id="dt-5368efb369d036c8a734"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0d0500dc5105c48e5e72"><code>&#34;rx&#34;</code></span>

<a id="dt-0e2aefacbafcf9a0980e"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-3f514d275e33beb6e5ff"><code>&#34;ecc&#34;</code></span>

<a id="dt-e92215bd3c2f5373b164"></a>

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-ddf156f90380cfdd3d9f"></a>

### <code>&#94;nand&#64;&#91;a&#45;f0&#45;9&#93;&#36;</code> — name matches this regular expression

**Value type (<code>type</code>):** <span id="dt-fa5721e50bad7fa8a9c4"><code>&#34;object&#34;</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4047c0ee7509401a701c">[<code>raw&#45;nand&#45;chip&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/raw-nand-chip.md#dt-root>)</span>

<a id="dt-dc04aa805ce3dc88ef4a"></a>

#### Properties and child nodes (<code>properties</code>)

<a id="dt-fd08aaf4d8ef1faa555b"></a>

**<code>nand&#45;ecc&#45;step&#45;size</code> — not listed as required here**

**Exact value (<code>const</code>):** <span id="dt-f84725cab1596725434f"><code>512</code></span>

<a id="dt-f79c485550398ecfb820"></a>

**<code>nand&#45;ecc&#45;strength</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-bebffea65472968a8e27"></a> <span id="dt-b19ab79d98c0506978d1"><code>1</code></span>, <span id="dt-595b660e021c90b8aef9"><code>4</code></span>, <span id="dt-311ef8a00c71bdc810dd"><code>8</code></span>

<a id="dt-5957228d95e49801719f"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<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>nand&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9b74ad9882646c4a5116"><code>&#34;st&#44;stm32mp15&#45;fmc2&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-18ed1f4bd380878274d8"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <a id="dt-57a47f31b9538e0be5c1"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-bc319cbd3310a768e6d0"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-9da9173723afbadba2bd">
> > > <p style="white-space: pre-wrap">Registers</p>
> > > </div>
> >
> > <a id="dt-4b59d984630720aedcbf"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-b910d735710af4cc497d">
> > > <p style="white-space: pre-wrap">Chip select 0 data</p>
> > > </div>
> >
> > <a id="dt-11c7ac39224ea8e1770e"></a>
> >
> > **Item 3**
> >
> > > <div id="dt-46a264600f818488b067">
> > > <p style="white-space: pre-wrap">Chip select 0 command</p>
> > > </div>
> >
> > <a id="dt-17b26808014fb6f912ef"></a>
> >
> > **Item 4**
> >
> > > <div id="dt-3dc90ae456308710b0ef">
> > > <p style="white-space: pre-wrap">Chip select 0 address space</p>
> > > </div>
> >
> > <a id="dt-4bdcc8095fe89bd73765"></a>
> >
> > **Item 5**
> >
> > > <div id="dt-eb4f054d600539cedc58">
> > > <p style="white-space: pre-wrap">Chip select 1 data</p>
> > > </div>
> >
> > <a id="dt-4be9aaf6b5c09f1f93f1"></a>
> >
> > **Item 6**
> >
> > > <div id="dt-4d837525a82b0885b9c8">
> > > <p style="white-space: pre-wrap">Chip select 1 command</p>
> > > </div>
> >
> > <a id="dt-59a86b5bb2eac144b9e7"></a>
> >
> > **Item 7**
> >
> > > <div id="dt-735f81f1268f43ee6171">
> > > <p style="white-space: pre-wrap">Chip select 1 address space</p>
> > > </div>
> >
> > <a id="dt-cc2edf6d98aafaff5f44"></a>
> >
> > **<code>clocks</code> — required here**
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-3aa42810e911ab2a41de"><code>1</code></span>
> >
> > <a id="dt-205788d1fea947f3ac3d"></a>
> >
> > **<code>resets</code> — not listed as required here**
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-40c1f417f6c3fc3d7f32"><code>1</code></span>
> >
> > **Required in this object (<code>required</code>):** <a id="dt-ee96a18d4bb2a9d39bd9"></a> <span id="dt-96ee7f71687cd234a9f8"><code>&#34;clocks&#34;</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8cd5c6ac7cc13c2d9acf"><code>&#34;st&#44;stm32mp1&#45;fmc2&#45;nfc&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-b5c94fac3a56b4f9f0e9"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <a id="dt-1f6db9cd4c0d15216b3c"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-7661eb8e08606c71b97d"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-452c29ce52e0d173d461">
> > > <p style="white-space: pre-wrap">Chip select 0 data</p>
> > > </div>
> >
> > <a id="dt-70713b5473aba6a1d672"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-5b0236cdf96833245e75">
> > > <p style="white-space: pre-wrap">Chip select 0 command</p>
> > > </div>
> >
> > <a id="dt-0ee3d2cbc2b02aa47e6a"></a>
> >
> > **Item 3**
> >
> > > <div id="dt-98de6625738559c00d02">
> > > <p style="white-space: pre-wrap">Chip select 0 address space</p>
> > > </div>
> >
> > <a id="dt-7219b2842e8a3a090626"></a>
> >
> > **Item 4**
> >
> > > <div id="dt-66d9e5b59bc4b1273d8e">
> > > <p style="white-space: pre-wrap">Chip select 1 data</p>
> > > </div>
> >
> > <a id="dt-008c45c893335bf0e1a4"></a>
> >
> > **Item 5**
> >
> > > <div id="dt-fcf2306e46c9ed2e023a">
> > > <p style="white-space: pre-wrap">Chip select 1 command</p>
> > > </div>
> >
> > <a id="dt-71707fc57bae84c423ae"></a>
> >
> > **Item 6**
> >
> > > <div id="dt-36ed67303fe53a484ed4">
> > > <p style="white-space: pre-wrap">Chip select 1 address space</p>
> > > </div>

<a id="dt-e198e1d898e7c60d5fed"></a>

### Rule 4

> <a id="dt-5d622c5a2672c1e49b35"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-8d84f7bba76b4e26221f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-11dc65c5cf7abc0317bb"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-3de4a4db25c09109abf4"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-5c56c46a4e287cf52ece"><code>&#34;st&#44;stm32mp25&#45;fmc2&#45;nfc&#34;</code></span>
>
> <a id="dt-889ceb40bc531bf0dc1d"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-7cd597a6bb6b91730c25"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bf3c32dc20c3c8a6e8c5"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <a id="dt-6e243d35b1ada3999fb9"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-0f9789d43d83747e07a2"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-0e01dcc6a4cae34a48bc">
> > > <p style="white-space: pre-wrap">Chip select 0 data</p>
> > > </div>
> >
> > <a id="dt-10ff858160bb91d301f4"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-e07ebdf6ce70fff1f003">
> > > <p style="white-space: pre-wrap">Chip select 0 command</p>
> > > </div>
> >
> > <a id="dt-0d42a51b4b31905d64a7"></a>
> >
> > **Item 3**
> >
> > > <div id="dt-146bf4e0991493400492">
> > > <p style="white-space: pre-wrap">Chip select 0 address space</p>
> > > </div>
> >
> > <a id="dt-19668fe79f08e84f7c13"></a>
> >
> > **Item 4**
> >
> > > <div id="dt-0afd4d59993e0c6a9b50">
> > > <p style="white-space: pre-wrap">Chip select 1 data</p>
> > > </div>
> >
> > <a id="dt-846f57a079dd733888f2"></a>
> >
> > **Item 5**
> >
> > > <div id="dt-8f76808551304f0bd3df">
> > > <p style="white-space: pre-wrap">Chip select 1 command</p>
> > > </div>
> >
> > <a id="dt-eba7590554841060aa24"></a>
> >
> > **Item 6**
> >
> > > <div id="dt-53b2315aa3536c6cd28b">
> > > <p style="white-space: pre-wrap">Chip select 1 address space</p>
> > > </div>
> >
> > <a id="dt-a83da83d08feb457db62"></a>
> >
> > **Item 7**
> >
> > > <div id="dt-f1449b4db54a7b0c1d70">
> > > <p style="white-space: pre-wrap">Chip select 2 data</p>
> > > </div>
> >
> > <a id="dt-267e74e42ffefa06dfd6"></a>
> >
> > **Item 8**
> >
> > > <div id="dt-dd02be54b3d26268dfcd">
> > > <p style="white-space: pre-wrap">Chip select 2 command</p>
> > > </div>
> >
> > <a id="dt-252bc96178f9f49bf7d0"></a>
> >
> > **Item 9**
> >
> > > <div id="dt-bfd516166e6786d41796">
> > > <p style="white-space: pre-wrap">Chip select 2 address space</p>
> > > </div>
> >
> > <a id="dt-e944b5612e265bb500dc"></a>
> >
> > **Item 10**
> >
> > > <div id="dt-8b6fe43e5e3ecd7a88f3">
> > > <p style="white-space: pre-wrap">Chip select 3 data</p>
> > > </div>
> >
> > <a id="dt-6c32ce6f3d88be5b7abf"></a>
> >
> > **Item 11**
> >
> > > <div id="dt-a1b0aa4b7387382b601b">
> > > <p style="white-space: pre-wrap">Chip select 3 command</p>
> > > </div>
> >
> > <a id="dt-3e21747072081d0792ed"></a>
> >
> > **Item 12**
> >
> > > <div id="dt-4ee35204fe1e8f6a8aef">
> > > <p style="white-space: pre-wrap">Chip select 3 address space</p>
> > > </div>

**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>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/clock/stm32mp1-clks.h&gt;
#include &lt;dt-bindings/reset/stm32mp1-resets.h&gt;

nand-controller@58002000 {
    compatible = "st,stm32mp15-fmc2";
    reg = &lt;0x58002000 0x1000&gt;,
          &lt;0x80000000 0x1000&gt;,
          &lt;0x88010000 0x1000&gt;,
          &lt;0x88020000 0x1000&gt;,
          &lt;0x81000000 0x1000&gt;,
          &lt;0x89010000 0x1000&gt;,
          &lt;0x89020000 0x1000&gt;;
    interrupts = &lt;GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH&gt;;
    dmas = &lt;&amp;mdma1 20 0x2 0x12000a02 0x0 0x0&gt;,
           &lt;&amp;mdma1 20 0x2 0x12000a08 0x0 0x0&gt;,
           &lt;&amp;mdma1 21 0x2 0x12000a0a 0x0 0x0&gt;;
    dma-names = "tx", "rx", "ecc";
    clocks = &lt;&amp;rcc FMC_K&gt;;
    resets = &lt;&amp;rcc FMC_R&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    nand@0 {
        reg = &lt;0&gt;;
        nand-on-flash-bbt;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;1&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Technologic Systems NAND controller

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings_

> Device-tree binding reference for Technologic Systems NAND controller.

<!-- 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;technologic&#44;nand&#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;Nikita Shubin &#60;nikita&#46;shubin&#64;maquefel&#46;me&#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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

<a id="dt-fe13e24e5c9612880f47"></a>

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;technologic&#44;ts7200&#45;nand&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;technologic&#44;ts7300&#45;nand&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;technologic&#44;ts7260&#45;nand&#34;</code></span>, <span id="dt-bdca084879537277097b"><code>&#34;technologic&#44;ts7250&#45;nand&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;technologic&#44;ts7200&#45;nand&#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>

**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>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">nand-controller@60000000 {
    compatible = "technologic,ts7200-nand";
    reg = &lt;0x60000000 0x8000000&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    nand@0 {
        reg = &lt;0&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-only OR BSD-2-Clause</span></p>

</details>

---

# HyperBus Memory Controller (HBMC) on TI's K3 family of SoCs

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings_

> Device-tree binding reference for HyperBus Memory Controller (HBMC) on TI's K3 family of SoCs.

<!-- 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;ti&#44;am654&#45;hbmc&#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;Vignesh Raghavendra &#60;vigneshr&#64;ti&#46;com&#62;&#34;</code></span>

<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;ti&#44;am654&#45;hbmc&#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>2</code></span>

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-2efe70314a961a652abe"></a>

### <code>&#35;address&#45;cells</code> — required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-ee0e5bf71366d312f1dc"></a>

### <code>&#35;size&#45;cells</code> — required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-1e6b10cf5f67a6a268f5"></a>

### <code>ranges</code> — required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-9ae71978f004bcd28791"></a>

### <code>mux&#45;controls</code> — not listed as required here

<div id="dt-31599b5d414641e76da0">
<p style="white-space: pre-wrap">MMIO mux controller node to select b/w OSPI and HBMC.</p>
</div>

<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-e92215bd3c2f5373b164"></a>

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-e84c9d85fd729b7a1fd0"></a>

### <code>&#94;flash&#64;&#91;0&#45;1&#93;&#44;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

**Value type (<code>type</code>):** <span id="dt-cde8ee67dd928690f3db"><code>&#34;object&#34;</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-07c3c320cf8c1e196628">[<code>mtd&#45;physmap&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/mtd-physmap.md#dt-root>)</span>

<a id="dt-03d05ce91f53aed1ae87"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</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;ranges&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clocks&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;&#35;size&#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">bus {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    hbmc: memory-controller@47034000 {
        compatible = "ti,am654-hbmc";
        reg = &lt;0x0 0x47034000 0x0 0x100&gt;,
              &lt;0x5 0x00000000 0x1 0x0000000&gt;;
        ranges = &lt;0x0 0x0 0x5 0x00000000 0x4000000&gt;, /* CS0 - 64MB */
                 &lt;0x1 0x0 0x5 0x04000000 0x4000000&gt;; /* CS1 - 64MB */
        clocks = &lt;&amp;k3_clks 102 0&gt;;
        #address-cells = &lt;2&gt;;
        #size-cells = &lt;1&gt;;
        power-domains = &lt;&amp;k3_pds 55&gt;;
        mux-controls = &lt;&amp;hbmc_mux 0&gt;;

        flash@0,0 {
            compatible = "cypress,hyperflash", "cfi-flash";
            reg = &lt;0x0 0x0 0x4000000&gt;;
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;1&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-only OR BSD-2-Clause)</span></p>

</details>

---

# TI DaVinci NAND controller

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings_

> Device-tree binding reference for TI DaVinci NAND controller.

<!-- 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;ti&#44;davinci&#45;nand&#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;Marcus Folkesson &#60;marcus&#46;folkesson&#64;gmail&#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>nand&#45;controller&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/nand-controller.md#dt-root>)</span>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;ti&#44;davinci&#45;nand&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;keystone&#45;nand&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

<a id="dt-b6190d107f3246c9804f"></a>

#### Array item rules (<code>items</code>)

<a id="dt-c90b61e446f8f3080e3c"></a>

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">Access window.</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">AEMIF control registers.</p>
> </div>

<a id="dt-1661271ef1d2a38bb2d4"></a>

### <code>partitions</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-8b4cb8a86658c8263a1c"><code>&#34;object&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-1718eeb40e9fa4fbc445"></a> <span id="dt-2a07ba893e51fa8e2d4a"><code>&#34;compatible&#34;</code></span>

<a id="dt-44ff4f04898d03eacfbb"></a>

### <code>ti&#44;davinci&#45;chipselect</code> — required here

<div id="dt-191f54ec268461798417">
<p style="white-space: pre-wrap">Number of chipselect. Indicate on the davinci_nand driver which chipselect is used for accessing the nand.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7606e9f1260f8ffc038b">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-29133721c7d0d36f2bce"></a> <span id="dt-42c4ca64d6d13c593584"><code>0</code></span>, <span id="dt-de72dbfd70dedc2fff7e"><code>1</code></span>, <span id="dt-24c6100cf7dfb6425f16"><code>2</code></span>, <span id="dt-6f62841ae30554eae030"><code>3</code></span>

<a id="dt-53e443c090cba7cc5280"></a>

### <code>ti&#44;davinci&#45;mask&#45;ale</code> — not listed as required here

<div id="dt-bcb68cb1ce1b6173cd77">
<p style="white-space: pre-wrap">Mask for ALE. Needed for executing address phase. These offset will be added to the base address for the chip select space the NAND Flash device is connected to.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-967347f7671c33feb110">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Default value (<code>default</code>):** <span id="dt-c8e2294b03ae7ec0b4cc"><code>8</code></span>

<a id="dt-f76a04de01ea5e5553ca"></a>

### <code>ti&#44;davinci&#45;mask&#45;cle</code> — not listed as required here

<div id="dt-9ab8b2bc7d98500e310f">
<p style="white-space: pre-wrap">Mask for CLE. Needed for executing command phase. These offset will be added to the base address for the chip select space the NAND Flash device is connected to.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c4681a78c5d2783774fa">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Default value (<code>default</code>):** <span id="dt-c26b86b72c886a34056c"><code>16</code></span>

<a id="dt-577549744d435dff56f9"></a>

### <code>ti&#44;davinci&#45;mask&#45;chipsel</code> — not listed as required here

<div id="dt-491f829b3b673d284be8">
<p style="white-space: pre-wrap">Mask for chipselect address. Needed to mask addresses for given chipselect.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-df86c78e90072857867b">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Default value (<code>default</code>):** <span id="dt-6d5f4ba8c414e8dc90b9"><code>0</code></span>

<a id="dt-5a20e0ceb4ab20ae4ede"></a>

### <code>ti&#44;davinci&#45;ecc&#45;bits</code> — not listed as required here

<div id="dt-b22c690eb8270ac6f1b8">
<p style="white-space: pre-wrap">Used ECC bits.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-5f777520292081325393"></a> <span id="dt-004eda24419ac6830ed2"><code>1</code></span>, <span id="dt-e57d6ecae8eedaa8f88e"><code>4</code></span>

<a id="dt-9a8272bec3774dc63cb9"></a>

### <code>ti&#44;davinci&#45;ecc&#45;mode</code> — not listed as required here

<div id="dt-789682edd60066001e19">
<p style="white-space: pre-wrap">Operation mode of the NAND ECC mode.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-faaa3c76d941f66f0fe5">[<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-cafc045b4a251c5bda15"></a> <span id="dt-37417c1949a7549af7a5"><code>&#34;none&#34;</code></span>, <span id="dt-61b600ba95653169103a"><code>&#34;soft&#34;</code></span>, <span id="dt-e3a10205ddc13dc1843f"><code>&#34;hw&#34;</code></span>, <span id="dt-be1d03001dbb5ee1fda7"><code>&#34;on&#45;die&#34;</code></span>

**Deprecated (<code>deprecated</code>):** <span id="dt-dd4128694f5d1f5cebe8"><code>true</code></span>

<a id="dt-27bf378dc1184073fd92"></a>

### <code>ti&#44;davinci&#45;nand&#45;buswidth</code> — not listed as required here

<div id="dt-a37b1f38965d6fbfc56a">
<p style="white-space: pre-wrap">Bus width to the NAND chip.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a8ef5a3cdcba60f09568">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-48665030ef2e16fdd4a2"></a> <span id="dt-135a655f0a435a9c71a0"><code>8</code></span>, <span id="dt-8ce13d11a379766877af"><code>16</code></span>

**Default value (<code>default</code>):** <span id="dt-57e33e6324b32c8c0ea7"><code>8</code></span>

**Deprecated (<code>deprecated</code>):** <span id="dt-1bf1f546e82f41ef93eb"><code>true</code></span>

<a id="dt-9229fded639f543ee703"></a>

### <code>ti&#44;davinci&#45;nand&#45;use&#45;bbt</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-2a92030dc9236755cf2e"><code>&#34;boolean&#34;</code></span>

<div id="dt-dddc71123f34b63c065f">
<p style="white-space: pre-wrap">Use flash based bad block table support. OOB identifier is saved in OOB area.</p>
</div>

**Deprecated (<code>deprecated</code>):** <span id="dt-9b0ca92b08905df9e16b"><code>true</code></span>

**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;ti&#44;davinci&#45;chipselect&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">bus {
  #address-cells = &lt;2&gt;;
  #size-cells = &lt;1&gt;;

  nand-controller@2000000,0 {
    compatible = "ti,davinci-nand";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    reg = &lt;0 0x02000000 0x02000000&gt;,
          &lt;1 0x00000000 0x00008000&gt;;

    ti,davinci-chipselect = &lt;1&gt;;
    ti,davinci-mask-ale = &lt;0&gt;;
    ti,davinci-mask-cle = &lt;0&gt;;
    ti,davinci-mask-chipsel = &lt;0&gt;;

    ti,davinci-nand-buswidth = &lt;16&gt;;
    ti,davinci-ecc-mode = "hw";
    ti,davinci-ecc-bits = &lt;4&gt;;
    ti,davinci-nand-use-bbt;

    partitions {
      compatible = "fixed-partitions";
      #address-cells = &lt;1&gt;;
      #size-cells = &lt;1&gt;;

      partition@0 {
        label = "u-boot env";
        reg = &lt;0 0x020000&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Texas Instruments Error Location Module (ELM).

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings_

> Device-tree binding reference for Texas Instruments Error Location Module (ELM)..

<!-- 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;ti&#44;elm&#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;Roger Quadros &#60;rogerq&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">ELM module is used together with GPMC and NAND Flash to detect errors and the location of the error based on BCH algorithms so they can be corrected if possible.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;ti&#44;am3352&#45;elm&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;am64&#45;elm&#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-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-4e9a371963ac013ad39d"></a>

### <code>clocks</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><code>1</code></span>

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Functional clock.</p>
</div>

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — not listed as 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;fck&#34;</code></span>

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-74e4e6f1d3f2a860fdb9"><code>1</code></span>

<a id="dt-78eb8765da1b42beba07"></a>

### <code>ti&#44;hwmods</code> — not listed as required here

<div id="dt-6a8457e4523b4b4a94b2">
<p style="white-space: pre-wrap">Name of the HWMOD associated with ELM. This is for legacy platforms only.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-af8320999c5ca0330b0f">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;string</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2c695d502852c3a1e1b7>)</span>

**Deprecated (<code>deprecated</code>):** <span id="dt-95315e1f5259eeba881e"><code>true</code></span>

**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>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

<a id="dt-d33de94ac1d3652cd22a"></a>

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8997992e7087b5549d86"><code>&#34;ti&#44;am64&#45;elm&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-b0b2f2243ff9a854f151"></a> <span id="dt-4e9ead0e861b67997dec"><code>&#34;clocks&#34;</code></span>, <span id="dt-5652a54c9ddda3dcd6bf"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-f9c5361cd357fdaa7120"><code>&#34;power&#45;domains&#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">elm: ecc@0 {
    compatible = "ti,am3352-elm";
    reg = &lt;0x0 0x2000&gt;;
    interrupts = &lt;4&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-only OR BSD-2-Clause)</span></p>

</details>

---

# Texas Instruments GPMC NAND Flash controller.

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings_

> Device-tree binding reference for Texas Instruments GPMC NAND Flash controller..

<!-- 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;ti&#44;gpmc&#45;nand&#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;Tony Lindgren &#60;tony&#64;atomide&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Roger Quadros &#60;rogerq&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">GPMC NAND controller/Flash is represented as a child of the GPMC controller node.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

<a id="dt-cc3709943397035582d2"></a>

#### Array item rules (<code>items</code>)

<a id="dt-fec97e71a4359503ae6e"></a>

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;ti&#44;am64&#45;nand&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;ti&#44;omap2&#45;nand&#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-c2de09e7f7fd211b679d"></a>

### <code>interrupts</code> — not listed as required here

<a id="dt-985aed94c3a5de8e946a"></a>

#### Array item rules (<code>items</code>)

<a id="dt-bc458260662c6fe0b59f"></a>

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">Interrupt for fifoevent</p>
> </div>

<a id="dt-14fdf3275cf454d3c593"></a>

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">Interrupt for termcount</p>
> </div>

<a id="dt-2efe70314a961a652abe"></a>

### <code>&#35;address&#45;cells</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-ee0e5bf71366d312f1dc"></a>

### <code>&#35;size&#45;cells</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-ba8d444c26ec4e660a11"></a>

### <code>ti&#44;nand&#45;ecc&#45;opt</code> — required here

<div id="dt-d5b9dd82b95536b56c25">
<p style="white-space: pre-wrap">Desired ECC algorithm</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-73206b2f35f870593bfd">[<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-ba97ff5f8835a9d7cb01"></a> <span id="dt-e3e7afdab9a1ea5fcdd3"><code>&#34;sw&#34;</code></span>, <span id="dt-a0a0b65c69b632d543a0"><code>&#34;ham1&#34;</code></span>, <span id="dt-cdf5c018ce4be8284633"><code>&#34;bch4&#34;</code></span>, <span id="dt-52509f2d830597d6f600"><code>&#34;bch8&#34;</code></span>, <span id="dt-df436dbbb67a8d15259f"><code>&#34;bch16&#34;</code></span>

<a id="dt-ad1da53f5b2d507d9474"></a>

### <code>ti&#44;nand&#45;xfer&#45;type</code> — not listed as required here

<div id="dt-5aae64f4656276a95332">
<p style="white-space: pre-wrap">Data transfer method between controller and chip.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e50dc38c6490cf886993">[<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-bb4c6dd802750b1ad316"></a> <span id="dt-abeeae4ddc61ce9f0861"><code>&#34;prefetch&#45;polled&#34;</code></span>, <span id="dt-ee5a1cb82e6bef04104a"><code>&#34;polled&#34;</code></span>, <span id="dt-65cf61184278fca85046"><code>&#34;prefetch&#45;dma&#34;</code></span>, <span id="dt-17bfae80b0ed060b4be9"><code>&#34;prefetch&#45;irq&#34;</code></span>

**Default value (<code>default</code>):** <span id="dt-a1cbf6fbf0c53981d31e"><code>&#34;prefetch&#45;polled&#34;</code></span>

<a id="dt-fd392f11353f24578e25"></a>

### <code>ti&#44;elm&#45;id</code> — not listed as required here

<div id="dt-42c18564de672e6072ff">
<p style="white-space: pre-wrap">phandle to the ELM (Error Location Module).</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-acf31ed5ac8cd9bb7592">[<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-87fb29b6c4a6f243ceb5"></a>

### <code>nand&#45;bus&#45;width</code> — not listed as required here

<div id="dt-6f8fb3981f2fcb221925">
<p style="white-space: pre-wrap">Bus width to the NAND chip</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-25d6147d09c5aa1dea18">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-6734721de3a7e564d708"></a> <span id="dt-307577e82f7c96cbd537"><code>8</code></span>, <span id="dt-4e1479dd6acac7a5e8d6"><code>16</code></span>

**Default value (<code>default</code>):** <span id="dt-815f1b657af94fb5cc88"><code>8</code></span>

<a id="dt-073198d5a30667f60b51"></a>

### <code>rb&#45;gpios</code> — not listed as required here

<div id="dt-301648fb0dddefc0965b">
<p style="white-space: pre-wrap">GPIO connection to R/B signal from NAND chip</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-fb4cedd2cd225be485c8"><code>1</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>&#47;schemas&#47;memory&#45;controllers&#47;ti&#44;gpmc&#45;child&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-memory-controllers/ti-gpmc-child.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8549616abc3b04702c51">[<code>mtd&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/mtd.md#dt-root>)</span>

**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;ti&#44;nand&#45;ecc&#45;opt&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/gpio/gpio.h&gt;

gpmc: memory-controller@50000000 {
  compatible = "ti,am3352-gpmc";
  dmas = &lt;&amp;edma 52 0&gt;;
  dma-names = "rxtx";
  clocks = &lt;&amp;l3s_gclk&gt;;
  clock-names = "fck";
  reg = &lt;0x50000000 0x2000&gt;;
  interrupts = &lt;GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH&gt;;
  gpmc,num-cs = &lt;7&gt;;
  gpmc,num-waitpins = &lt;2&gt;;
  #address-cells = &lt;2&gt;;
  #size-cells = &lt;1&gt;;
  interrupt-controller;
  #interrupt-cells = &lt;2&gt;;
  gpio-controller;
  #gpio-cells = &lt;2&gt;;

  ranges = &lt;0 0 0x08000000 0x01000000&gt;;   /* CS0 space. Min partition = 16MB */
  nand@0,0 {
    compatible = "ti,omap2-nand";
    reg = &lt;0 0 4&gt;;          /* device IO registers */
    interrupt-parent = &lt;&amp;gpmc&gt;;
    interrupts = &lt;0 IRQ_TYPE_NONE&gt;, /* fifoevent */
                 &lt;1 IRQ_TYPE_NONE&gt;; /* termcount */
    ti,nand-xfer-type = "prefetch-dma";
    ti,nand-ecc-opt = "bch16";
    ti,elm-id = &lt;&amp;elm&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    /* NAND generic properties */
    nand-bus-width = &lt;8&gt;;
    rb-gpios = &lt;&amp;gpmc 0 GPIO_ACTIVE_HIGH&gt;;  /* gpmc_wait0 */

    /* GPMC properties*/
    gpmc,device-width = &lt;1&gt;;

    partition@0 {
      label = "NAND.SPL";
      reg = &lt;0x00000000 0x00040000&gt;;
    };
    partition@1 {
      label = "NAND.SPL.backup1";
      reg = &lt;0x00040000 0x00040000&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-only OR BSD-2-Clause)</span></p>

</details>

---

# OneNAND over Texas Instruments GPMC bus.

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings_

> Device-tree binding reference for OneNAND over Texas Instruments GPMC bus..

<!-- 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;ti&#44;gpmc&#45;onenand&#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;Tony Lindgren &#60;tony&#64;atomide&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Roger Quadros &#60;rogerq&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">GPMC connected OneNAND (found on OMAP boards) are represented as child nodes of the GPMC controller.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;onenand&#64;&#91;0&#45;9&#93;&#44;&#91;0&#44;9&#93;&#36;&#34;</code></span>

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;ti&#44;omap2&#45;onenand&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

<a id="dt-b6190d107f3246c9804f"></a>

#### Array item rules (<code>items</code>)

<a id="dt-c90b61e446f8f3080e3c"></a>

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">Chip Select number, register offset and size of
> OneNAND register window.</p>
> </div>

<a id="dt-2efe70314a961a652abe"></a>

### <code>&#35;address&#45;cells</code> — required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-ee0e5bf71366d312f1dc"></a>

### <code>&#35;size&#45;cells</code> — required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-23b32aaa0ca248999705"></a>

### <code>int&#45;gpios</code> — not listed as required here

<div id="dt-8b3bcd0b69793eb0d256">
<p style="white-space: pre-wrap">GPIO specifier for the INT pin.</p>
</div>

<a id="dt-e92215bd3c2f5373b164"></a>

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-573587cdb3ff39c5b5e0"></a>

### <code>&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1fbf03b5c1016547cb52">[<code>&#47;schemas&#47;mtd&#47;partitions&#47;partition&#46;yaml&#35;&#47;&#36;defs&#47;partition&#45;node</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-b43252f69d556623c54c>)</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>&#47;schemas&#47;memory&#45;controllers&#47;ti&#44;gpmc&#45;child&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-memory-controllers/ti-gpmc-child.md#dt-root>)</span>

**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;&#35;address&#45;cells&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;size&#45;cells&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">gpmc: memory-controller@6e000000 {
  compatible = "ti,omap3430-gpmc";
  reg = &lt;0x6e000000 0x02d0&gt;;
  interrupts = &lt;20&gt;;
  gpmc,num-cs = &lt;8&gt;;
  gpmc,num-waitpins = &lt;4&gt;;
  clocks = &lt;&amp;l3s_clkctrl&gt;;
  clock-names = "fck";
  #address-cells = &lt;2&gt;;
  #size-cells = &lt;1&gt;;

  ranges = &lt;0 0 0x01000000 0x01000000&gt;,   /* 16 MB for OneNAND */
           &lt;1 0 0x02000000 0x01000000&gt;;   /* 16 MB for smc91c96 */

  onenand@0,0 {
    compatible = "ti,omap2-onenand";
    reg = &lt;0 0 0x20000&gt;;    /* CS0, offset 0, IO size 128K */
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    partition@0 {
      label = "bootloader";
      reg = &lt;0x00000000 0x00100000&gt;;
    };

    partition@100000 {
      label = "config";
      reg = &lt;0x00100000 0x002c0000&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-only OR BSD-2-Clause)</span></p>

</details>
