Skip to content

Commit db728ea

Browse files
SFxingyuwuWim Van Sebroeck
authored andcommitted
drivers: watchdog: Add StarFive Watchdog driver
Add watchdog driver for the StarFive JH7100 and JH7110 SoC. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com> Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20230314132437.121534-3-xingyu.wu@starfivetech.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent b24e265 commit db728ea

File tree

4 files changed

+627
-0
lines changed

4 files changed

+627
-0
lines changed

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19951,6 +19951,13 @@ S: Supported
1995119951
F: Documentation/devicetree/bindings/rng/starfive*
1995219952
F: drivers/char/hw_random/jh7110-trng.c
1995319953

19954+
STARFIVE WATCHDOG DRIVER
19955+
M: Xingyu Wu <xingyu.wu@starfivetech.com>
19956+
M: Samin Guo <samin.guo@starfivetech.com>
19957+
S: Supported
19958+
F: Documentation/devicetree/bindings/watchdog/starfive*
19959+
F: drivers/watchdog/starfive-wdt.c
19960+
1995419961
STATIC BRANCH/CALL
1995519962
M: Peter Zijlstra <peterz@infradead.org>
1995619963
M: Josh Poimboeuf <jpoimboe@kernel.org>

drivers/watchdog/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,6 +1999,17 @@ config WATCHDOG_RTAS
19991999
To compile this driver as a module, choose M here. The module
20002000
will be called wdrtas.
20012001

2002+
# RISC-V Architecture
2003+
2004+
config STARFIVE_WATCHDOG
2005+
tristate "StarFive Watchdog support"
2006+
depends on ARCH_STARFIVE || COMPILE_TEST
2007+
select WATCHDOG_CORE
2008+
default ARCH_STARFIVE
2009+
help
2010+
Say Y here to support the watchdog of StarFive JH7100 and JH7110
2011+
SoC. This driver can also be built as a module if choose M.
2012+
20022013
# S390 Architecture
20032014

20042015
config DIAG288_WATCHDOG

drivers/watchdog/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ obj-$(CONFIG_MEN_A21_WDT) += mena21_wdt.o
192192
obj-$(CONFIG_PSERIES_WDT) += pseries-wdt.o
193193
obj-$(CONFIG_WATCHDOG_RTAS) += wdrtas.o
194194

195+
# RISC-V Architecture
196+
obj-$(CONFIG_STARFIVE_WATCHDOG) += starfive-wdt.o
197+
195198
# S390 Architecture
196199
obj-$(CONFIG_DIAG288_WATCHDOG) += diag288_wdt.o
197200

0 commit comments

Comments
 (0)