162306a36Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 262306a36Sopenharmony_ci%YAML 1.2 362306a36Sopenharmony_ci--- 462306a36Sopenharmony_ci$id: http://devicetree.org/schemas/watchdog/atmel,sama5d4-wdt.yaml# 562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 662306a36Sopenharmony_ci 762306a36Sopenharmony_cititle: Atmel SAMA5D4 Watchdog Timer (WDT) Controller 862306a36Sopenharmony_ci 962306a36Sopenharmony_cimaintainers: 1062306a36Sopenharmony_ci - Eugen Hristev <eugen.hristev@microchip.com> 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciallOf: 1362306a36Sopenharmony_ci - $ref: watchdog.yaml# 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciproperties: 1662306a36Sopenharmony_ci compatible: 1762306a36Sopenharmony_ci enum: 1862306a36Sopenharmony_ci - atmel,sama5d4-wdt 1962306a36Sopenharmony_ci - microchip,sam9x60-wdt 2062306a36Sopenharmony_ci - microchip,sama7g5-wdt 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci reg: 2362306a36Sopenharmony_ci maxItems: 1 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci interrupts: 2662306a36Sopenharmony_ci maxItems: 1 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci atmel,watchdog-type: 2962306a36Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/string 3062306a36Sopenharmony_ci description: should be hardware or software. 3162306a36Sopenharmony_ci oneOf: 3262306a36Sopenharmony_ci - description: 3362306a36Sopenharmony_ci Enable watchdog fault reset. A watchdog fault triggers 3462306a36Sopenharmony_ci watchdog reset. 3562306a36Sopenharmony_ci const: hardware 3662306a36Sopenharmony_ci - description: 3762306a36Sopenharmony_ci Enable watchdog fault interrupt. A watchdog fault asserts 3862306a36Sopenharmony_ci watchdog interrupt. 3962306a36Sopenharmony_ci const: software 4062306a36Sopenharmony_ci default: hardware 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ci atmel,idle-halt: 4362306a36Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/flag 4462306a36Sopenharmony_ci description: | 4562306a36Sopenharmony_ci present if you want to stop the watchdog when the CPU is in idle state. 4662306a36Sopenharmony_ci CAUTION: This property should be used with care, it actually makes the 4762306a36Sopenharmony_ci watchdog not counting when the CPU is in idle state, therefore the 4862306a36Sopenharmony_ci watchdog reset time depends on mean CPU usage and will not reset at all 4962306a36Sopenharmony_ci if the CPU stop working while it is in idle state, which is probably 5062306a36Sopenharmony_ci not what you want. 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ci atmel,dbg-halt: 5362306a36Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/flag 5462306a36Sopenharmony_ci description: | 5562306a36Sopenharmony_ci present if you want to stop the watchdog when the CPU is in debug state. 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_cirequired: 5862306a36Sopenharmony_ci - compatible 5962306a36Sopenharmony_ci - reg 6062306a36Sopenharmony_ci 6162306a36Sopenharmony_ciunevaluatedProperties: false 6262306a36Sopenharmony_ci 6362306a36Sopenharmony_ciexamples: 6462306a36Sopenharmony_ci - | 6562306a36Sopenharmony_ci #include <dt-bindings/interrupt-controller/irq.h> 6662306a36Sopenharmony_ci 6762306a36Sopenharmony_ci watchdog@fc068640 { 6862306a36Sopenharmony_ci compatible = "atmel,sama5d4-wdt"; 6962306a36Sopenharmony_ci reg = <0xfc068640 0x10>; 7062306a36Sopenharmony_ci interrupts = <4 IRQ_TYPE_LEVEL_HIGH 5>; 7162306a36Sopenharmony_ci timeout-sec = <10>; 7262306a36Sopenharmony_ci atmel,watchdog-type = "hardware"; 7362306a36Sopenharmony_ci atmel,dbg-halt; 7462306a36Sopenharmony_ci atmel,idle-halt; 7562306a36Sopenharmony_ci }; 7662306a36Sopenharmony_ci 7762306a36Sopenharmony_ci... 78