# FSL/NXP Integrated Flash Controller

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

> Device-tree binding reference for FSL/NXP Integrated 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;memory&#45;controllers&#47;fsl&#47;fsl&#44;ifc&#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;Shawn Guo &#60;shawnguo&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">NXP's integrated flash controller (IFC) is an advanced version of the
enhanced local bus controller which includes similar programming and signal
interfaces with an extended feature set. The IFC provides access to multiple
external memory types, such as NAND flash (SLC and MLC), NOR flash, EPROM,
SRAM and other memories where address and data are shared on a bus.</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;memory&#45;controller&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#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;fsl&#44;ifc&#34;</code></span>

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

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

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

<div id="dt-56d7bd958afc920979c6">
<p style="white-space: pre-wrap">Should be either two or three.  The first cell is the chipselect
number, and the remaining cells are the offset into the chipselect.</p>
</div>

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

### <code>&#35;size&#45;cells</code> — not listed as 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>

<div id="dt-a7b8b6ab7c1846810ef9">
<p style="white-space: pre-wrap">Either one or two, depending on how large each chipselect can be.</p>
</div>

<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

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">IFC may have one or two interrupts.  If two interrupt specifiers are
present, the first is the "common" interrupt (CM_EVTER_STAT), and the
second is the NAND interrupt (NAND_EVTER_STAT).  If there is only one,
that interrupt reports both types of event.</p>
</div>

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

### <code>little&#45;endian</code> — not listed as required here

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

<div id="dt-9666ce8a1ec52638c9b5">
<p style="white-space: pre-wrap">If this property is absent, the big-endian mode will be in use as default
for registers.</p>
</div>

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

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

<div id="dt-e09d62fd28b1cb158f01">
<p style="white-space: pre-wrap">Each range corresponds to a single chipselect, and covers the entire
access window as configured.</p>
</div>

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

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

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

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

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

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-d0f54a89ca52fe730858"><code>&#34;fsl&#44;ifc&#45;nand&#34;</code></span>

<a id="dt-9785a7f34ed2941933fd"></a>

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

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

<a id="dt-09a2ffbf3f5d05dc16a8"></a>

**<code>&#35;address&#45;cells</code> — not listed as required here**

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

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

**<code>&#35;size&#45;cells</code> — not listed as required here**

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

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

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

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

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

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

**Deprecated (<code>deprecated</code>):** <span id="dt-39f3610abed8ae827a9f"><code>true</code></span>

**Required in this object (<code>required</code>):** <a id="dt-a9bdb05fa8af4f1a2438"></a> <span id="dt-1e2ba601eb93707999ef"><code>&#34;compatible&#34;</code></span>, <span id="dt-91e1d6a91a08fb5ffb5d"><code>&#34;reg&#34;</code></span>

<a id="dt-7b53d075db37dd382408"></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-c8c78f6aa40b4a5cc945"></a>

### <code>&#40;flash&#124;fpga&#124;board&#45;control&#124;cpld&#41;&#64;&#91;a&#45;f0&#45;9&#93;&#43;&#40;&#44;&#91;a&#45;f0&#45;9&#93;&#43;&#41;&#43;&#36;</code> — name matches this regular expression

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

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

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

<a id="dt-63082db3e733547dbd83"></a>

**Rule 1**

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5ee2596121eb815714eb">[<code>&#47;schemas&#47;board&#47;fsl&#44;fpga&#45;qixis&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-board/fsl-fpga-qixis.md#dt-root>)</span>

<a id="dt-24a52d44ba2164636c7e"></a>

**Rule 2**

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

<a id="dt-c53debe66e3bea9e02a1"></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-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;2&gt;;
    #size-cells = &lt;2&gt;;

    memory-controller@ffe1e000 {
        compatible = "fsl,ifc";
        #address-cells = &lt;2&gt;;
        #size-cells = &lt;1&gt;;
        reg = &lt;0x0 0xffe1e000 0 0x2000&gt;;
        interrupts = &lt;16 2 19 2&gt;;
        little-endian;

        /* NOR, NAND Flashes and CPLD on board */
        ranges = &lt;0x0 0x0 0x0 0xee000000 0x02000000&gt;,
                 &lt;0x1 0x0 0x0 0xffa00000 0x00010000&gt;,
                 &lt;0x3 0x0 0x0 0xffb00000 0x00020000&gt;;

        flash@0,0 {
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;1&gt;;
            compatible = "cfi-flash";
            reg = &lt;0x0 0x0 0x2000000&gt;;
            bank-width = &lt;2&gt;;
            device-width = &lt;1&gt;;

            partition@0 {
                /* 32MB for user data */
                reg = &lt;0x0 0x02000000&gt;;
                label = "NOR Data";
            };
        };
    };
};
</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>
