[PATCH v4 7/8] watchdog: ulp_wdog: Use driver model for reset_cpu()
Peng Fan
peng.fan at oss.nxp.com
Mon May 25 08:13:47 CEST 2026
On Tue, May 19, 2026 at 02:22:07PM +0800, alice.guo at oss.nxp.com wrote:
>From: Alice Guo <alice.guo at nxp.com>
>
>Replace hardcoded WDOG_BASE_ADDR with driver model based dynamic address
>lookup from device tree, allowing reset_cpu() to dynamically locate
>watchdog devices from device tree.
>
>This change also enables CONFIG_WDT for relevant boards and ensures the
>watchdog nodes are available for driver model usage.
>
>- Remove hardcoded WDOG_BASE_ADDR from hw_watchdog_* functions
>- Reimplement reset_cpu() using UCLASS_WDT device iteration
>- Add ulp_wdt_expire_now() callback for standard WDT interface
>- Pass wdog register pointer to hw_watchdog_set_timeout()
>- Enable CONFIG_WDT for boards using ULP watchdog
>- Remove wdog3 status = "disabled" overrides from U-Boot device tree
> overlays, as the watchdog device needs to be accessible for driver
> model based reset functionality.
>
>Signed-off-by: Alice Guo <alice.guo at nxp.com>
>Acked-by: Francesco Dolcini <francesco.dolcini at toradex.com> # Toradex boards
Reviewed-by: Peng Fan <peng.fan at nxp.com>
More information about the U-Boot
mailing list