# NVMEM layout of the ONIE tlv table

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

> Device-tree binding reference for NVMEM layout of the ONIE tlv table.

<!-- 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;layouts&#47;onie&#44;tlv&#45;layout&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Modern networking hardware implementing the Open Compute Project ONIE infrastructure shall provide a non-volatile memory with a table whose the content is well specified and gives many information about the manufacturer (name, country of manufacture, etc) as well as device caracteristics (serial number, hardware version, mac addresses, etc). The underlying device type (flash, EEPROM,...) is not specified. The exact location of each value is also dynamic and should be discovered at run time because it depends on the parameters the manufacturer decided to embed.</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;onie&#44;tlv&#45;layout&#34;</code></span>

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

### <code>product&#45;name</code> — not listed as required here

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

<a id="dt-1a7640940693319f8c34"></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-632792c9752d3c78bb9e"></a>

### <code>part&#45;number</code> — not listed as required here

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

<a id="dt-054b568c17cfa5853898"></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-3d934c4a7d5181fabb3a"></a>

### <code>serial&#45;number</code> — not listed as required here

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

<a id="dt-315c0a2f696b67e2dc2d"></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-85f5579dd4b0f84fb665"></a>

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

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

<div id="dt-7631974899a244c10046">
<p style="white-space: pre-wrap">Base MAC address for all on-module network interfaces. The first argument of the phandle will be treated as an offset.</p>
</div>

<a id="dt-52c0faa0372a3c993a9e"></a>

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

<a id="dt-2064b4279673a76f3851"></a>

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

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

<a id="dt-cf350d5202b2bc59a82f"></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-613f90a1f0f7a475cd75"></a>

### <code>manufacture&#45;date</code> — not listed as required here

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

<a id="dt-8858a4ce959ed9becc30"></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-b08ca8722812eae1a44c"></a>

### <code>device&#45;version</code> — not listed as required here

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

<a id="dt-6a29404b27fc958ef5d0"></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-72d97dd9a57d85231eb7"></a>

### <code>label&#45;revision</code> — not listed as required here

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

<a id="dt-b35cdee1bac905f99e80"></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-7ff2d1ce20841c21d136"></a>

### <code>platform&#45;name</code> — not listed as required here

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

<a id="dt-baa124ccfb05cf9219b7"></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-e18b4248b455fed4c858"></a>

### <code>onie&#45;version</code> — not listed as required here

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

<a id="dt-98cf1b7e72cb8f1dde9a"></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-d9e983a6008c5ca2569d"></a>

### <code>num&#45;macs</code> — not listed as required here

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

<a id="dt-19490c97aa296d4b0e3c"></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-a1dadf9bac96844c778a"></a>

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

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

<a id="dt-252412f2d84dc6e9437e"></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-5b1dbba0e73cf91e3dfd"></a>

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

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

<a id="dt-cc4e3bc4ad2b901bf745"></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-701be9b06f95002a1c7f"></a>

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

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

<a id="dt-d742ccc3300826adc3df"></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-d3d5386a590c06680d7e"></a>

### <code>diag&#45;version</code> — not listed as required here

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

<a id="dt-cca44332053ff514cd10"></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-2e2d36f9ecfaefe44936"></a>

### <code>service&#45;tag</code> — not listed as required here

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

<a id="dt-c99b6b408d1f12e07053"></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-9f2420a8fd1c4be2406f"></a>

### <code>vendor&#45;extension</code> — not listed as required here

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

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

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</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-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">spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    eeprom@56 {
        compatible = "atmel,24c64";
        read-only;
        reg = &lt;0x56&gt;;

        nvmem-layout {
            compatible = "onie,tlv-layout";

            serial-number {
            };
        };
    };
};
</code></pre>

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

    flash@0 {
        compatible = "m25p80", "jedec,spi-nor";
        reg = &lt;0&gt;;

        otp {
            compatible = "user-otp";

            nvmem-layout {
                compatible = "onie,tlv-layout";

                mac-address {
                    #nvmem-cell-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 OR BSD-2-Clause)</span></p>

</details>
