OSDN Git Service

watchdog: Add pm8916 watchdog driver
authorLoic Poulain <loic.poulain@linaro.org>
Fri, 23 Nov 2018 08:44:36 +0000 (09:44 +0100)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 22 Dec 2018 11:15:33 +0000 (12:15 +0100)
commit969c0acc039f77c6b9d000ccb8b9d3afca4d3667
treefc7f271da83b6bba70a4a2bd8ed928d21c877ad5
parent4d9c6e90166f1a4b0132e8d8520a2fcd6d081e6b
watchdog: Add pm8916 watchdog driver

The PM816 module is a versatile PMIC with many diverse functions
integrated, including, a watchdog.
This watchdog is subcomponent of the PON (Power On) peripheral,
in the same way as pwrkey/resin buttons.
It works with two timers (2-stages), the first one generates an
IRQ to the main SoC (APQ8016/MSM8916), the second one performs
the reset.

This driver expects the following device hierarchy:
[pm8916]->[pm8916-pon]->[pm8916-wdt]

It uses the pm8916 regmap to access PM8916 registers.

Signed-off-by: Loic Poulain <loic.poulain@linaro.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@linux-watchdog.org>
drivers/watchdog/Kconfig
drivers/watchdog/Makefile
drivers/watchdog/pm8916_wdt.c [new file with mode: 0644]