Atmel Watchdog Timers

Schema identifier ($id): "http://devicetree.org/schemas/watchdog/atmel,at91sam9-wdt.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Eugen Hristev <eugen.hristev@microchip.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "atmel,at91sam9260-wdt"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

atmel,max-heartbeat-sec — not listed as required here #

Should contain the maximum heartbeat value in seconds. This value should be less or equal to 16. It is used to compute the WDV field.

Maximum value (maximum): 16

atmel,min-heartbeat-sec — not listed as required here #

Should contain the minimum heartbeat value in seconds. This value must be smaller than the max-heartbeat-sec value. It is used to compute the WDD field.

Maximum value (maximum): 16

atmel,watchdog-type — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Should be hardware or software.

Exactly one of these rules must match (oneOf) #

Rule 1

Hardware watchdog uses the at91 watchdog reset.

Exact value (const): "hardware"

Rule 2

Software watchdog uses the watchdog interrupt to trigger a software reset.

Exact value (const): "software"

Default value (default): "hardware"

atmel,reset-type — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Should be proc or all. This is valid only when using hardware watchdog.

Exactly one of these rules must match (oneOf) #

Rule 1

Assert peripherals and processor reset signals.

Exact value (const): "all"

Rule 2

Assert the processor reset signal.

Exact value (const): "proc"

Default value (default): "all"

atmel,disable — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Should be present if you want to stop the watchdog.

atmel,idle-halt — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Should be present if you want to stop the watchdog when entering idle state. CAUTION: This property should be used with care, it actually makes the watchdog not counting when the CPU is in idle state, therefore the watchdog reset time depends on mean CPU usage and will not reset at all if the CPU stops working while it is in idle state, which is probably not what you want.

atmel,dbg-halt — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Should be present if you want to stop the watchdog when entering debug state.

Required in this object (required): "compatible", "reg", "clocks"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): watchdog.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

atmel,reset-type — not listed as required here

Allowed values (enum): "all", "proc"

When the condition matches (then) #

Properties and child nodes (properties)

atmel,watchdog-type — not listed as required here

Exact value (const): "hardware"

Property dependencies (dependencies) #

atmel,reset-type — applies when this property is present #

Also requires: "atmel,watchdog-type"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

watchdog@fffffd40 {
    compatible = "atmel,at91sam9260-wdt";
    reg = <0xfffffd40 0x10>;
    interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
    clocks = <&clk32k>;
    timeout-sec = <15>;
    atmel,watchdog-type = "hardware";
    atmel,reset-type = "all";
    atmel,dbg-halt;
    atmel,idle-halt;
    atmel,max-heartbeat-sec = <16>;
    atmel,min-heartbeat-sec = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries

Edit this page