Devicetree
 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 6/6] ARM: dts: broadcom: Add ASUS RT-AX56U
Date: Fri, 04 Dec 2026 15:25:55 +0000	[thread overview]
Message-ID: <sashiko-outbox-250098@kernel.org> (raw)
In-Reply-To: <20261204151052.393800-7-wafgo01@gmail.com>

Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] ARM: dts: broadcom: hardcoded unit MAC address in RT-AX56U
  sysport0
- [Medium] ARM: bcm: platsmp-bcmbca built without CONFIG_SMP guard
- [Low] ARM: dts: broadcom: out-of-order bcm6755-asus-rt-ax56u.dtb in
  Makefile
--

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

ARM: dts: broadcom: Add ASUS RT-AX56U

This commit adds the devicetree for the ASUS RT-AX56U (BCM6755) router,
enabling serial, secondary CPUs via brcm,bca-smp, the WAN port on
sysport0, and read-only NAND partitions.

> diff --git a/arch/arm/boot/dts/broadcom/Makefile b/arch/arm/boot/dts/broadcom/Makefile
> index 2552e11b5e312..c41ea0b501525 100644
> --- a/arch/arm/boot/dts/broadcom/Makefile
> +++ b/arch/arm/boot/dts/broadcom/Makefile
> @@ -40,6 +40,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += \
>  dtb-$(CONFIG_ARCH_BCMBCA) += \
>  	bcm6846-genexis-xg6846b.dtb \
>  	bcm947622.dtb \
> +	bcm6755-asus-rt-ax56u.dtb \
>  	bcm963138.dtb \
>  	bcm963138dvt.dtb \
>  	bcm963148.dtb \

[Severity: Low]
Should bcm6755-asus-rt-ax56u.dtb be placed before
bcm6846-genexis-xg6846b.dtb to keep dtb-$(CONFIG_ARCH_BCMBCA) sorted
alphabetically?

> diff --git a/arch/arm/boot/dts/broadcom/bcm6755-asus-rt-ax56u.dts b/arch/arm/boot/dts/broadcom/bcm6755-asus-rt-ax56u.dts
> new file mode 100644
> index 0000000000000..999270e941778
> --- /dev/null
> +++ b/arch/arm/boot/dts/broadcom/bcm6755-asus-rt-ax56u.dts

[ ... ]

> +&CA7_1 {
> +	enable-method = "brcm,bca-smp";
> +};

[Severity: Medium]
Does the brcm,bca-smp support added earlier in this series in commit
"ARM: bcm: Add brcm,bca-smp enable-method" break uniprocessor builds
when CONFIG_ARCH_BCMBCA_CORTEXA7=y and CONFIG_SMP=n?

Neither ARCH_BCMBCA nor ARCH_BCMBCA_CORTEXA7 depends on or selects SMP,
and arch/arm/mach-bcm/Makefile builds platsmp-bcmbca.o and
headsmp-bcmbca.o unconditionally under CONFIG_ARCH_BCMBCA_CORTEXA7:

arch/arm/mach-bcm/Makefile:
	obj-$(CONFIG_SMP)		+= bcm63xx_smp.o bcm63xx_pmb.o
	obj-$(CONFIG_ARCH_BCMBCA_CORTEXA7)	+= platsmp-bcmbca.o headsmp-bcmbca.o

With CONFIG_SMP=n, platsmp-bcmbca.c fails to compile without
struct smp_operations and CPU_METHOD_OF_DECLARE, and headsmp-bcmbca.S
fails to link against secondary_startup.  Gating these objects on both
CONFIG_ARCH_BCMBCA_CORTEXA7 and CONFIG_SMP avoids the build failure.

[ ... ]

> +/* WAN, internal GPHY */
> +&sysport0 {
> +	phy-handle = <&wan_phy>;
> +	phy-mode = "internal";
> +	local-mac-address = [7c 10 c9 e2 3a b0];
> +	status = "okay";
> +};

[Severity: Medium]
Should local-mac-address be removed from sysport0 instead of hardcoding
a single unit's factory MAC address?

7c:10:c9:e2:3a:b0 is a globally unique unicast address, so every
RT-AX56U booting this DTB will use the same WAN MAC address, causing
L2 collisions when two units share a segment.  of_get_mac_address()
accepts it directly, bypassing bcmbca_sysport_probe()'s random fallback.

Dropping local-mac-address lets bcmbca_sysport_probe() fall back to
eth_hw_addr_random(), or an nvmem-cells reference can read the
per-board address from flash.

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

  reply	other threads:[~2026-12-04 15:25 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
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 [this message]
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-250098@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox