# NVMEM (Non Volatile Memory)

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

> Device-tree binding reference for NVMEM (Non Volatile Memory).

<!-- 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;nvmem&#47;nvmem&#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;Srinivas Kandagatla &#60;srinivas&#46;kandagatla&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This binding is intended to represent the location of hardware
configuration data stored in NVMEMs like eeprom, efuses and so on.</p>
<p style="white-space: pre-wrap">On a significant proportion of boards, the manufacturer has stored
some data on NVMEM, for the OS to be able to retrieve these
information and act upon it. Obviously, the OS has to know about
where to retrieve these data from, and where they are stored on the
storage device.</p>
</div>

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

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

<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-3e517a41ee334bf80ca6"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e0b4f433b38759124204">[<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-888756e946e88a297fcf">
<p style="white-space: pre-wrap">Mark the provider as read only.</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">GPIO to which the write-protect pin of the chip is connected. The write-protect GPIO is asserted, when it's driven high (logical '1') to block the write operation. It's deasserted, when it's driven low (logical '0') to allow writing.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-75b22d76838a8e8440a5"><code>1</code></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>

<div id="dt-f65bd309d804ec56f5a9">
<p style="white-space: pre-wrap">Alternative to the statically defined nvmem cells, this container may reference more advanced (dynamic) layout parsers.</p>
</div>

<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">#include &lt;dt-bindings/gpio/gpio.h&gt;

qfprom: eeprom@700000 {
    compatible = "qcom,msm8974-qfprom", "qcom,qfprom";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    reg = &lt;0x00700000 0x100000&gt;;

    wp-gpios = &lt;&amp;gpio1 3 GPIO_ACTIVE_HIGH&gt;;

    /* ... */

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

        /* Data cells */
        tsens_calibration: calib@404 {
            reg = &lt;0x404 0x10&gt;;
        };

        tsens_calibration_bckp: calib_bckp@504 {
            reg = &lt;0x504 0x11&gt;;
            bits = &lt;6 128&gt;;
        };

        pvs_version: pvs-version@6 {
            reg = &lt;0x6 0x2&gt;;
            bits = &lt;7 2&gt;;
        };

        speed_bin: speed-bin@c{
            reg = &lt;0xc 0x1&gt;;
            bits = &lt;2 3&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>
