* [RFC PATCH 1/6] dt-bindings: arm: cpus: Add brcm,bca-smp enable-method
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 ` Wadim Mueller
2026-12-04 15:10 ` [RFC PATCH 2/6] ARM: bcm: " Wadim Mueller
` (4 subsequent siblings)
5 siblings, 0 replies; 15+ messages in thread
From: Wadim Mueller @ 2026-12-04 15:10 UTC (permalink / raw)
To: linux-arm-kernel, Florian Fainelli, William Zhang, Anand Gore,
Kursad Oney, Rafał Miłecki
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones,
Ray Jui, Scott Branden, Russell King, Lorenzo Pieralisi,
bcm-kernel-feedback-list, devicetree, mfd, linux-kernel,
Wadim Mueller
CFE on BCMBCA Cortex-A7 SoCs (e.g. BCM47622) has no PSCI. Add the
enable-method used by the Broadcom device trees for these SoCs.
Signed-off-by: Wadim Mueller <wafgo01@gmail.com>
---
Documentation/devicetree/bindings/arm/cpus.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml
index 96136b70d..53cea935e 100644
--- a/Documentation/devicetree/bindings/arm/cpus.yaml
+++ b/Documentation/devicetree/bindings/arm/cpus.yaml
@@ -263,6 +263,7 @@ properties:
- amlogic,meson8b-smp
- arm,realview-smp
- aspeed,ast2600-smp
+ - brcm,bca-smp
- brcm,bcm11351-cpu-method
- brcm,bcm23550
- brcm,bcm2836-smp
--
2.56.1
^ permalink raw reply related [flat|nested] 15+ messages in thread* [RFC PATCH 2/6] ARM: bcm: Add brcm,bca-smp enable-method
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 ` 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
` (3 subsequent siblings)
5 siblings, 2 replies; 15+ messages in thread
From: Wadim Mueller @ 2026-12-04 15:10 UTC (permalink / raw)
To: linux-arm-kernel, Florian Fainelli, William Zhang, Anand Gore,
Kursad Oney, Rafał Miłecki
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones,
Ray Jui, Scott Branden, Russell King, Lorenzo Pieralisi,
bcm-kernel-feedback-list, devicetree, mfd, linux-kernel,
Wadim Mueller
CFE without secure firmware does not provide PSCI. It keeps the
secondary cores in WFI and on wakeup they jump to the address in the
GPIO GeneralPurpose register (0xff800568).
All cores wake up together, so use a holding pen like mach-versatile.
Tested on BCM6755 (ASUS RT-AX56U).
Signed-off-by: Wadim Mueller <wafgo01@gmail.com>
---
arch/arm/mach-bcm/Makefile | 1 +
arch/arm/mach-bcm/headsmp-bcmbca.S | 36 ++++++++++++++
arch/arm/mach-bcm/platsmp-bcmbca.c | 79 ++++++++++++++++++++++++++++++
3 files changed, 116 insertions(+)
create mode 100644 arch/arm/mach-bcm/headsmp-bcmbca.S
create mode 100644 arch/arm/mach-bcm/platsmp-bcmbca.c
diff --git a/arch/arm/mach-bcm/Makefile b/arch/arm/mach-bcm/Makefile
index 6baedf4c6..d13011a8d 100644
--- a/arch/arm/mach-bcm/Makefile
+++ b/arch/arm/mach-bcm/Makefile
@@ -60,4 +60,5 @@ endif
ifeq ($(CONFIG_ARCH_BCMBCA),y)
obj-$(CONFIG_DEBUG_BCMBCA) += board_bcmbca.o
obj-$(CONFIG_SMP) += bcm63xx_smp.o bcm63xx_pmb.o
+obj-$(CONFIG_ARCH_BCMBCA_CORTEXA7) += platsmp-bcmbca.o headsmp-bcmbca.o
endif
diff --git a/arch/arm/mach-bcm/headsmp-bcmbca.S b/arch/arm/mach-bcm/headsmp-bcmbca.S
new file mode 100644
index 000000000..9e7d462e8
--- /dev/null
+++ b/arch/arm/mach-bcm/headsmp-bcmbca.S
@@ -0,0 +1,36 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (c) 2003 ARM Limited (holding pen from mach-versatile)
+ * All Rights Reserved
+ */
+#include <linux/linkage.h>
+#include <linux/init.h>
+#include <asm/assembler.h>
+
+/*
+ * Entry point for secondary CPUs on BCMBCA (CFE, no PSCI).
+ * This provides a "holding pen" into which all secondary cores are held
+ * until we're ready for them to initialise.
+ */
+ENTRY(bca_secondary_startup)
+ ARM_BE8(setend be)
+ mrc p15, 0, r0, c0, c0, 5
+ bic r0, #0xff000000
+ adr r4, 1f
+ ldmia r4, {r5, r6}
+ sub r4, r4, r5
+ add r6, r6, r4
+pen: ldr r7, [r6]
+ cmp r7, r0
+ bne pen
+
+ /*
+ * we've been released from the holding pen: secondary_stack
+ * should now contain the SVC stack for this core
+ */
+ b secondary_startup
+
+ .align
+1: .long .
+ .long bca_cpu_release
+ENDPROC(bca_secondary_startup)
diff --git a/arch/arm/mach-bcm/platsmp-bcmbca.c b/arch/arm/mach-bcm/platsmp-bcmbca.c
new file mode 100644
index 000000000..e888a2a37
--- /dev/null
+++ b/arch/arm/mach-bcm/platsmp-bcmbca.c
@@ -0,0 +1,79 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * SMP for BCMBCA Cortex-A7 SoCs booted by CFE without PSCI.
+ *
+ * CFE keeps the secondary cores in WFI. On wakeup all of them jump to the
+ * address in GPIO GeneralPurpose register, so we hold them in a pen.
+ */
+
+#include <linux/cacheflush.h>
+#include <linux/delay.h>
+#include <linux/init.h>
+#include <linux/io.h>
+#include <linux/jiffies.h>
+#include <linux/smp.h>
+
+#include <asm/smp_plat.h>
+
+#define BCA_SMP_BOOT_ADDR 0xff800568 /* GPIO->GeneralPurpose */
+
+asmlinkage void bca_secondary_startup(void);
+int bca_cpu_release = -1;
+static DEFINE_RAW_SPINLOCK(bca_lock);
+
+/* pen runs with caches off */
+static void bca_write_cpu_release(int val)
+{
+ WRITE_ONCE(bca_cpu_release, val);
+ smp_wmb(); /* before cache clean */
+ sync_cache_w(&bca_cpu_release);
+}
+
+static void bca_secondary_init(unsigned int cpu)
+{
+ bca_write_cpu_release(-1);
+
+ raw_spin_lock(&bca_lock);
+ raw_spin_unlock(&bca_lock);
+}
+
+static int bca_boot_secondary(unsigned int cpu, struct task_struct *idle)
+{
+ unsigned long timeout;
+ int released;
+
+ raw_spin_lock(&bca_lock);
+
+ bca_write_cpu_release(cpu_logical_map(cpu));
+ arch_send_wakeup_ipi_mask(cpumask_of(cpu));
+
+ timeout = jiffies + HZ;
+ do {
+ smp_rmb(); /* pairs with bca_write_cpu_release() */
+ released = READ_ONCE(bca_cpu_release) == -1;
+ if (released)
+ break;
+ udelay(10);
+ } while (time_before(jiffies, timeout));
+
+ raw_spin_unlock(&bca_lock);
+
+ return released ? 0 : -ETIMEDOUT;
+}
+
+static void __init bca_smp_prepare_cpus(unsigned int max_cpus)
+{
+ void __iomem *reg = ioremap(BCA_SMP_BOOT_ADDR, 4);
+
+ if (WARN_ON(!reg))
+ return;
+ writel(__pa_symbol(bca_secondary_startup), reg);
+ iounmap(reg);
+}
+
+static const struct smp_operations bca_smp_ops __initconst = {
+ .smp_prepare_cpus = bca_smp_prepare_cpus,
+ .smp_secondary_init = bca_secondary_init,
+ .smp_boot_secondary = bca_boot_secondary,
+};
+CPU_METHOD_OF_DECLARE(bca_smp, "brcm,bca-smp", &bca_smp_ops);
--
2.56.1
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [RFC PATCH 2/6] ARM: bcm: Add brcm,bca-smp enable-method
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
1 sibling, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-12-04 15:34 UTC (permalink / raw)
To: Wadim Mueller; +Cc: devicetree, mfd, robh, conor+dt, lee
Thank you for your contribution! Sashiko AI review found 7 potential
issues to consider:
- [Medium] ARM: bcm: build failure when CONFIG_ARCH_BCMBCA_CORTEXA7=y
and CONFIG_SMP=n
- [Medium] ARM: bcm: bca_boot_secondary() leaves bca_cpu_release armed
on timeout
- [Medium] ARM: bcm: bca_boot_secondary() misses completion after final
udelay()
- [Medium] ARM: bcm: bca_smp_prepare_cpus() leaves CPUs present on
ioremap fail
- [Medium] ARM: bcm: bca_secondary_startup() holding pen spins uncached
without wfe/sev
- [Medium] ARM: bcm: hardcoded MMIO boot address in
bca_smp_prepare_cpus()
- [Low] ARM: bcm: bca_secondary_startup() holding pen spins without wfe
--
commit 6b1b8619c251291715fdb7b77a729a116d971e38
Author: Wadim Mueller <wafgo01@gmail.com>
ARM: bcm: Add brcm,bca-smp enable-method
This commit adds SMP bring-up support for BCMBCA Cortex-A7 SoCs booted
by CFE without PSCI, using a holding pen in assembly and a hardcoded
GPIO GeneralPurpose register for the secondary entry address.
> diff --git a/arch/arm/mach-bcm/Makefile b/arch/arm/mach-bcm/Makefile
> index 6baedf4c63041..d13011a8d5f19 100644
> --- a/arch/arm/mach-bcm/Makefile
> +++ b/arch/arm/mach-bcm/Makefile
> @@ -60,4 +60,5 @@ endif
> ifeq ($(CONFIG_ARCH_BCMBCA),y)
> obj-$(CONFIG_DEBUG_BCMBCA) += board_bcmbca.o
> obj-$(CONFIG_SMP) += bcm63xx_smp.o bcm63xx_pmb.o
> +obj-$(CONFIG_ARCH_BCMBCA_CORTEXA7) += platsmp-bcmbca.o headsmp-bcmbca.o
> endif
[Severity: Medium]
Does this break uniprocessor builds when CONFIG_ARCH_BCMBCA_CORTEXA7 is
enabled and CONFIG_SMP is disabled?
Neither ARCH_BCMBCA nor ARCH_BCMBCA_CORTEXA7 selects or depends on SMP.
With CONFIG_SMP=n, include/linux/smp.h does not include asm/smp.h, so
platsmp-bcmbca.c fails to compile, and secondary_startup in
arch/arm/kernel/head.S is not built, leaving an undefined reference from
headsmp-bcmbca.S. These objects should also be gated on CONFIG_SMP.
> diff --git a/arch/arm/mach-bcm/headsmp-bcmbca.S b/arch/arm/mach-bcm/headsmp-bcmbca.S
> new file mode 100644
> index 0000000000000..9e7d462e857b1
> --- /dev/null
> +++ b/arch/arm/mach-bcm/headsmp-bcmbca.S
[ ... ]
> +pen: ldr r7, [r6]
> + cmp r7, r0
> + bne pen
[Severity: Medium]
Can unbooted secondary cores spin forever in this uncached loop and
saturate the memory bus?
When booting a 4-core BCM6755 with maxcpus=2 or nr_cpus=2, bringing up
CPU 1 wakes all secondary cores into bca_secondary_startup() with MMU and
caches off. CPUs 2 and 3 are never released and issue continuous uncached
DRAM loads for the entire uptime, wasting power and bus bandwidth.
Adding .arch armv7-a and wfe here, paired with sev() after sync_cache_w()
in bca_write_cpu_release(), would avoid the busy spin.
> diff --git a/arch/arm/mach-bcm/platsmp-bcmbca.c b/arch/arm/mach-bcm/platsmp-bcmbca.c
> new file mode 100644
> index 0000000000000..e888a2a370678
> --- /dev/null
> +++ b/arch/arm/mach-bcm/platsmp-bcmbca.c
[ ... ]
> +#define BCA_SMP_BOOT_ADDR 0xff800568 /* GPIO->GeneralPurpose */
[Severity: Medium]
Should the secondary boot address come from Device Tree instead of being
hardcoded to 0xff800568 under the generic brcm,bca-smp enable-method?
Other BCMBCA SoCs such as bcm63138 place their peripheral and GPIO block
at different physical addresses, so hardcoding 0xff800568 would write the
startup vector to the wrong address on non-matching SoCs. Merging DTS
files without a DT-provided address also locks in an incomplete ABI.
The standard cpu-release-addr property in bindings/arm/cpus.yaml (or a DT
register node, as used by the other arch/arm/mach-bcm/ SMP drivers) could
supply this address instead.
[ ... ]
> +/* pen runs with caches off */
> +static void bca_write_cpu_release(int val)
> +{
> + WRITE_ONCE(bca_cpu_release, val);
> + smp_wmb(); /* before cache clean */
> + sync_cache_w(&bca_cpu_release);
> +}
[Severity: Low]
Should bca_write_cpu_release() emit dsb_sev() to pair with a wfe-based
holding pen?
Unlike arch/arm/mach-versatile/headsmp.S, which had to support ARMv6
without wfe/sev, CONFIG_ARCH_BCMBCA_CORTEXA7 targets ARMv7 Cortex-A7 where
wfe and dsb_sev() are always available. Using them avoids active power
draw and bus traffic from waiting secondary cores.
[ ... ]
> +static int bca_boot_secondary(unsigned int cpu, struct task_struct *idle)
> +{
> + unsigned long timeout;
> + int released;
> +
> + raw_spin_lock(&bca_lock);
> +
> + bca_write_cpu_release(cpu_logical_map(cpu));
> + arch_send_wakeup_ipi_mask(cpumask_of(cpu));
> +
> + timeout = jiffies + HZ;
> + do {
> + smp_rmb(); /* pairs with bca_write_cpu_release() */
> + released = READ_ONCE(bca_cpu_release) == -1;
> + if (released)
> + break;
> + udelay(10);
> + } while (time_before(jiffies, timeout));
[Severity: Medium]
Can bca_boot_secondary() return -ETIMEDOUT after the secondary CPU has
already cleared bca_cpu_release during the final udelay(10)?
CPU0 CPU1
bca_boot_secondary()
raw_spin_lock(&bca_lock)
...
released = (bca_cpu_release == -1) /* false */
udelay(10)
bca_secondary_init()
bca_write_cpu_release(-1)
raw_spin_lock(&bca_lock) /* waits */
/* timeout expires, exits loop */
raw_spin_unlock(&bca_lock)
return -ETIMEDOUT
raw_spin_unlock(&bca_lock)
secondary_start_kernel()
complete(&cpu_running) <-- no waiter
Because __cpu_up() skips wait_for_completion_timeout(&cpu_running, ...) on
error, the static cpu_running completion stays signaled and causes the
next CPU bring-up to return prematurely and zero secondary_data while that
CPU is still booting.
Re-checking bca_cpu_release with smp_rmb() after the loop while bca_lock
is still held avoids this race.
> +
> + raw_spin_unlock(&bca_lock);
> +
> + return released ? 0 : -ETIMEDOUT;
> +}
[Severity: Medium]
Does the timeout path leave bca_cpu_release armed with the timed-out CPU's
MPIDR?
On error, __cpu_up() immediately zeroes secondary_data. If the timed-out
core reaches bca_secondary_startup() later, it matches the stale value in
bca_cpu_release and branches to secondary_startup with NULL stack and
page-table pointers.
Calling bca_write_cpu_release(-1) before unlocking bca_lock when !released
disarms the holding pen.
> +
> +static void __init bca_smp_prepare_cpus(unsigned int max_cpus)
> +{
> + void __iomem *reg = ioremap(BCA_SMP_BOOT_ADDR, 4);
> +
> + if (WARN_ON(!reg))
> + return;
> + writel(__pa_symbol(bca_secondary_startup), reg);
> + iounmap(reg);
> +}
[Severity: Medium]
If ioremap() fails here, won't bca_boot_secondary() still send wakeup IPIs
to secondary CPUs even though BCA_SMP_BOOT_ADDR was never programmed?
smp_prepare_cpus() marks all possible CPUs present before calling
smp_ops.smp_prepare_cpus(). Returning early leaves secondary CPUs in
cpu_present_mask, so they get woken to jump to whatever stale value is in
0xff800568 while boot stalls for HZ per core.
Calling init_cpu_present(cpumask_of(0)) on failure (like
bcm_smp_prepare_cpus() in arch/arm/mach-bcm/platsmp.c) avoids waking them.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204151052.393800-1-wafgo01@gmail.com?part=2
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [RFC PATCH 2/6] ARM: bcm: Add brcm,bca-smp enable-method
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
1 sibling, 0 replies; 15+ messages in thread
From: William Zhang @ 2026-12-04 17:29 UTC (permalink / raw)
To: Wadim Mueller
Cc: linux-arm-kernel, Florian Fainelli, Anand Gore, Kursad Oney,
Rafał Miłecki, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Lee Jones, Ray Jui, Scott Branden, Russell King,
Lorenzo Pieralisi, bcm-kernel-feedback-list, devicetree, mfd,
linux-kernel, Jie Feng Ho
[-- Attachment #1: Type: text/plain, Size: 5506 bytes --]
Hi Wadim,
This smp enable method was already added by Linus recently:
https://lore.kernel.org/all/20261105-genexis-xg6846-smp-v7-3-rc1-v5-2-4103df2588d3@kernel.org/
Thanks,
William
On Fri, Dec 4, 2026 at 7:11 AM Wadim Mueller <wafgo01@gmail.com> wrote:
>
> CFE without secure firmware does not provide PSCI. It keeps the
> secondary cores in WFI and on wakeup they jump to the address in the
> GPIO GeneralPurpose register (0xff800568).
>
> All cores wake up together, so use a holding pen like mach-versatile.
>
> Tested on BCM6755 (ASUS RT-AX56U).
>
> Signed-off-by: Wadim Mueller <wafgo01@gmail.com>
> ---
> arch/arm/mach-bcm/Makefile | 1 +
> arch/arm/mach-bcm/headsmp-bcmbca.S | 36 ++++++++++++++
> arch/arm/mach-bcm/platsmp-bcmbca.c | 79 ++++++++++++++++++++++++++++++
> 3 files changed, 116 insertions(+)
> create mode 100644 arch/arm/mach-bcm/headsmp-bcmbca.S
> create mode 100644 arch/arm/mach-bcm/platsmp-bcmbca.c
>
> diff --git a/arch/arm/mach-bcm/Makefile b/arch/arm/mach-bcm/Makefile
> index 6baedf4c6..d13011a8d 100644
> --- a/arch/arm/mach-bcm/Makefile
> +++ b/arch/arm/mach-bcm/Makefile
> @@ -60,4 +60,5 @@ endif
> ifeq ($(CONFIG_ARCH_BCMBCA),y)
> obj-$(CONFIG_DEBUG_BCMBCA) += board_bcmbca.o
> obj-$(CONFIG_SMP) += bcm63xx_smp.o bcm63xx_pmb.o
> +obj-$(CONFIG_ARCH_BCMBCA_CORTEXA7) += platsmp-bcmbca.o headsmp-bcmbca.o
> endif
> diff --git a/arch/arm/mach-bcm/headsmp-bcmbca.S b/arch/arm/mach-bcm/headsmp-bcmbca.S
> new file mode 100644
> index 000000000..9e7d462e8
> --- /dev/null
> +++ b/arch/arm/mach-bcm/headsmp-bcmbca.S
> @@ -0,0 +1,36 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
> +/*
> + * Copyright (c) 2003 ARM Limited (holding pen from mach-versatile)
> + * All Rights Reserved
> + */
> +#include <linux/linkage.h>
> +#include <linux/init.h>
> +#include <asm/assembler.h>
> +
> +/*
> + * Entry point for secondary CPUs on BCMBCA (CFE, no PSCI).
> + * This provides a "holding pen" into which all secondary cores are held
> + * until we're ready for them to initialise.
> + */
> +ENTRY(bca_secondary_startup)
> + ARM_BE8(setend be)
> + mrc p15, 0, r0, c0, c0, 5
> + bic r0, #0xff000000
> + adr r4, 1f
> + ldmia r4, {r5, r6}
> + sub r4, r4, r5
> + add r6, r6, r4
> +pen: ldr r7, [r6]
> + cmp r7, r0
> + bne pen
> +
> + /*
> + * we've been released from the holding pen: secondary_stack
> + * should now contain the SVC stack for this core
> + */
> + b secondary_startup
> +
> + .align
> +1: .long .
> + .long bca_cpu_release
> +ENDPROC(bca_secondary_startup)
> diff --git a/arch/arm/mach-bcm/platsmp-bcmbca.c b/arch/arm/mach-bcm/platsmp-bcmbca.c
> new file mode 100644
> index 000000000..e888a2a37
> --- /dev/null
> +++ b/arch/arm/mach-bcm/platsmp-bcmbca.c
> @@ -0,0 +1,79 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +/*
> + * SMP for BCMBCA Cortex-A7 SoCs booted by CFE without PSCI.
> + *
> + * CFE keeps the secondary cores in WFI. On wakeup all of them jump to the
> + * address in GPIO GeneralPurpose register, so we hold them in a pen.
> + */
> +
> +#include <linux/cacheflush.h>
> +#include <linux/delay.h>
> +#include <linux/init.h>
> +#include <linux/io.h>
> +#include <linux/jiffies.h>
> +#include <linux/smp.h>
> +
> +#include <asm/smp_plat.h>
> +
> +#define BCA_SMP_BOOT_ADDR 0xff800568 /* GPIO->GeneralPurpose */
> +
> +asmlinkage void bca_secondary_startup(void);
> +int bca_cpu_release = -1;
> +static DEFINE_RAW_SPINLOCK(bca_lock);
> +
> +/* pen runs with caches off */
> +static void bca_write_cpu_release(int val)
> +{
> + WRITE_ONCE(bca_cpu_release, val);
> + smp_wmb(); /* before cache clean */
> + sync_cache_w(&bca_cpu_release);
> +}
> +
> +static void bca_secondary_init(unsigned int cpu)
> +{
> + bca_write_cpu_release(-1);
> +
> + raw_spin_lock(&bca_lock);
> + raw_spin_unlock(&bca_lock);
> +}
> +
> +static int bca_boot_secondary(unsigned int cpu, struct task_struct *idle)
> +{
> + unsigned long timeout;
> + int released;
> +
> + raw_spin_lock(&bca_lock);
> +
> + bca_write_cpu_release(cpu_logical_map(cpu));
> + arch_send_wakeup_ipi_mask(cpumask_of(cpu));
> +
> + timeout = jiffies + HZ;
> + do {
> + smp_rmb(); /* pairs with bca_write_cpu_release() */
> + released = READ_ONCE(bca_cpu_release) == -1;
> + if (released)
> + break;
> + udelay(10);
> + } while (time_before(jiffies, timeout));
> +
> + raw_spin_unlock(&bca_lock);
> +
> + return released ? 0 : -ETIMEDOUT;
> +}
> +
> +static void __init bca_smp_prepare_cpus(unsigned int max_cpus)
> +{
> + void __iomem *reg = ioremap(BCA_SMP_BOOT_ADDR, 4);
> +
> + if (WARN_ON(!reg))
> + return;
> + writel(__pa_symbol(bca_secondary_startup), reg);
> + iounmap(reg);
> +}
> +
> +static const struct smp_operations bca_smp_ops __initconst = {
> + .smp_prepare_cpus = bca_smp_prepare_cpus,
> + .smp_secondary_init = bca_secondary_init,
> + .smp_boot_secondary = bca_boot_secondary,
> +};
> +CPU_METHOD_OF_DECLARE(bca_smp, "brcm,bca-smp", &bca_smp_ops);
> --
> 2.56.1
>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5473 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* [RFC PATCH 3/6] dt-bindings: mfd: brcm,twd: Add BCM47622
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:10 ` 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
` (2 subsequent siblings)
5 siblings, 1 reply; 15+ messages in thread
From: Wadim Mueller @ 2026-12-04 15:10 UTC (permalink / raw)
To: linux-arm-kernel, Florian Fainelli, William Zhang, Anand Gore,
Kursad Oney, Rafał Miłecki
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones,
Ray Jui, Scott Branden, Russell King, Lorenzo Pieralisi,
bcm-kernel-feedback-list, devicetree, mfd, linux-kernel,
Wadim Mueller
BCM47622 has the same timer/watchdog block as BCM4908.
Signed-off-by: Wadim Mueller <wafgo01@gmail.com>
---
Documentation/devicetree/bindings/mfd/brcm,twd.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/mfd/brcm,twd.yaml b/Documentation/devicetree/bindings/mfd/brcm,twd.yaml
index e5136a37b..217f621fa 100644
--- a/Documentation/devicetree/bindings/mfd/brcm,twd.yaml
+++ b/Documentation/devicetree/bindings/mfd/brcm,twd.yaml
@@ -20,6 +20,7 @@ properties:
items:
- enum:
- brcm,bcm4908-twd
+ - brcm,bcm47622-twd
- brcm,bcm7038-twd
- const: simple-mfd
- const: syscon
--
2.56.1
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [RFC PATCH 3/6] dt-bindings: mfd: brcm,twd: Add BCM47622
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
0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-12-04 15:23 UTC (permalink / raw)
To: Wadim Mueller; +Cc: devicetree, mfd, robh, conor+dt, lee
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] dt-bindings: mfd: brcm,twd: commit message contradicts
standalone compatible
- [Low] dt-bindings: mfd: brcm,twd: brcm,bcm47622-twd inserted unsorted
in enum
--
commit c6a8d54ad1a00a2d6a174f151db3e7c5dc167252
Author: Wadim Mueller <wafgo01@gmail.com>
dt-bindings: mfd: brcm,twd: Add BCM47622
This commit adds the brcm,bcm47622-twd compatible string to the Broadcom
Timer-Watchdog (TWD) devicetree binding.
> BCM47622 has the same timer/watchdog block as BCM4908.
[Severity: Low]
Should brcm,bcm47622-twd use brcm,bcm4908-twd as a fallback compatible, or
does the commit message need to explain why they are not compatible?
Per Documentation/devicetree/bindings/writing-bindings.rst, identical
hardware blocks should list the earlier SoC as a fallback compatible (which
syscon-common.yaml allows with up to 5 items), while incompatible blocks
should explain the differences in the commit message.
In commit "ARM: dts: broadcom: bcm47622: Add TWD, reboot, MDIO and
SYSTEMPORT0", BCM47622 defines a 0x100-byte TWD block with watchdog at 0x80
and reboot at 0x8c, whereas arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi
uses a 0x4c-byte block with watchdog at 0x28 and reboot at 0x34.
If the register layouts differ, updating the commit message to note those
differences would justify the standalone compatible; otherwise, adding a
oneOf entry with brcm,bcm4908-twd as a fallback would match the binding
guidelines.
> diff --git a/Documentation/devicetree/bindings/mfd/brcm,twd.yaml b/Documentation/devicetree/bindings/mfd/brcm,twd.yaml
> index e5136a37b0a38..217f621fabaae 100644
> --- a/Documentation/devicetree/bindings/mfd/brcm,twd.yaml
> +++ b/Documentation/devicetree/bindings/mfd/brcm,twd.yaml
> @@ -20,6 +20,7 @@ properties:
> items:
> - enum:
> - brcm,bcm4908-twd
> + - brcm,bcm47622-twd
> - brcm,bcm7038-twd
> - const: simple-mfd
> - const: syscon
[Severity: Low]
Can brcm,bcm47622-twd be placed in sorted order? Right now it sits between
brcm,bcm4908-twd and brcm,bcm7038-twd, which is neither alphabetical nor
numerical; if kept in this enum, placing it before brcm,bcm4908-twd would
keep the list alphabetically sorted.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204151052.393800-1-wafgo01@gmail.com?part=3
^ permalink raw reply [flat|nested] 15+ messages in thread
* [RFC PATCH 4/6] ARM: dts: broadcom: bcm47622: Add TWD, reboot, MDIO and SYSTEMPORT0
2026-12-04 15:10 [RFC PATCH 0/6] ARM: bcmbca: Add BCM47622 SMP and ASUS RT-AX56U Wadim Mueller
` (2 preceding siblings ...)
2026-12-04 15:10 ` [RFC PATCH 3/6] dt-bindings: mfd: brcm,twd: Add BCM47622 Wadim Mueller
@ 2026-12-04 15:10 ` 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:10 ` [RFC PATCH 6/6] ARM: dts: broadcom: " Wadim Mueller
5 siblings, 2 replies; 15+ messages in thread
From: Wadim Mueller @ 2026-12-04 15:10 UTC (permalink / raw)
To: linux-arm-kernel, Florian Fainelli, William Zhang, Anand Gore,
Kursad Oney, Rafał Miłecki
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones,
Ray Jui, Scott Branden, Russell King, Lorenzo Pieralisi,
bcm-kernel-feedback-list, devicetree, mfd, linux-kernel,
Wadim Mueller
Add timer/watchdog block, reboot via its soft reset bit, the MDIO
controller and the first SYSTEMPORT (WAN).
Signed-off-by: Wadim Mueller <wafgo01@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm47622.dtsi | 37 ++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm47622.dtsi b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
index 485863f9c..e1d20799b 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>;
+ };
+
+ 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";
+ };
};
--
2.56.1
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [RFC PATCH 4/6] ARM: dts: broadcom: bcm47622: Add TWD, reboot, MDIO and SYSTEMPORT0
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
1 sibling, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-12-04 15:34 UTC (permalink / raw)
To: Wadim Mueller; +Cc: devicetree, mfd, robh, conor+dt, lee
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
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [RFC PATCH 4/6] ARM: dts: broadcom: bcm47622: Add TWD, reboot, MDIO and SYSTEMPORT0
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
1 sibling, 0 replies; 15+ messages in thread
From: Florian Fainelli @ 2026-12-04 17:45 UTC (permalink / raw)
To: Wadim Mueller, linux-arm-kernel, William Zhang, Anand Gore,
Kursad Oney, Rafał Miłecki
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones,
Ray Jui, Scott Branden, Russell King, Lorenzo Pieralisi,
bcm-kernel-feedback-list, devicetree, mfd, linux-kernel
On 12/4/26 07:10, Wadim Mueller wrote:
> Add timer/watchdog block, reboot via its soft reset bit, the MDIO
> controller and the first SYSTEMPORT (WAN).
>
> Signed-off-by: Wadim Mueller <wafgo01@gmail.com>
> ---
> arch/arm/boot/dts/broadcom/bcm47622.dtsi | 37 ++++++++++++++++++++++++
> 1 file changed, 37 insertions(+)
>
> diff --git a/arch/arm/boot/dts/broadcom/bcm47622.dtsi b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
> index 485863f9c..e1d20799b 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>;
> + };
> +
> + 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";
> + };
This is dependent upon the bcm47622 systemport variant being accepted,
you can omit that for now and add it later when the binding is accepted.
--
Florian
^ permalink raw reply [flat|nested] 15+ messages in thread
* [RFC PATCH 5/6] dt-bindings: arm: bcmbca: Add ASUS RT-AX56U
2026-12-04 15:10 [RFC PATCH 0/6] ARM: bcmbca: Add BCM47622 SMP and ASUS RT-AX56U Wadim Mueller
` (3 preceding siblings ...)
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:10 ` Wadim Mueller
2026-12-04 15:17 ` sashiko-bot
2026-12-04 15:10 ` [RFC PATCH 6/6] ARM: dts: broadcom: " Wadim Mueller
5 siblings, 1 reply; 15+ messages in thread
From: Wadim Mueller @ 2026-12-04 15:10 UTC (permalink / raw)
To: linux-arm-kernel, Florian Fainelli, William Zhang, Anand Gore,
Kursad Oney, Rafał Miłecki
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones,
Ray Jui, Scott Branden, Russell King, Lorenzo Pieralisi,
bcm-kernel-feedback-list, devicetree, mfd, linux-kernel,
Wadim Mueller
RT-AX56U is based on BCM6755 from the BCM47622 family.
Signed-off-by: Wadim Mueller <wafgo01@gmail.com>
---
Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml
index 354bb1420..3d957de74 100644
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml
@@ -25,6 +25,7 @@ properties:
- description: BCM47622 based boards
items:
- enum:
+ - asus,rt-ax56u
- brcm,bcm947622
- const: brcm,bcm47622
- const: brcm,bcmbca
--
2.56.1
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [RFC PATCH 5/6] dt-bindings: arm: bcmbca: Add ASUS RT-AX56U
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
0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-12-04 15:17 UTC (permalink / raw)
To: Wadim Mueller; +Cc: devicetree, mfd, robh, conor+dt, lee
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: arm: bcmbca: missing brcm,bcm6755 compatible for
RT-AX56U
--
commit 79436ce26fa97a2c5c6adb26746d0b4cae4fa489
Author: Wadim Mueller <wafgo01@gmail.com>
dt-bindings: arm: bcmbca: Add ASUS RT-AX56U
This commit adds the asus,rt-ax56u board compatible to the BCM47622
based boards list in the Broadcom BCMBCA binding.
> diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml
> index 354bb1420cdd7..3d957de7446c5 100644
> --- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml
> +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml
> @@ -25,6 +25,7 @@ properties:
> - description: BCM47622 based boards
> items:
> - enum:
> + - asus,rt-ax56u
> - brcm,bcm947622
> - const: brcm,bcm47622
> - const: brcm,bcmbca
[Severity: Medium]
Should asus,rt-ax56u have a SoC-specific brcm,bcm6755 compatible instead
of being listed directly under BCM47622 based boards?
Since RT-AX56U is based on BCM6755, omitting brcm,bcm6755 prevents the
kernel or firmware from distinguishing BCM6755-specific hardware
differences or quirks from BCM47622 without matching individual board
compatibles or changing the root compatible ABI later.
Following Documentation/devicetree/bindings/writing-bindings.rst and the
existing BCM4906 and BCM49408 entries in this file, a dedicated BCM6755
based boards entry (between BCM63178 and BCM6756) can list asus,rt-ax56u
followed by brcm,bcm6755, brcm,bcm47622, and brcm,bcmbca.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204151052.393800-1-wafgo01@gmail.com?part=5
^ permalink raw reply [flat|nested] 15+ messages in thread
* [RFC PATCH 6/6] ARM: dts: broadcom: Add ASUS RT-AX56U
2026-12-04 15:10 [RFC PATCH 0/6] ARM: bcmbca: Add BCM47622 SMP and ASUS RT-AX56U Wadim Mueller
` (4 preceding siblings ...)
2026-12-04 15:10 ` [RFC PATCH 5/6] dt-bindings: arm: bcmbca: Add ASUS RT-AX56U Wadim Mueller
@ 2026-12-04 15:10 ` Wadim Mueller
2026-12-04 15:25 ` sashiko-bot
2026-12-04 18:01 ` Florian Fainelli
5 siblings, 2 replies; 15+ messages in thread
From: Wadim Mueller @ 2026-12-04 15:10 UTC (permalink / raw)
To: linux-arm-kernel, Florian Fainelli, William Zhang, Anand Gore,
Kursad Oney, Rafał Miłecki
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones,
Ray Jui, Scott Branden, Russell King, Lorenzo Pieralisi,
bcm-kernel-feedback-list, devicetree, mfd, linux-kernel,
Wadim Mueller
BCM6755, 512 MiB RAM, 256 MiB NAND, CFE bootloader.
Working: serial, 4 CPUs, watchdog, reboot, NAND (read-only, stock
layout) and the WAN port.
Signed-off-by: Wadim Mueller <wafgo01@gmail.com>
---
arch/arm/boot/dts/broadcom/Makefile | 1 +
.../dts/broadcom/bcm6755-asus-rt-ax56u.dts | 124 ++++++++++++++++++
2 files changed, 125 insertions(+)
create mode 100644 arch/arm/boot/dts/broadcom/bcm6755-asus-rt-ax56u.dts
diff --git a/arch/arm/boot/dts/broadcom/Makefile b/arch/arm/boot/dts/broadcom/Makefile
index 2552e11b5..c41ea0b50 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 \
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 000000000..999270e94
--- /dev/null
+++ b/arch/arm/boot/dts/broadcom/bcm6755-asus-rt-ax56u.dts
@@ -0,0 +1,124 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * ASUS RT-AX56U (BCM6755, BCM47622 family)
+ *
+ * Stock CFE has no PSCI, so brcm,bca-smp is used for the secondary CPUs.
+ */
+
+/dts-v1/;
+
+#include "bcm47622.dtsi"
+
+/delete-node/ &{/psci};
+
+/ {
+ model = "ASUS RT-AX56U";
+ compatible = "asus,rt-ax56u", "brcm,bcm47622", "brcm,bcmbca";
+
+ aliases {
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ memory@0 {
+ device_type = "memory";
+ reg = <0x0 0x20000000>;
+ };
+};
+
+&CA7_0 {
+ /delete-property/ enable-method;
+};
+
+&CA7_1 {
+ enable-method = "brcm,bca-smp";
+};
+
+&CA7_2 {
+ enable-method = "brcm,bca-smp";
+};
+
+&CA7_3 {
+ enable-method = "brcm,bca-smp";
+};
+
+&uart0 {
+ status = "okay";
+};
+
+&mdio {
+ status = "okay";
+
+ wan_phy: ethernet-phy@8 {
+ reg = <8>;
+ };
+};
+
+/* WAN, internal GPHY */
+&sysport0 {
+ phy-handle = <&wan_phy>;
+ phy-mode = "internal";
+ local-mac-address = [7c 10 c9 e2 3a b0];
+ status = "okay";
+};
+
+&nand_controller {
+ brcm,wp-not-connected;
+ status = "okay";
+};
+
+&nandcs {
+ brcm,nand-ecc-use-strap;
+
+ /* stock layout */
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "cferom";
+ reg = <0x0 0x100000>;
+ read-only;
+ };
+
+ partition@100000 {
+ label = "image";
+ reg = <0x100000 0x5f00000>;
+ read-only;
+ };
+
+ partition@6000000 {
+ label = "image_update";
+ reg = <0x6000000 0x5f00000>;
+ read-only;
+ };
+
+ partition@bf00000 {
+ label = "misc1";
+ reg = <0xbf00000 0x800000>;
+ read-only;
+ };
+
+ partition@c700000 {
+ label = "misc2";
+ reg = <0xc700000 0x2f00000>;
+ read-only;
+ };
+
+ partition@f600000 {
+ label = "misc3";
+ reg = <0xf600000 0x100000>;
+ read-only;
+ };
+
+ partition@f700000 {
+ label = "data";
+ reg = <0xf700000 0x800000>;
+ read-only;
+ };
+ };
+};
--
2.56.1
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [RFC PATCH 6/6] ARM: dts: broadcom: Add ASUS RT-AX56U
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
1 sibling, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-12-04 15:25 UTC (permalink / raw)
To: Wadim Mueller; +Cc: devicetree, mfd, robh, conor+dt, lee
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
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [RFC PATCH 6/6] ARM: dts: broadcom: Add ASUS RT-AX56U
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
1 sibling, 0 replies; 15+ messages in thread
From: Florian Fainelli @ 2026-12-04 18:01 UTC (permalink / raw)
To: Wadim Mueller, linux-arm-kernel, William Zhang, Anand Gore,
Kursad Oney, Rafał Miłecki
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones,
Ray Jui, Scott Branden, Russell King, Lorenzo Pieralisi,
bcm-kernel-feedback-list, devicetree, mfd, linux-kernel
On 12/4/26 07:10, Wadim Mueller wrote:
> BCM6755, 512 MiB RAM, 256 MiB NAND, CFE bootloader.
>
> Working: serial, 4 CPUs, watchdog, reboot, NAND (read-only, stock
> layout) and the WAN port.
>
> Signed-off-by: Wadim Mueller <wafgo01@gmail.com>
> ---
[snip]
> +/* WAN, internal GPHY */
> +&sysport0 {
> + phy-handle = <&wan_phy>;
> + phy-mode = "internal";
> + local-mac-address = [7c 10 c9 e2 3a b0];
You will need to figure out a scheme to assign the proper MAC address.
Can you use a NVMEM provider like what BCM5301X does?
> + status = "okay";
> +};
> +
> +&nand_controller {
> + brcm,wp-not-connected;
> + status = "okay";
> +};
> +
> +&nandcs {
> + brcm,nand-ecc-use-strap;
> +
> + /* stock layout */
> + partitions {
> + compatible = "fixed-partitions";
At some point we will want a dynamically parsed partition list, does
bcm63xx_part not work here?
--
Florian
^ permalink raw reply [flat|nested] 15+ messages in thread