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

drivers/watchdog: Add optional ASPEED device tree properties

Describe device tree optional properties:

* aspeed,reset-type = "cpu|soc|system|none"
One of three different, mutually exclusive, values

"cpu" : ARM CPU reset on signal
"soc" : 'System on chip' reset
"system" : Full system reset

The value can also be set to "none" which indicates that no
reset of any kind is to be done via this watchdog. This assumes
another watchdog on the chip is to take care of resets.

* aspeed,external-signal - Generate external signal (WDT1 and WDT2 only)
* aspeed,alt-boot - Boot from alternate block on signal

Signed-off-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Christopher Bostic and committed by
Wim Van Sebroeck
ffbb29d6 b7f0b8ad

+32
+32
Documentation/devicetree/bindings/watchdog/aspeed-wdt.txt
··· 8 8 - reg: physical base address of the controller and length of memory mapped 9 9 region 10 10 11 + Optional properties: 12 + 13 + - aspeed,reset-type = "cpu|soc|system|none" 14 + 15 + Reset behavior - Whenever a timeout occurs the watchdog can be programmed 16 + to generate one of three different, mutually exclusive, types of resets. 17 + 18 + Type "none" can be specified to indicate that no resets are to be done. 19 + This is useful in situations where another watchdog engine on chip is 20 + to perform the reset. 21 + 22 + If 'aspeed,reset-type=' is not specfied the default is to enable system 23 + reset. 24 + 25 + Reset types: 26 + 27 + - cpu: Reset CPU on watchdog timeout 28 + 29 + - soc: Reset 'System on Chip' on watchdog timeout 30 + 31 + - system: Reset system on watchdog timeout 32 + 33 + - none: No reset is performed on timeout. Assumes another watchdog 34 + engine is responsible for this. 35 + 36 + - aspeed,external-signal: If property is present then signal is sent to 37 + external reset counter (only WDT1 and WDT2). If not 38 + specified no external signal is sent. 39 + - aspeed,alt-boot: If property is present then boot from alternate block. 40 + 11 41 Example: 12 42 13 43 wdt1: watchdog@1e785000 { 14 44 compatible = "aspeed,ast2400-wdt"; 15 45 reg = <0x1e785000 0x1c>; 46 + aspeed,reset-type = "system"; 47 + aspeed,external-signal; 16 48 };