mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-16 00:56:59 +07:00
74f078c333
The Atmel sama5d4_wdt needs to be compatible with microchip,sam9x60-wdt The sama5d4_wdt driver is updated to work with both hardware blocks (sama5d4/sama5d2 and sam9x60 based blocks) Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Acked-by: Rob Herring <robh@kernel.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/1573806579-7981-2-git-send-email-eugen.hristev@microchip.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
* Atmel SAMA5D4 Watchdog Timer (WDT) Controller
|
|
|
|
Required properties:
|
|
- compatible: "atmel,sama5d4-wdt" or "microchip,sam9x60-wdt"
|
|
- reg: base physical address and length of memory mapped region.
|
|
|
|
Optional properties:
|
|
- timeout-sec: watchdog timeout value (in seconds).
|
|
- interrupts: interrupt number to the CPU.
|
|
- atmel,watchdog-type: should be "hardware" or "software".
|
|
"hardware": enable watchdog fault reset. A watchdog fault triggers
|
|
watchdog reset.
|
|
"software": enable watchdog fault interrupt. A watchdog fault asserts
|
|
watchdog interrupt.
|
|
- atmel,idle-halt: 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: present if you want to stop the watchdog when the CPU is
|
|
in debug state.
|
|
|
|
Example:
|
|
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;
|
|
};
|