Atmel SAMA5D4 Watchdog Timer (WDT) Controller

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

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

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

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "atmel,sama5d4-wdt", "microchip,sam9x60-wdt", "microchip,sama7g5-wdt"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "microchip,sam9x7-wdt"

Item 2

Exact value (const): "microchip,sam9x60-wdt"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

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

Enable watchdog fault reset. A watchdog fault triggers watchdog reset.

Exact value (const): "hardware"

Rule 2

Enable watchdog fault interrupt. A watchdog fault asserts watchdog interrupt.

Exact value (const): "software"

Default value (default): "hardware"

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

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

present if you want to stop the watchdog when the CPU is in 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 stop 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

present if you want to stop the watchdog when the CPU is in debug state.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

watchdog@fc068640 {
    compatible = "atmel,sama5d4-wdt";
    reg = <0xfc068640 0x10>;
    interrupts = <4 IRQ_TYPE_LEVEL_HIGH 5>;
    timeout-sec = <10>;
    atmel,watchdog-type = "hardware";
    atmel,dbg-halt;
    atmel,idle-halt;
};

Source notes #

Annotations retained from the schema source

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

Edit this page