# Generic reboot mode core map

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset_

> Device-tree binding reference for Generic reboot mode core map.

<!-- 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;power&#47;reset&#47;reboot&#45;mode&#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;Andy Yan &#60;andy&#46;yan&#64;rock&#45;chips&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This driver get reboot mode arguments and call the write
interface to store the magic value in special register
or ram. Then the bootloader can read it and take different
action according to the argument stored.</p>
<p style="white-space: pre-wrap">All mode properties are vendor specific, it is a indication to tell
the bootloader what to do when the system reboots, and should be named
as mode-xxx = &lt;magic&gt; (xxx is mode name, magic should be a non-zero value).</p>
<pre><code>For example, modes common Android platform are:
  - normal: Normal reboot mode, system reboot with command "reboot".
  - recovery: Android Recovery mode, it is a mode to format the device or update a new image.
  - bootloader: Android fastboot mode, it's a mode to re-flash partitions on the Android based device.
  - loader: A bootloader mode, it's a mode used to download image on Rockchip platform,
            usually used in development.</code></pre>
</div>

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

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-da500b17a8ad07c23f40">[<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-d8c2b36b272887a4d6ef">
<p style="white-space: pre-wrap">Default value to set on a reboot if no command was provided.</p>
</div>

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

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

<a id="dt-320e8440a5472fdfe5d6"></a>

### <code>&#94;mode&#45;&#46;&#42;&#36;</code> — name matches this regular expression

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

<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">reboot-mode {
  mode-normal = &lt;0&gt;;
  mode-recovery = &lt;1&gt;;
  mode-bootloader = &lt;2&gt;;
  mode-loader = &lt;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-only OR BSD-2-Clause)</span></p>

</details>
