Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1658514

[PATCH V2 0/3] add UniPhier watchdog support

From Keiji Hayashibara <hayashibara.keiji@socionext.com>
Newsgroups linux.kernel
Subject [PATCH V2 0/3] add UniPhier watchdog support
Date 2017-06-06 11:20 +0200
Message-ID <tPiOD-6Mu-13@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH V2 0/3] add UniPhier watchdog support Keiji Hayashibara <hayashibara.keiji@socionext.com> - 2017-06-06 11:20 +0200
  [PATCH V2 1/3] devicetree: add UniPhier WDT devicetree bindings documentation Keiji Hayashibara <hayashibara.keiji@socionext.com> - 2017-06-06 11:20 +0200
  [PATCH V2 3/3] arm64: dts: uniphier: add watchdog node for LD11 and LD20 Keiji Hayashibara <hayashibara.keiji@socionext.com> - 2017-06-06 11:20 +0200
  [PATCH V2 2/3] watchdog: uniphier: add UniPhier watchdog driver Keiji Hayashibara <hayashibara.keiji@socionext.com> - 2017-06-06 11:20 +0200

csiph-web