Re: [PATCH v1 01/10] imx: Add helper to get watchdog base address from DT alias

Peng Fan
2026-03-12T12:48:00Z

On Tue, Mar 10, 2026 at 03:53:35PM +0800, alice.guo@oss.nxp.com wrote:
>From: Alice Guo <alice.guo@nxp.com>
>
>Add imx_wdog_alias_to_addr() to get watchdog register base address from
>device tree aliases. This function is used by mx7ulp, imx8ulp and imx9
>SoCs to locate watchdog hardware.
>
>The function supports:
>- Matching specific alias (e.g., "wdog0") or any "wdog*" if name is
> NULL.
>- Optional device tree status check via check_status parameter.

I not see wdog alias is used by anyone.

Is it feasible to iterate the dtb by searching all the wdog nodes?
I think it should be fine to iterate all the wdog nodes and configure them
as disabled, no need to check which is wdog1 or wdog2.

How do you think?

Regards
Peng