Thread (17 messages) 17 messages, 6 authors, 2018-10-15

Re: [PATCH v3 8/8] watchdog: stpmic1: add stpmic1 watchdog driver

From: Randy Dunlap <hidden>
Date: 2018-10-08 16:35:44
Also in: linux-devicetree, linux-watchdog, lkml

On 10/8/18 9:29 AM, Pascal PAILLET-LME wrote:
From: pascal paillet <redacted>

The stpmic1 PMIC embeds a watchdog which is disabled by default. As soon
as the watchdog is started, it must be refreshed periodically otherwise
the PMIC goes off.

Signed-off-by: pascal paillet <redacted>
---
changes in v3:
* Rename struct stpmic1_dev by struct stpmic1.
* Add nowayout module param.
* Fix set timeout. 
* Call watchdog_init_timeout so that the timeout can be set in the devicetree.
* Add email address in MODULE_AUTHOR.

 drivers/watchdog/Kconfig       |  12 ++++
 drivers/watchdog/Makefile      |   1 +
 drivers/watchdog/stpmic1_wdt.c | 138 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 151 insertions(+)
 create mode 100644 drivers/watchdog/stpmic1_wdt.c
Hi,
quoted hunk ↗ jump to hunk
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index 5ea8909..985781e 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -806,6 +806,18 @@ config STM32_WATCHDOG
 	  To compile this driver as a module, choose M here: the
 	  module will be called stm32_iwdg.
 
+config STPMIC1_WATCHDOG
+	tristate "STPMIC1 PMIC watchdog support"
+	depends on MFD_STPMIC1
+	select WATCHDOG_CORE
+	help
+	  Say Y here to include watchdog support embedded into STPMIC1 PMIC.
+	  If the watchdog timer expires, stpmic1 shut-down all its power
	  If the watchdog timer expires, stpmic1 shuts down all its power
or
	  If the watchdog timer expires, stpmic1 will shut down all its power
+	  supplies.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called spmic1_wdt.
+
 config UNIPHIER_WATCHDOG
 	tristate "UniPhier watchdog support"
 	depends on ARCH_UNIPHIER || COMPILE_TEST
cheers.
-- 
~Randy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help