linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/3] add UniPhier watchdog support
@ 2017-06-06  9:11 Keiji Hayashibara
  2017-06-06  9:11 ` [PATCH V2 1/3] devicetree: add UniPhier WDT devicetree bindings documentation Keiji Hayashibara
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Keiji Hayashibara @ 2017-06-06  9:11 UTC (permalink / raw)
  To: wim, linux
  Cc: linux-watchdog, linux-kernel, robh+dt, devicetree,
	masami.hiramatsu, jaswinder.singh, yamada.masahiro,
	hayashi.kunihiko, owada.kiyoshi, Keiji Hayashibara

This series adds support for watchdog timer implemented on UniPhier LD11 and
LD20 SoCs. This driver supports watchdog and system reset for SoCs.

patch V1
http://www.spinics.net/lists/linux-watchdog/msg11782.html

Changes between V2 and V1
=========================
1. Add barrier code in uniphier_watchdog_ping() and __uniphier_watchdog_start().

 When writing WDTCTRL_CLEAR to WDTCTRL register, WDTCTRL_STATUS is updated
 about 62.5usec(2cycle of 32kHz) later. However, if WDTCTRL_CLEAR is written
 before WDTCTRL_STATUS is updated, it can't reboot as SoC specification.
 Therefore, I added barrier code, it waits until WDTCTRL_STATUS is updated.
   
2. Fix issues according to review comments.

 * Use WDOG_STOP_ON_REBOOT instead of shutdown method of struct platform_driver.
 * Separate uniphier-wdt bindings documentation as a patch.
 * Remove delay.h and add bitops.h header file.
 * Use devm_watchdog_register_device().
 * Remove unnecessary code.

Keiji Hayashibara (3):
  devicetree: add UniPhier WDT devicetree bindings documentation
  watchdog: uniphier: add UniPhier watchdog driver
  arm64: dts: uniphier: add watchdog node for LD11 and LD20

 .../devicetree/bindings/watchdog/uniphier-wdt.txt  |  20 ++
 Documentation/watchdog/watchdog-parameters.txt     |   6 +
 arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi   |   4 +
 arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi   |   4 +
 drivers/watchdog/Kconfig                           |  11 +
 drivers/watchdog/Makefile                          |   1 +
 drivers/watchdog/uniphier_wdt.c                    | 275 +++++++++++++++++++++
 7 files changed, 321 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt
 create mode 100644 drivers/watchdog/uniphier_wdt.c

-- 
2.7.4

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

end of thread, other threads:[~2017-06-09 10:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-06  9:11 [PATCH V2 0/3] add UniPhier watchdog support Keiji Hayashibara
2017-06-06  9:11 ` [PATCH V2 1/3] devicetree: add UniPhier WDT devicetree bindings documentation Keiji Hayashibara
2017-06-08  2:11   ` Masahiro Yamada
2017-06-08  6:22     ` Keiji Hayashibara
2017-06-06  9:11 ` [PATCH V2 2/3] watchdog: uniphier: add UniPhier watchdog driver Keiji Hayashibara
2017-06-08  2:09   ` Masahiro Yamada
2017-06-08  5:51     ` Keiji Hayashibara
2017-06-08 12:31   ` Guenter Roeck
2017-06-09 10:22     ` Keiji Hayashibara
2017-06-06  9:11 ` [PATCH V2 3/3] arm64: dts: uniphier: add watchdog node for LD11 and LD20 Keiji Hayashibara

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).