1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/watchdog/atmel,sama5d4-wdt.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Atmel SAMA5D4 Watchdog Timer (WDT) Controller 8 9maintainers: 10 - Eugen Hristev <eugen.hristev@microchip.com> 11 12allOf: 13 - $ref: "watchdog.yaml#" 14 15properties: 16 compatible: 17 enum: 18 - atmel,sama5d4-wdt 19 - microchip,sam9x60-wdt 20 21 reg: 22 maxItems: 1 23 24 atmel,watchdog-type: 25 $ref: /schemas/types.yaml#/definitions/string 26 description: should be hardware or software. 27 oneOf: 28 - description: 29 Enable watchdog fault reset. A watchdog fault triggers 30 watchdog reset. 31 const: hardware 32 - description: 33 Enable watchdog fault interrupt. A watchdog fault asserts 34 watchdog interrupt. 35 const: software 36 default: hardware 37 38 atmel,idle-halt: 39 $ref: /schemas/types.yaml#/definitions/flag 40 description: | 41 present if you want to stop the watchdog when the CPU is in idle state. 42 CAUTION: This property should be used with care, it actually makes the 43 watchdog not counting when the CPU is in idle state, therefore the 44 watchdog reset time depends on mean CPU usage and will not reset at all 45 if the CPU stop working while it is in idle state, which is probably 46 not what you want. 47 48 atmel,dbg-halt: 49 $ref: /schemas/types.yaml#/definitions/flag 50 description: | 51 present if you want to stop the watchdog when the CPU is in debug state. 52 53required: 54 - compatible 55 - reg 56 57unevaluatedProperties: false 58 59examples: 60 - | 61 #include <dt-bindings/interrupt-controller/irq.h> 62 63 watchdog@fc068640 { 64 compatible = "atmel,sama5d4-wdt"; 65 reg = <0xfc068640 0x10>; 66 interrupts = <4 IRQ_TYPE_LEVEL_HIGH 5>; 67 timeout-sec = <10>; 68 atmel,watchdog-type = "hardware"; 69 atmel,dbg-halt; 70 atmel,idle-halt; 71 }; 72 73... 74