File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 566566 status = "disabled";
567567 };
568568
569+ wdt: wdt@12480000 {
570+ compatible = "starfive,si5-wdt";
571+ reg = <0x0 0x12480000 0x0 0x10000>;
572+ interrupts = <80>;
573+ clocks = <&clkgen JH7100_CLK_WDT_CORE>,
574+ <&clkgen JH7100_CLK_WDTIMER_APB>;
575+ clock-names = "wdt_coreclk", "wdtimer_apb";
576+ clock-frequency = <50000000>;
577+ resets = <&rstgen JH7100_RSTN_WDTIMER_APB>,
578+ <&rstgen JH7100_RSTN_WDT>;
579+ reset-names = "wdtimer_apb", "wdt";
580+ status = "okay";
581+ };
582+
569583 ptc: pwm@12490000 {
570584 compatible = "starfive,pwm0";
571585 reg = <0x0 0x12490000 0x0 0x10000>;
Original file line number Diff line number Diff line change @@ -132,6 +132,8 @@ CONFIG_THERMAL_NETLINK=y
132132CONFIG_THERMAL_STATISTICS=y
133133CONFIG_THERMAL_WRITABLE_TRIPS=y
134134CONFIG_CPU_THERMAL=y
135+ CONFIG_WATCHDOG=y
136+ CONFIG_STARFIVE_WATCHDOG=y
135137CONFIG_MFD_TPS65086=y
136138CONFIG_DRM=y
137139CONFIG_DRM_I2C_NXP_TDA998X=y
Original file line number Diff line number Diff line change @@ -2008,6 +2008,15 @@ config UML_WATCHDOG
20082008 tristate "UML watchdog"
20092009 depends on UML || COMPILE_TEST
20102010
2011+ # RISCV Architecture
2012+
2013+ config STARFIVE_WATCHDOG
2014+ tristate "StarFive Watchdog support"
2015+ depends on RISCV
2016+ select WATCHDOG_CORE
2017+ help
2018+ Say Y here to support the starfive Si5 watchdog.
2019+
20112020#
20122021# ISA-based Watchdog Cards
20132022#
Original file line number Diff line number Diff line change @@ -203,6 +203,9 @@ obj-$(CONFIG_WATCHDOG_SUN4V) += sun4v_wdt.o
203203# Xen
204204obj-$(CONFIG_XEN_WDT) += xen_wdt.o
205205
206+ # RISCV Architecture
207+ obj-$(CONFIG_STARFIVE_WATCHDOG) += starfive-wdt.o
208+
206209# Architecture Independent
207210obj-$(CONFIG_BD957XMUF_WATCHDOG) += bd9576_wdt.o
208211obj-$(CONFIG_DA9052_WATCHDOG) += da9052_wdt.o
You can’t perform that action at this time.
0 commit comments