All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Wadim Mueller" <wafgo01@gmail.com>
Cc: devicetree@vger.kernel.org, mfd@lists.linux.dev, robh@kernel.org,
	conor+dt@kernel.org, lee@kernel.org
Subject: Re: [RFC PATCH 4/6] ARM: dts: broadcom: bcm47622: Add TWD, reboot, MDIO and SYSTEMPORT0
Date: Fri, 04 Dec 2026 15:34:03 +0000	[thread overview]
Message-ID: <sashiko-outbox-250116@kernel.org> (raw)
In-Reply-To: <20261204151052.393800-5-wafgo01@gmail.com>

Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] ARM: dts: broadcom: syscon-reboot preempts PSCI SYSTEM_RESET
  on BCM47622
- [Low] ARM: dts: broadcom: reboot node uses deprecated regmap and
  mask-only binding
- [Low] ARM: dts: broadcom: new MMIO nodes in bcm47622.dtsi are out of
  address order
--

commit cc124c019bb2c11aee1d1029a52feed835ca0757
Author: Wadim Mueller <wafgo01@gmail.com>

ARM: dts: broadcom: bcm47622: Add TWD, reboot, MDIO and SYSTEMPORT0

This commit adds the timer/watchdog MFD node, a syscon-reboot node, the
MDIO controller, and the first SYSTEMPORT ethernet controller to
bcm47622.dtsi.

> diff --git a/arch/arm/boot/dts/broadcom/bcm47622.dtsi b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
> index 485863f9c4203..e1d20799b3da4 100644
> --- a/arch/arm/boot/dts/broadcom/bcm47622.dtsi
> +++ b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
> @@ -152,6 +152,19 @@ nandcs: nand@0 {
>  			};
>  		};
>  
> +		twd: timer-mfd@400 {
> +			compatible = "brcm,bcm47622-twd", "simple-mfd", "syscon";
> +			reg = <0x400 0x100>;
> +			ranges = <0x0 0x400 0x100>;
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +
> +			watchdog@80 {
> +				compatible = "brcm,bcm6345-wdt";
> +				reg = <0x80 0xc>;
> +			};
> +		};
> +
>  		uart0: serial@12000 {
>  			compatible = "arm,pl011", "arm,primecell";
>  			reg = <0x12000 0x1000>;
> @@ -161,4 +174,28 @@ uart0: serial@12000 {
>  			status = "disabled";
>  		};
>  	};
> +
> +	reboot {
> +		compatible = "syscon-reboot";
> +		regmap = <&twd>;
> +		offset = <0x8c>;
> +		mask = <0x1>;
> +	};

[Severity: Medium]
Does this unconditionally enabled reboot node preempt PSCI reset on
PSCI-booted boards like bcm947622.dts?

bcm47622.dtsi declares a psci node, and psci_sys_reset_nb registers its
restart handler at priority 129.  Because this reboot node omits the
priority property, syscon_reboot_probe() defaults it to 192, so
syscon_restart_handle() runs before psci_sys_reset().

On PSCI systems this bypasses firmware reset coordination and writes
directly to the TWD soft-reset register from Non-Secure mode, which skips
ATF teardown and may fault or stall if secure firmware restricts access.
Setting priority = <128> (or marking the node status = "disabled" in
bcm47622.dtsi for non-PSCI boards to enable) would preserve PSCI reset
precedence.

[Severity: Low]
Can this reboot node be moved under the twd node instead of using the
deprecated regmap phandle?

Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml marks
regmap as deprecated in favor of placing syscon-reboot as a child of the
syscon/simple-mfd parent (after allowing a reboot child in
brcm,twd.yaml).

Also, specifying mask = <0x1> without value triggers the legacy binding
fallback in syscon_reboot_probe(), which sets mask to 0xFFFFFFFF and
overwrites all 32 bits at offset 0x8c instead of only bit 0; adding
value = <0x1> preserves the other bits in that register.

> +
> +	sysport0: ethernet@80400000 {
> +		compatible = "brcm,bcm47622-systemport";
> +		reg = <0x80400000 0x10000>;
> +		interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
> +			     <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
> +		interrupt-names = "rx", "tx";
> +		status = "disabled";
> +	};
> +
> +	mdio: mdio@80411300 {
> +		compatible = "brcm,unimac-mdio";
> +		reg = <0x80411300 0x10>;
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		status = "disabled";
> +	};
>  };

[Severity: Low]
This isn't a bug, but the new unit-addressed nodes are out of ascending
address order per Documentation/devicetree/bindings/dts-coding-style.rst.

Inside bus@ff800000, twd: timer-mfd@400 sits after nand-controller@1800
instead of before spi@1000.  At the root node, sysport0: ethernet@80400000
and mdio: mdio@80411300 are placed after bus@ff800000 instead of before
axi@81000000.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204151052.393800-1-wafgo01@gmail.com?part=4

  reply	other threads:[~2026-12-04 15:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 15:10 [RFC PATCH 0/6] ARM: bcmbca: Add BCM47622 SMP and ASUS RT-AX56U Wadim Mueller
2026-12-04 15:10 ` [RFC PATCH 1/6] dt-bindings: arm: cpus: Add brcm,bca-smp enable-method Wadim Mueller
2026-12-04 15:10 ` [RFC PATCH 2/6] ARM: bcm: " Wadim Mueller
2026-12-04 15:34   ` sashiko-bot
2026-12-04 17:29   ` William Zhang
2026-12-04 15:10 ` [RFC PATCH 3/6] dt-bindings: mfd: brcm,twd: Add BCM47622 Wadim Mueller
2026-12-04 15:23   ` sashiko-bot
2026-12-04 15:10 ` [RFC PATCH 4/6] ARM: dts: broadcom: bcm47622: Add TWD, reboot, MDIO and SYSTEMPORT0 Wadim Mueller
2026-12-04 15:34   ` sashiko-bot [this message]
2026-12-04 17:45   ` Florian Fainelli
2026-12-04 15:10 ` [RFC PATCH 5/6] dt-bindings: arm: bcmbca: Add ASUS RT-AX56U Wadim Mueller
2026-12-04 15:17   ` sashiko-bot
2026-12-04 15:10 ` [RFC PATCH 6/6] ARM: dts: broadcom: " Wadim Mueller
2026-12-04 15:25   ` sashiko-bot
2026-12-04 18:01   ` Florian Fainelli

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=sashiko-outbox-250116@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lee@kernel.org \
    --cc=mfd@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wafgo01@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.