Skip to contentSkip to conversation

Watchdog: DA9052 watchdog support

PATCH Superseded ashishj3 1 participant 2 messages Aug 5, 2011 – Aug 22, 2011

Subsystems (3)
lore
Share & tools
lore

ashishj3

author
#0 lore raw

PATCH v2 7/11 Watchdog: DA9052 watchdog support

This driver adds support for the watchdog functionality provided by the Dialog Semiconductor DA9052 PMIC chip.

---
Changes since V2:
- Code restructured for simplicty.
- Add watchdog documentation.
- Remove Auto strobing feature.
- Remove strobe filtering flag.

---
 Documentation/watchdog/watchdog-parameters.txt |    5 +
 drivers/watchdog/Kconfig                       |    6 +
 drivers/watchdog/Makefile                      |    1 +
 drivers/watchdog/da9052_wdt.c                  |  338 ++++++++++++++++++++++++
 4 files changed, 350 insertions(+), 0 deletions(-)
 create mode 100755 drivers/watchdog/da9052_wdt.c
Documentation/watchdog/watchdog-parameters.txt +5 -0
index 17ddd82..04fddba 100644
@@ -78,6 +78,11 @@ wd0_timeout: Default watchdog0 timeout in 1/10secs
 wd1_timeout: Default watchdog1 timeout in 1/10secs
 wd2_timeout: Default watchdog2 timeout in 1/10secs
 -------------------------------------------------
+da9052wdt:
+timeout: Watchdog timeout in seconds. 2<= timeout <=131, default=2.048s
+nowayout: Watchdog cannot be stopped once started
+	(default=kernel config parameter)
+-------------------------------------------------
 davinci_wdt:
 heartbeat: Watchdog heartbeat period in seconds from 1 to 600, default 60
 -------------------------------------------------
drivers/watchdog/Kconfig +6 -0
index 86b0735..9ffa6d7 100644
@@ -63,6 +63,12 @@ config SOFT_WATCHDOG
 	  To compile this driver as a module, choose M here: the
 	  module will be called softdog.
 
+config DA9052_WATCHDOG
+	tristate "Dialog DA9052 Watchdog"
+	depends on PMIC_DA9052
+	help
+	  Support for the watchdog in the DA9052 PMIC.
+
 config WM831X_WATCHDOG
 	tristate "WM831x watchdog"
 	depends on MFD_WM831X
drivers/watchdog/Makefile +1 -0
index 55bd574..b047722 100644
@@ -166,4 +166,5 @@ obj-$(CONFIG_XEN_WDT) += xen_wdt.o
 obj-$(CONFIG_WM831X_WATCHDOG) += wm831x_wdt.o
 obj-$(CONFIG_WM8350_WATCHDOG) += wm8350_wdt.o
 obj-$(CONFIG_MAX63XX_WATCHDOG) += max63xx_wdt.o
+obj-$(CONFIG_DA9052_WATCHDOG) += da9052_wdt.o
 obj-$(CONFIG_SOFT_WATCHDOG) += softdog.o
drivers/watchdog/da9052_wdt.c new file +338 -0

338 lines not on this page · raw message

author
#1 lore raw
Quoted 5 lines · On Fri, 2011-08-05 at 19:22 +0530, ashishj3 wrote:

This driver adds support for the watchdog functionality provided by the Dialog Semiconductor DA9052 PMIC chip.

Quoted 7 lines

---
Changes since V2:
- Code restructured for simplicty.
- Add watchdog documentation.
- Remove Auto strobing feature.
- Remove strobe filtering flag.
---

If there are no comments then can this patch get ACK?