# Generic SYSCON mapped register reset driver

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

> Device-tree binding reference for Generic SYSCON mapped register reset driver.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;syscon&#45;reboot&#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;Sebastian Reichel &#60;sre&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This is a generic reset driver using syscon to map the reset register.
The reset is generally performed with a write to the reset register
defined by the SYSCON register map base plus the offset with the value and
mask defined in the reboot node. Default will be little endian mode, 32 bit
access only. The SYSCON registers map is normally retrieved from the
parental dt-node. So the SYSCON reboot node should be represented as a
sub-node of a "syscon", "simple-mfd" node. Though the regmap property
pointing to the system controller node is also supported.</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;syscon&#45;reboot&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;google&#44;gs101&#45;reboot&#34;</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-bea40f23b9b0b8df395c">[<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-1bace59029ec06303ea8">
<p style="white-space: pre-wrap">Update only the register bits defined by the mask (32 bit).</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-37e0434874d87a55cbed">[<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-dca739480f21ed1e1b3c">
<p style="white-space: pre-wrap">Offset in the register map for the reboot register (in bytes).</p>
</div>

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Base address and size for the reboot register.</p>
</div>

<a id="dt-44ea8230d76d830fd158"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-bc06a360d7c7ceaa7d7a">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2533fa46618221e83225>)</span>

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

<div id="dt-1b51b67138be55237109">
<p style="white-space: pre-wrap">Phandle to the register map node. This property is deprecated in favor of
the syscon-reboot node been a child of a system controller node.</p>
</div>

<a id="dt-3440bb7910aebc033340"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4425e07823ec2f3c89c8">[<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-33c3a74efa4606efab65">
<p style="white-space: pre-wrap">The reset value written to the reboot register (32 bit access).</p>
</div>

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

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

**Default value (<code>default</code>):** <span id="dt-102d9e5a14edbf5c0881"><code>192</code></span>

**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-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>restart&#45;handler&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-power/reset/restart-handler.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9b74ad9882646c4a5116"><code>&#34;google&#44;gs101&#45;reboot&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-6b4a237ce26127d26eb0"></a>
> >
> > **<code>mask</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-896ff9219e5949236e54"></a>
> >
> > **<code>offset</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-18ed1f4bd380878274d8"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-b9f202be0f26e13d6ba9"></a>
> >
> > **<code>value</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
>
> <a id="dt-56ef1e95d4edd6e6f24c"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-8cc174c4b4adce46c891"></a>
> >
> > **Condition (<code>if</code>)**
> >
> > > <a id="dt-30970c1a533a53089aaa"></a>
> > >
> > > **This rule must not match (<code>not</code>)**
> > >
> > > > **Required in this object (<code>required</code>):** <a id="dt-a51693a95ed926ce3e1a"></a> <span id="dt-c64ffb3ca3fccafe23c5"><code>&#34;mask&#34;</code></span>
> >
> > <a id="dt-9b83293bcfd549f28e1c"></a>
> >
> > **When the condition matches (<code>then</code>)**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-8f1d6cf8942c4296b997"></a> <span id="dt-a8c484f5b9b41d7c61d9"><code>&#34;value&#34;</code></span>
> >
> > <a id="dt-b563d4c034f5d2e688fb"></a>
> >
> > **At least one of these rules must match (<code>anyOf</code>)**
> >
> > <a id="dt-16a756df9f93c6919dfa"></a>
> >
> > **Rule 1**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-3967cae7d8c857b18bb3"></a> <span id="dt-09b8316f700c590fb65e"><code>&#34;offset&#34;</code></span>
> >
> > <a id="dt-33d4612b86bc251421a2"></a>
> >
> > **Rule 2**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-8ca89a49068033e18b0d"></a> <span id="dt-2ddcc460de574f5fa86d"><code>&#34;reg&#34;</code></span>

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">reboot {
    compatible = "syscon-reboot";
    regmap = &lt;&amp;regmapnode&gt;;
    offset = &lt;0x0&gt;;
    mask = &lt;0x1&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">reboot {
    compatible = "google,gs101-reboot";
};
</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</span></p>

</details>
