watchdog: add MT7621 watchdog support
Subsystems (4)
PATCH v2 1/1 watchdog: add MT7621 watchdog support
This patch adds support for the watchdog core found on newer mediatek/ralink Wifi SoCs.
Signed-off-by John Crispin <[email protected]>
---
Changes since V1
* fix the comments identifying the driver
* add a comment to the code setting the prescaler
* use watchdog_init_timeout
* use devm_reset_control_get
* get rid of the miscdev code
.../devicetree/bindings/watchdog/mt7621-wdt.txt | 12 ++ drivers/watchdog/Kconfig | 7 + drivers/watchdog/Makefile | 1 + drivers/watchdog/mt7621_wdt.c | 186 ++++++++++++++++++++ 4 files changed, 206 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/mt7621-wdt.txt create mode 100644 drivers/watchdog/mt7621_wdt.c
Documentation/devicetree/bindings/watchdog/mt7621-wdt.txt new file +12 -0
@@ -0,0 +1,12 @@ +Ralink Watchdog Timers + +Required properties: +- compatible: must be "mediatek,mt7621-wdt" +- reg: physical base address of the controller and length of the register range + +Example: + + watchdog@100 { + compatible = "mediatek,mt7621-wdt"; + reg = <0x100 0x10>; + };
drivers/watchdog/Kconfig +7 -0
@@ -1186,6 +1186,13 @@ config RALINK_WDT help Hardware driver for the Ralink SoC Watchdog Timer. +config MT7621_WDT + tristate "Mediatek SoC watchdog" + select WATCHDOG_CORE + depends on SOC_MT7620 || SOC_MT7621 + help + Hardware driver for the Mediatek/Ralink SoC Watchdog Timer. + # PARISC Architecture # POWERPC Architecture
drivers/watchdog/Makefile +1 -0
@@ -138,6 +138,7 @@ obj-$(CONFIG_OCTEON_WDT) += octeon-wdt.o octeon-wdt-y := octeon-wdt-main.o octeon-wdt-nmi.o obj-$(CONFIG_LANTIQ_WDT) += lantiq_wdt.o obj-$(CONFIG_RALINK_WDT) += rt2880_wdt.o +obj-$(CONFIG_MT7621_WDT) += mt7621_wdt.o # PARISC Architecture
drivers/watchdog/mt7621_wdt.c new file +186 -0
186 lines not on this page · raw message
Signature · 1 line
1.7.10.4