From dbd1da973be21dd261ad1befc58557683ff229db Mon Sep 17 00:00:00 2001 From: Emilio Benavente Date: Tue, 26 Mar 2024 12:49:52 -0500 Subject: [PATCH] dts: arm: nxp: nxp_mcxn94x: Added watchdog node Added the dts node for the wdt watchdog and updated the clock frequency. Signed-off-by: Emilio Benavente --- drivers/watchdog/wdt_mcux_wwdt.c | 3 ++- dts/arm/nxp/nxp_mcxn94x_common.dtsi | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/wdt_mcux_wwdt.c b/drivers/watchdog/wdt_mcux_wwdt.c index 55faafed874..cd24b1dc3e4 100644 --- a/drivers/watchdog/wdt_mcux_wwdt.c +++ b/drivers/watchdog/wdt_mcux_wwdt.c @@ -82,7 +82,8 @@ static int mcux_wwdt_install_timeout(const struct device *dev, return -ENOMEM; } -#if defined(CONFIG_SOC_MIMXRT685S_CM33) || defined(CONFIG_SOC_MIMXRT595S_CM33) +#if defined(CONFIG_SOC_MIMXRT685S_CM33) || defined(CONFIG_SOC_MIMXRT595S_CM33) \ + || defined(CONFIG_SOC_SERIES_MCXNX4X) clock_freq = CLOCK_GetWdtClkFreq(0); #elif defined(CONFIG_SOC_SERIES_RW6XX) clock_freq = CLOCK_GetWdtClkFreq(); diff --git a/dts/arm/nxp/nxp_mcxn94x_common.dtsi b/dts/arm/nxp/nxp_mcxn94x_common.dtsi index 22ca3ffd928..ba9546bd961 100644 --- a/dts/arm/nxp/nxp_mcxn94x_common.dtsi +++ b/dts/arm/nxp/nxp_mcxn94x_common.dtsi @@ -609,6 +609,15 @@ status = "disabled"; }; }; + + wwdt0: watchdog@16000 { + compatible = "nxp,lpc-wwdt"; + reg = <0x16000 0x1000>; + interrupts = <152 0>; + status = "disabled"; + clk-divider = <1>; + }; + }; &systick {