# Aspeed watchdog timer controllers

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

> Device-tree binding reference for Aspeed watchdog timer controllers.

<!-- 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;watchdog&#47;aspeed&#44;ast2400&#45;wdt&#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;Andrew Jeffery &#60;andrew&#64;codeconstruct&#46;com&#46;au&#62;&#34;</code></span>

<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;aspeed&#44;ast2400&#45;wdt&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;aspeed&#44;ast2500&#45;wdt&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;aspeed&#44;ast2600&#45;wdt&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;aspeed&#44;ast2700&#45;wdt&#34;</code></span>

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

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

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

<a id="dt-4e9a371963ac013ad39d"></a>

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

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">The clock used to drive the watchdog counter. From the AST2500 no source other than the 1MHz clock can be selected, so the clocks property is optional.</p>
</div>

<a id="dt-56685054606c4fb27732"></a>

### <code>aspeed&#44;reset&#45;type</code> — not listed as required here

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

**Allowed values (<code>enum</code>):** <a id="dt-e6d26a72aac13967fb34"></a> <span id="dt-5506f171c0e04dff49da"><code>&#34;cpu&#34;</code></span>, <span id="dt-4555f29563827b957cf0"><code>&#34;soc&#34;</code></span>, <span id="dt-91a5d2e04ac35b6aba61"><code>&#34;system&#34;</code></span>, <span id="dt-07bb676d878f55dbff15"><code>&#34;none&#34;</code></span>

**Default value (<code>default</code>):** <span id="dt-32c8c334ec68394d61c7"><code>&#34;system&#34;</code></span>

<div id="dt-f4d61fe8b086135e7c33">
<p style="white-space: pre-wrap">The watchdog can be programmed to generate one of three different types of reset when a timeout occcurs.
Specifying 'cpu' will only reset the processor on a timeout event.
Specifying 'soc' will reset a configurable subset of the SoC's controllers on a timeout event. Controllers critical to the SoC's operation may remain untouched. The set of SoC controllers to reset may be specified via the aspeed,reset-mask property if the node has the aspeed,ast2500-wdt or aspeed,ast2600-wdt compatible.
Specifying 'system' will reset all controllers on a timeout event, as if EXTRST had been asserted.
Specifying 'none' will cause the timeout event to have no reset effect. Another watchdog engine on the chip must be used for chip reset operations.</p>
</div>

<a id="dt-2507bac4a593c600d155"></a>

### <code>aspeed&#44;alt&#45;boot</code> — not listed as required here

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

<div id="dt-143e3fd977c7f2a063c5">
<p style="white-space: pre-wrap">Direct the watchdog to configure the SoC to boot from the alternative boot region if a timeout occurs.</p>
</div>

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

### <code>aspeed&#44;external&#45;signal</code> — not listed as required here

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

<div id="dt-616e0db40a512cf1b0bd">
<p style="white-space: pre-wrap">Assert the timeout event on an external signal pin associated with the watchdog controller instance. The pin must be muxed appropriately.</p>
</div>

<a id="dt-388f96c2b0075a7440ec"></a>

### <code>aspeed&#44;ext&#45;pulse&#45;duration</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4ceecdee1dd0e9275f97">[<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-32343daa5b872d317cbb">
<p style="white-space: pre-wrap">The duration, in microseconds, of the pulse emitted on the external signal pin.</p>
</div>

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

### <code>aspeed&#44;ext&#45;push&#45;pull</code> — not listed as required here

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

<div id="dt-25c6c58a33c647fcb320">
<p style="white-space: pre-wrap">If aspeed,external-signal is specified in the node, set the external signal pin's drive type to push-pull. If aspeed,ext-push-pull is not specified then the pin is configured as open-drain.</p>
</div>

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

### <code>aspeed&#44;ext&#45;active&#45;high</code> — not listed as required here

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

<div id="dt-2c015acdcde7f8797882">
<p style="white-space: pre-wrap">If both aspeed,external-signal and aspeed,ext-push-pull are specified in the node, set the pulse polarity to active-high. If aspeed,ext-active-high is not specified then the pin is configured as active-low.</p>
</div>

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

### <code>aspeed&#44;reset&#45;mask</code> — not listed as required here

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-487553624c7bbc5244f8"><code>5</code></span>

<div id="dt-cbf9d0b59aeafb956f19">
<p style="white-space: pre-wrap">A bitmask indicating which peripherals will be reset if the watchdog timer expires. On AST2500 SoCs this should be a single word defined using the AST2500_WDT_RESET_* macros; on AST2600 SoCs this should be a two-word array with the first word defined using the AST2600_WDT_RESET1_* macros, and the second word defined using the AST2600_WDT_RESET2_* macros; on AST2700 SoCs, this should be five-word array from AST2700_WDT_RESET1_* macros to AST2700_WDT_RESET5_* macros.</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-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-e7d54747281472c6ad1b"></a>
> >
> > **At least one of these rules must match (<code>anyOf</code>)**
> >
> > <a id="dt-c61f26c44d8072fb3b84"></a>
> >
> > **Rule 1**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-29d1902ca31efa1a77cf"></a> <span id="dt-572ad0eac3a9e52a2233"><code>&#34;aspeed&#44;ext&#45;push&#45;pull&#34;</code></span>
> >
> > <a id="dt-b8b208d9d653bea2f1b8"></a>
> >
> > **Rule 2**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-12fd4fec5512530e4923"></a> <span id="dt-d5573c0d1235face0f99"><code>&#34;aspeed&#44;ext&#45;active&#45;high&#34;</code></span>
> >
> > <a id="dt-36f65cb56068a4b5f953"></a>
> >
> > **Rule 3**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-aa974cdeeccbdd61e2d7"></a> <span id="dt-47bb305fece1468db051"><code>&#34;aspeed&#44;reset&#45;mask&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-636fd988aa51d8b1a23c"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-5282406649e2299018fd"></a> <span id="dt-8b815cdc151dd7705230"><code>&#34;aspeed&#44;ast2500&#45;wdt&#34;</code></span>, <span id="dt-b604a0065e02c1b545e4"><code>&#34;aspeed&#44;ast2600&#45;wdt&#34;</code></span>, <span id="dt-58608cfb7c250c73eb09"><code>&#34;aspeed&#44;ast2700&#45;wdt&#34;</code></span>

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

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-5f135e3db8ef1aa53700"></a> <span id="dt-0164887f025a095456fa"><code>&#34;aspeed&#44;ext&#45;active&#45;high&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-ee96a18d4bb2a9d39bd9"></a> <span id="dt-96ee7f71687cd234a9f8"><code>&#34;aspeed&#44;ext&#45;push&#45;pull&#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">watchdog@1e785000 {
    compatible = "aspeed,ast2400-wdt";
    reg = &lt;0x1e785000 0x1c&gt;;
    aspeed,reset-type = "system";
    aspeed,external-signal;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/watchdog/aspeed-wdt.h&gt;
watchdog@1e785040 {
    compatible = "aspeed,ast2600-wdt";
    reg = &lt;0x1e785040 0x40&gt;;
    aspeed,reset-type = "soc";
    aspeed,reset-mask = &lt;AST2600_WDT_RESET1_DEFAULT
                        (AST2600_WDT_RESET2_DEFAULT &amp; ~AST2600_WDT_RESET2_LPC)&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>
