# Reserved memory bindings

---

# Open Profile for DICE

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

> Device-tree binding reference for Open Profile for DICE.

<!-- 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;reserved&#45;memory&#47;google&#44;open&#45;dice&#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 represents a reserved memory region containing data
generated by the Open Profile for DICE protocol.</p>
<p style="white-space: pre-wrap">See https://pigweed.googlesource.com/open-dice/</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;David Brazdil &#60;dbrazdil&#64;google&#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>reserved&#45;memory&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-shared/reserved-memory/reserved-memory.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;google&#44;open&#45;dice&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">page-aligned region of memory containing DICE data</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;no&#45;map&#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">reserved-memory {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;1&gt;;

    dice: dice@12340000 {
        compatible = "google,open-dice";
        reg = &lt;0x00 0x12340000 0x2000&gt;;
        no-map;
    };
};
</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 Tegra210 EMC Frequency Table

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

> Device-tree binding reference for NVIDIA Tegra210 EMC Frequency 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;reserved&#45;memory&#47;nvidia&#44;tegra210&#45;emc&#45;table&#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;Thierry Reding &#60;thierry&#46;reding&#64;gmail&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Jon Hunter &#60;jonathanh&#64;nvidia&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">On Tegra210, firmware passes a binary representation of the EMC frequency table via a reserved memory region.</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>reserved&#45;memory&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-shared/reserved-memory/reserved-memory.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;nvidia&#44;tegra210&#45;emc&#45;table&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">region of memory reserved by firmware to pass the EMC frequency table</p>
</div>

<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;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>

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

---

# Tegra CPU-NS - BPMP IPC reserved memory

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

> Device-tree binding reference for Tegra CPU-NS - BPMP IPC reserved memory.

<!-- 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;reserved&#45;memory&#47;nvidia&#44;tegra264&#45;bpmp&#45;shmem&#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;Peter De Schrijver &#60;pdeschrijver&#64;nvidia&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Define a memory region used for communication between CPU-NS and BPMP.
Typically this node is created by the bootloader as the physical address
has to be known to both CPU-NS and BPMP for correct IPC operation.
The memory region is defined using a child node under /reserved-memory.
The sub-node is named shmem@&lt;address&gt;.</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>reserved&#45;memory&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-shared/reserved-memory/reserved-memory.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;nvidia&#44;tegra264&#45;bpmp&#45;shmem&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">The physical address and size of the shared SDRAM region</p>
</div>

<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;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;no&#45;map&#34;</code></span>

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">reserved-memory {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    shmem@f1be0000 {
        compatible = "nvidia,tegra264-bpmp-shmem";
        reg = &lt;0x0 0xf1be0000 0x0 0x2000&gt;;
        no-map;
    };
};
</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>

---

# MTD/block device in RAM

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

> Device-tree binding reference for MTD/block device in RAM.

<!-- 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;reserved&#45;memory&#47;phram&#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">Specifies that the reserved memory region can be used as an MTD or block
device.</p>
<p style="white-space: pre-wrap">The "phram" node is named after the "MTD in PHysical RAM" driver which
provides an implementation of this functionality in Linux.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Vincent Whitchurch &#60;vincent&#46;whitchurch&#64;axis&#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>reserved&#45;memory&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-shared/reserved-memory/reserved-memory.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;mtd&#47;mtd&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mtd/mtd.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;phram&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">region of memory that can be used as an MTD/block 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">reserved-memory {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    phram: flash@12340000 {
        compatible = "phram";
        label = "rootfs";
        reg = &lt;0x12340000 0x00800000&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 Command DB

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

> Device-tree binding reference for Qualcomm Command DB.

<!-- 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;reserved&#45;memory&#47;qcom&#44;cmd&#45;db&#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">Command DB is a database that provides a mapping between resource key and the
resource address for a system resource managed by a remote processor. The data
is stored in a shared memory region and is loaded by the remote processor.</p>
<p style="white-space: pre-wrap">Some of the Qualcomm Technologies Inc SoC's have hardware accelerators for
controlling shared resources. Depending on the board configuration the shared
resource properties may change. These properties are dynamically probed by the
remote processor and made available in the shared memory.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Bjorn Andersson &#60;bjorn&#46;andersson&#64;linaro&#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>reserved&#45;memory&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-shared/reserved-memory/reserved-memory.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;qcom&#44;cmd&#45;db&#34;</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-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">reserved-memory {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges;

    reserved-memory@85fe0000 {
        reg = &lt;0x85fe0000 0x20000&gt;;
        compatible = "qcom,cmd-db";
        no-map;
    };
};
</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 Remote File System Memory

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

> Device-tree binding reference for Qualcomm Remote File System Memory.

<!-- 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;reserved&#45;memory&#47;qcom&#44;rmtfs&#45;mem&#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 the Qualcomm remote filesystem memory, which serves the
purpose of describing the shared memory region used for remote processors to
access block device data using the Remote Filesystem protocol.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Bjorn Andersson &#60;bjorn&#46;andersson&#64;linaro&#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>reserved&#45;memory&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-shared/reserved-memory/reserved-memory.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;qcom&#44;rmtfs&#45;mem&#34;</code></span>

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

### <code>qcom&#44;client&#45;id</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4743a5e994b2535761e0">[<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-d7cc2d99cac249b2cc37">
<p style="white-space: pre-wrap">identifier of the client to use this region for buffers</p>
</div>

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

### <code>qcom&#44;use&#45;guard&#45;pages</code> — not listed as required here

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

<div id="dt-9a214ea15b448dbb6511">
<p style="white-space: pre-wrap">Indicates that the firmware, or hardware, does not gracefully handle memory protection of this region when placed adjacent to other protected memory regions, and that padding around the used portion of the memory region is necessary.
When this is set, the first and last page should be left unused, and the effective size of the region will thereby shrink with two pages.</p>
</div>

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

### <code>qcom&#44;vmid</code> — not listed as required here

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

<div id="dt-f38e71e79f7d78f82374">
<p style="white-space: pre-wrap">Array of vmids of the remote processors, to set up memory protection</p>
</div>

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

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

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;qcom&#44;client&#45;id&#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">reserved-memory {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges;

    rmtfs@86700000 {
        compatible = "qcom,rmtfs-mem";
        reg = &lt;0x86700000 0xe0000&gt;;
        no-map;

        qcom,client-id = &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>

---

# Ramoops oops/panic logger

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

> Device-tree binding reference for Ramoops oops/panic logger.

<!-- 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;reserved&#45;memory&#47;ramoops&#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">ramoops provides persistent RAM storage for oops and panics, so they can be
recovered after a reboot. This is a child-node of "/reserved-memory", and
is named "ramoops" after the backend, rather than "pstore" which is the
subsystem.</p>
<p style="white-space: pre-wrap">Parts of this storage may be set aside for other persistent log buffers, such
as kernel log messages, or for optional ECC error-correction data.  The total
size of these optional buffers must fit in the reserved region.</p>
<p style="white-space: pre-wrap">Any remaining space will be used for a circular buffer of oops and panic
records.  These records have a configurable size, with a size of 0 indicating
that they should be disabled.</p>
<p style="white-space: pre-wrap">At least one of "record-size", "console-size", "ftrace-size", or "pmsg-size"
must be set non-zero, but are otherwise optional as listed below.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Kees Cook &#60;keescook&#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>reserved&#45;memory&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-shared/reserved-memory/reserved-memory.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;ramoops&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">region of memory that is preserved between reboots</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-161eed2907d48f834ba7">[<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-582c5aa2f4cb1616636d">
<p style="white-space: pre-wrap">enables ECC support and specifies ECC buffer size in bytes</p>
</div>

**Default value (<code>default</code>):** <span id="dt-0894edfcff7aa96dcf73"><code>0</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-511412f0cd5926a9269f">[<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-3513c5caf29614182dc0">
<p style="white-space: pre-wrap">maximum size in bytes of each kmsg dump</p>
</div>

**Default value (<code>default</code>):** <span id="dt-0ed738aae5949d0aefbc"><code>0</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c79937444279611f9577">[<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-bceecbfa8a26c285997a">
<p style="white-space: pre-wrap">size in bytes of log buffer reserved for kernel messages</p>
</div>

**Default value (<code>default</code>):** <span id="dt-b5ce650c8cd35174b2cc"><code>0</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-2c1519604da241e44154">[<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-4bf46f10ecc826a2b564">
<p style="white-space: pre-wrap">size in bytes of log buffer reserved for function tracing and profiling</p>
</div>

**Default value (<code>default</code>):** <span id="dt-ed5e2ad1209699fda0f4"><code>0</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c295c9703d294396ec63">[<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-4a9f3b2bf000b56e8260">
<p style="white-space: pre-wrap">size in bytes of log buffer reserved for userspace messages</p>
</div>

**Default value (<code>default</code>):** <span id="dt-17ebbcc5270c5251197a"><code>0</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-508d70e046b23048ab48">[<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-3c26856639f0f0792e82">
<p style="white-space: pre-wrap">if present, sets the type of mapping is to be used to map the reserved region.</p>
</div>

**Default value (<code>default</code>):** <span id="dt-fa6c453e3b90ec6d3654"><code>0</code></span>

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

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

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-e748f16dbcee14cf9068"><code>0</code></span>
>
> <div id="dt-5a0b0b9d6ea9bd9c61bb">
> <p style="white-space: pre-wrap">write-combined</p>
> </div>

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

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-9feceac930e747d0d72b"><code>1</code></span>
>
> <div id="dt-1bdadf03ea2ff5675c6e">
> <p style="white-space: pre-wrap">unbuffered</p>
> </div>

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

**Rule 3**

> **Exact value (<code>const</code>):** <span id="dt-8b59674219283fc1b313"><code>2</code></span>
>
> <div id="dt-adc146281c71f8250f58">
> <p style="white-space: pre-wrap">cached</p>
> </div>

<a id="dt-73e815bd8e9aa64b71e5"></a>

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-323288037fd87240ca7b"><code>2147483647</code></span>

<div id="dt-e06893cedc28123bc312">
<p style="white-space: pre-wrap">If present, sets maximum type of kmsg dump reasons to store.
This can be set to INT_MAX to store all kmsg dumps.
See include/linux/kmsg_dump.h KMSG_DUMP_* for other kmsg dump reason values.
Setting this to 0 (KMSG_DUMP_UNDEF), means the reason filtering will be
controlled by the printk.always_kmsg_dump boot param.
If unset, it will be 2 (KMSG_DUMP_OOPS), otherwise 5 (KMSG_DUMP_MAX).</p>
</div>

<a id="dt-61f336938eb8456a0887"></a>

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

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

<div id="dt-46789eaa4926e659db46">
<p style="white-space: pre-wrap">If present, pass ramoops behavioral flags
(see include/linux/pstore_ram.h RAMOOPS_FLAG_* for flag values).</p>
</div>

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

### <code>no&#45;dump&#45;oops</code> — not listed as required here

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

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

<div id="dt-b1a3dc3b158e23b865c7">
<p style="white-space: pre-wrap">Use max_reason instead. If present, and max_reason is not specified,
it is equivalent to max_reason = 1 (KMSG_DUMP_PANIC).</p>
</div>

<a id="dt-72929b8da57d2d5c1fb1"></a>

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

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

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

<div id="dt-9310e25950ae2b22f706">
<p style="white-space: pre-wrap">Use mem_type instead. If present, and mem_type is not specified,
it is equivalent to mem_type = 1 and uses unbuffered mappings to map
the reserved region (defaults to buffered mappings mem_type = 0).
If both are specified -- "mem_type" overrides "unbuffered".</p>
</div>

<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;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>

<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;record&#45;size&#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;console&#45;size&#34;</code></span>

<a id="dt-604844a603b89bc24dae"></a>

### Rule 3

> **Required in this object (<code>required</code>):** <a id="dt-c2acffc92d010c18f5e1"></a> <span id="dt-1359536c869a5c387788"><code>&#34;ftrace&#45;size&#34;</code></span>

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

### Rule 4

> **Required in this object (<code>required</code>):** <a id="dt-229c3d05515b1836fdb0"></a> <span id="dt-d51a861e1912dece30fc"><code>&#34;pmsg&#45;size&#34;</code></span>

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

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

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

    reserved-memory {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;1&gt;;
        ranges;

        ramoops@bfdf0000 {
            compatible = "ramoops";
            reg = &lt;0xbfdf0000 0x10000&gt;; /* 64kB */
            console-size = &lt;0x8000&gt;;    /* 32kB */
            record-size = &lt;0x400&gt;;      /*  1kB */
            ecc-size = &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 OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 42:</strong> <span> no ECC</span></p>

<p id="dt-comment-2"><strong>Line 78:</strong> <span> log oopses and panics</span></p>

</details>
