drivers/watchdog: ASPEED reference dev tree properties for config
authorChristopher Bostic <cbostic@linux.vnet.ibm.com>
Mon, 17 Jul 2017 19:25:39 +0000 (14:25 -0500)
committerWim Van Sebroeck <wim@iguana.be>
Sat, 9 Sep 2017 19:04:59 +0000 (21:04 +0200)
commitb7f0b8ad25f3f19f7830b3ce5b8fa6f7fe7ae5d5
tree6033bb841ee6088e74568bd0d67a07324e515f22
parenta1f2a82072ea298ae91505c213f6d299ddb5e446
drivers/watchdog: ASPEED reference dev tree properties for config

Reference the system device tree when configuring the watchdog
engines. If property 'aspeed,reset_type' is present then set
reset behavior based on the specified value.  This can be one of
three different mutually exclusive values
  * cpu - Reset CPU only on watchdog timeout
  * soc - Reset System on Chip
  * system - Full system reset

No reset can also be specified by indicating:
  * none - No reset, assumes another watchdog is responsible for
           this.

Add optional property 'aspeed,external-signal'. If present then
configure to generate external signal on watchdog timeout.

Signed-off-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>
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>
drivers/watchdog/aspeed_wdt.c