Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: dt: binding: atmel-sama5d4-wdt: for SAMA5D4 watchdog driver

The compatible "atmel,sama5d4-wdt" supports the SAMA5D4 watchdog driver
and the watchdog's WDT_MR register can be written more than once.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Wenyou Yang and committed by
Wim Van Sebroeck
f4fff94e 76534860

+35
+35
Documentation/devicetree/bindings/watchdog/atmel-sama5d4-wdt.txt
··· 1 + * Atmel SAMA5D4 Watchdog Timer (WDT) Controller 2 + 3 + Required properties: 4 + - compatible: "atmel,sama5d4-wdt" 5 + - reg: base physical address and length of memory mapped region. 6 + 7 + Optional properties: 8 + - timeout-sec: watchdog timeout value (in seconds). 9 + - interrupts: interrupt number to the CPU. 10 + - atmel,watchdog-type: should be "hardware" or "software". 11 + "hardware": enable watchdog fault reset. A watchdog fault triggers 12 + watchdog reset. 13 + "software": enable watchdog fault interrupt. A watchdog fault asserts 14 + watchdog interrupt. 15 + - atmel,idle-halt: present if you want to stop the watchdog when the CPU is 16 + in idle state. 17 + CAUTION: This property should be used with care, it actually makes the 18 + watchdog not counting when the CPU is in idle state, therefore the 19 + watchdog reset time depends on mean CPU usage and will not reset at all 20 + if the CPU stop working while it is in idle state, which is probably 21 + not what you want. 22 + - atmel,dbg-halt: present if you want to stop the watchdog when the CPU is 23 + in debug state. 24 + 25 + Example: 26 + watchdog@fc068640 { 27 + compatible = "atmel,sama5d4-wdt"; 28 + reg = <0xfc068640 0x10>; 29 + interrupts = <4 IRQ_TYPE_LEVEL_HIGH 5>; 30 + timeout-sec = <10>; 31 + atmel,watchdog-type = "hardware"; 32 + atmel,dbg-halt; 33 + atmel,idle-halt; 34 + status = "okay"; 35 + };