# Broadcom's NVRAM

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

> Device-tree binding reference for Broadcom's NVRAM.

<!-- 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;nvmem&#47;brcm&#44;nvram&#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's NVRAM is a structure containing device specific environment
variables. It is used for storing device configuration, booting parameters
and calibration data.</p>
<p style="white-space: pre-wrap">NVRAM can be accessed on Broadcom BCM47xx MIPS and Northstar ARM Cortex-A9
devices usiong I/O mapped memory.</p>
<p style="white-space: pre-wrap">NVRAM variables can be defined as NVMEM device 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-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>nvmem&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-nvmem/nvmem.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

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

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

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

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

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

### <code>board&#95;id</code> — not listed as required here

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

<div id="dt-bfd282a2b837838af98d">
<p style="white-space: pre-wrap">Board identification name</p>
</div>

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

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

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

<div id="dt-b9800abecaf7e52a638a">
<p style="white-space: pre-wrap">First Ethernet interface's MAC address</p>
</div>

<a id="dt-22771b46e2f6208b95e4"></a>

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

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

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

<div id="dt-5b703ff7e37b557810a3">
<p style="white-space: pre-wrap">The first argument is a MAC address offset.</p>
</div>

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

<a id="dt-78b616d4f9fa03b743c6"></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-04f57f45c716e0bf5859"></a>

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

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

<div id="dt-84f65737b7e7e967d57a">
<p style="white-space: pre-wrap">Second Ethernet interface's MAC address</p>
</div>

<a id="dt-324f286879e7aa592430"></a>

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

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

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

<div id="dt-b4381898343cc6c39e75">
<p style="white-space: pre-wrap">The first argument is a MAC address offset.</p>
</div>

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

<a id="dt-c9dacfc51c60a20b9644"></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-5f22401375a7d5e266cf"></a>

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

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

<div id="dt-29ece320465bff1e1897">
<p style="white-space: pre-wrap">Third Ethernet interface's MAC address</p>
</div>

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

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

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

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

<div id="dt-08764a7a4cefabf36635">
<p style="white-space: pre-wrap">The first argument is a MAC address offset.</p>
</div>

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

<a id="dt-638b03b2556ee5fcda67"></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-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">nvram@1eff0000 {
    compatible = "brcm,nvram";
    reg = &lt;0x1eff0000 0x10000&gt;;

    mac: et0macaddr {
    };
};
</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>
