linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] watchdog: at91sam9_wdt: handle already configured wdt
@ 2013-06-21  7:19 Boris BREZILLON
  2013-06-21  7:21 ` [PATCH v2 1/4] watchdog: at91sam9_wdt: better watchdog support Boris BREZILLON
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Boris BREZILLON @ 2013-06-21  7:19 UTC (permalink / raw)
  To: Wim Van Sebroeck, Nicolas Ferre, Jean-Christophe PLAGNIOL-VILLARD,
	Ludovic Desroches, Yang Wenyou
  Cc: linux-watchdog, linux-kernel, Boris BREZILLON

Hello,

This patch series is a porposal to enhance the sam9 watchdog timer support.

The at91sam9 watchdog timer can only be configured once, and the current
implementation tries to configure it in a static way:
- 2 seconds timeout
- wdt restart every 500ms

If the timer has already been configured with different values, it returns an
error and do not create any watchdog device.

This is not critical if the watchdog is disabled, but if it has been enabled
with different timeout values it will lead to a SoC reset.

This patch series tries to address this issue by adapting the heartbeat value
according the WDT timer config:
- it first tries to configure the timer as requested.
- if it fails it fallbacks to the current config, adapting its heartbeat timer
to the needs

This patch series also move to a dynamically allocated at91wdt device instead
of the static instance. I'm not sure this is the best solution, so please tell
me if you prefer to keep static instance of watchdog.

It adds a new at91 wdt type: software. This new type make use of the at91 wdt
interrupt to trigger a software reboot.

Finally it adds several properties to the device tree bindings.

Best Regards,
Boris

Change since v1:
 - fix typo in documentaion
 - fix irq dt definition for sama5d3 SoC

Boris BREZILLON (4):
  watchdog: at91sam9_wdt: better watchdog support
  watchdog: at91sam9_wdt: update device tree doc
  ARM: at91/dt: add sam9 watchdog default options to SoCs
  ARM: at91/dt: add watchdog properties to kizbox board

 .../devicetree/bindings/watchdog/atmel-wdt.txt     |   30 +-
 arch/arm/boot/dts/at91sam9260.dtsi                 |    5 +
 arch/arm/boot/dts/at91sam9263.dtsi                 |    5 +
 arch/arm/boot/dts/at91sam9g45.dtsi                 |    5 +
 arch/arm/boot/dts/at91sam9n12.dtsi                 |    5 +
 arch/arm/boot/dts/at91sam9x5.dtsi                  |    5 +
 arch/arm/boot/dts/kizbox.dts                       |    6 +
 arch/arm/boot/dts/sama5d3.dtsi                     |    5 +
 drivers/watchdog/at91sam9_wdt.c                    |  319 +++++++++++++++-----
 9 files changed, 300 insertions(+), 85 deletions(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-10-03  8:31 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-21  7:19 [PATCH v2 0/4] watchdog: at91sam9_wdt: handle already configured wdt Boris BREZILLON
2013-06-21  7:21 ` [PATCH v2 1/4] watchdog: at91sam9_wdt: better watchdog support Boris BREZILLON
2013-10-02 16:12   ` [v2,1/4] " Guenter Roeck
2013-10-02 19:27     ` boris brezillon
2013-10-02 19:34       ` Guenter Roeck
2013-10-02 19:53         ` boris brezillon
2013-10-02 20:42           ` Guenter Roeck
2013-06-21  7:23 ` [PATCH v2 2/4] watchdog: at91sam9_wdt: update device tree doc Boris BREZILLON
2013-08-26 13:18   ` boris brezillon
2013-10-02 15:51   ` [v2,2/4] " Guenter Roeck
2013-10-02 16:42     ` boris brezillon
2013-10-03  8:08   ` [PATCH v2 2/4] " Fabio Porcedda
2013-10-03  8:23     ` boris brezillon
2013-10-03  8:26       ` Fabio Porcedda
2013-06-21  7:29 ` [PATCH v2 3/4] ARM: at91/dt: add sam9 watchdog default options to SoCs Boris BREZILLON
2013-06-21  7:31 ` Boris BREZILLON
2013-06-21  7:32 ` [PATCH v2 4/4] ARM: at91/dt: add watchdog properties to kizbox board Boris BREZILLON
2013-08-26 13:25 ` [PATCH v2 0/4] watchdog: at91sam9_wdt: handle already configured wdt boris brezillon
2013-08-27  0:43   ` Yang, Wenyou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).