Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: alice.guo@oss.nxp.com
Cc: imx@lists.linux.dev, Frank.Li@kernel.org
Subject: Re: [PATCH v1] arm: dts: imx: Add watchdog support for early boot stages
Date: Wed, 13 May 2026 03:09:19 +0000	[thread overview]
Message-ID: <20260513030920.27DBFC2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260512024850.904551-1-alice.guo@oss.nxp.com>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] Hardware IRQ conflict: wdog4 and ddr-pmu share the same interrupt in imx94.dtsi.
- [Medium] Missing bootph-all property on the newly added wdog2 node in imx7ulp.dtsi.
- [Medium] Undocumented addition of multiple new watchdog hardware nodes.
--

commit 566f5af2df66e555eb4881057449fc8955a46103
Author: Alice Guo <alice.guo@nxp.com>

arm: dts: imx: Add watchdog support for early boot stages

This commit adds the bootph-all property to watchdog nodes across several
i.MX device trees to make them available during U-Boot's early boot phases.
It also introduces several new watchdog nodes to the device trees.

> diff --git a/arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi b/arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi
> index 880b9a4f32b08..5e3e562225e58 100644
> --- a/arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi
> +++ b/arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi
> @@ -297,6 +297,17 @@ smc1: clock-controller@40410000 {
>  			clock-names = "divcore", "hsrun_divcore";
>  		};
>  
> +		wdog2: watchdog@40430000 {
> +			compatible = "fsl,imx7ulp-wdt";
> +			reg = <0x40430000 0x10000>;
> +			interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&pcc2 IMX7ULP_CLK_WDG2>;
> +			assigned-clocks = <&pcc2 IMX7ULP_CLK_WDG2>;
> +			assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>;
> +			timeout-sec = <40>;
> +			status = "disabled";
> +		};

Was the bootph-all property intentionally omitted from this node?

The commit message explicitly states the purpose of the patch is to add
the bootph-all property to watchdog nodes, but it appears to be missing
from this newly added wdog2 node.

Additionally, is adding completely new hardware nodes expected within
this patch?

The commit message notes that the patch adds the bootph-all property
to watchdog nodes, but the diff reveals the patch actually introduces
entirely new watchdog nodes (such as wdog2 in imx7ulp.dtsi, and wdog4
in imx94.dtsi, imx95.dtsi, and imx952.dtsi).

Should the commit message be updated to explicitly document the
addition of these new hardware nodes, or should these additions be split
into a separate preparatory patch?

[ ... ]

> diff --git a/arch/arm64/boot/dts/freescale/imx94.dtsi b/arch/arm64/boot/dts/freescale/imx94.dtsi
> index d2f31c8caf6eb..be366af8ac912 100644
> --- a/arch/arm64/boot/dts/freescale/imx94.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx94.dtsi
> @@ -1220,6 +1220,18 @@ wdog3: watchdog@49220000 {
>  				timeout-sec = <40>;
>  				fsl,ext-reset-output;
>  				status = "disabled";
> +				bootph-all;
> +			};
> +
> +			wdog4: watchdog@49230000 {
> +				compatible = "fsl,imx94-wdt", "fsl,imx93-wdt";
> +				reg = <0x49230000 0x10000>;
> +				interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;

Could this interrupt assignment conflict with existing hardware?

Looking at the same imx94.dtsi file, GIC_SPI 91 is already assigned to the
ddr-pmu node:

		ddr-pmu@4e090dc0 {
			compatible = "fsl,imx94-ddr-pmu", "fsl,imx93-ddr-pmu";
			reg = <0x0 0x4e090dc0 0x0 0x200>;
			interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
		};

Sharing a GIC SPI interrupt between independent hardware blocks like a
watchdog and a PMU is an unusual hardware description unless they are
explicitly designed to share IRQ handling.

Does this need to be updated to the correct hardware interrupt to prevent
issues if the watchdog driver is updated to request this IRQ?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260512024850.904551-1-alice.guo@oss.nxp.com?part=1

      parent reply	other threads:[~2026-05-13  3:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-12  2:48 [PATCH v1] arm: dts: imx: Add watchdog support for early boot stages alice.guo
2026-05-12  3:01 ` Fabio Estevam
2026-05-13  3:09 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260513030920.27DBFC2BCB0@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=alice.guo@oss.nxp.com \
    --cc=imx@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox