From 7611598846b7664b4e9c4d9ed24f43beb949f1d6 Mon Sep 17 00:00:00 2001 From: Sunil Hegde Date: Wed, 18 Mar 2026 12:36:30 +0530 Subject: [PATCH] UPSTREAM: drivers: watchdog: wdt_ti_rtc: Configure reset or NMI... commit c4a791d7125780fdbe309905f44434ab01b7fe3c upstream. If DT has IRQ defined, the board supports NMI mode, if reset-capable property is set then the board can support reset as well. Based on these DT properties and the flags passed by the application, NMI mode or Reset mode can be set. Signed-off-by: Sunil Hegde --- drivers/watchdog/wdt_ti_rti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/wdt_ti_rti.c b/drivers/watchdog/wdt_ti_rti.c index 51f3f53b2975..145712e4578e 100644 --- a/drivers/watchdog/wdt_ti_rti.c +++ b/drivers/watchdog/wdt_ti_rti.c @@ -228,7 +228,7 @@ static DEVICE_API(wdt, wdt_ti_rti_api) = { { \ IF_ENABLED(DT_INST_IRQ_HAS_IDX(i, 0), ( \ IRQ_CONNECT(DT_INST_IRQN(i), DT_INST_IRQ(i, priority), wdt_ti_rti_isr, \ - DEVICE_DT_INST_GET(i), 0); \ + DEVICE_DT_INST_GET(i), DT_INST_IRQ(i, flags)); \ irq_enable(DT_INST_IRQN(i)); \ )); \ }; \