[PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port

Florian Fainelli florian.fainelli at broadcom.com
Wed Nov 18 10:36:34 PST 2026


On 11/17/26 21:47, Rosen Penev wrote:
> This series describes the switch on six more BCM5301X boards, makes
> switch port 8 / gmac2 the CPU port on every board that has a single CPU
> port, and disables the GMACs that a board does not use.
> 
> Patches 1-8 describe the switch ports on the RT-AC56U, RT-AC68U, RT-N18U,
> R7000, EA6300 and Phicomm K3. They also set the WAN MAC address from
> nvram, so userspace doesn't have to. The EA6300 and K3 get an nvram node
> for that. The port mappings come from OpenWrt.
> 
> Patches 9-16 move the CPU port from port 5 (gmac0), or port 7 (gmac1) on
> the RT-AC87U, to port 8 (gmac2). Port 8 is the switch's IMP port, and
> gmac2 is present on all Northstar SoCs. The nvram MAC address moves to
> gmac2 as well. Patch 11 is a fix: on the DIR-885L the MAC address has been
> on gmac0 since port 8 became its only CPU port.
> 
> Patch 17 disables all GMACs in bcm-ns.dtsi and enables only the ones each
> board uses. Boards with a switch node enable the GMACs behind their CPU
> ports. Boards without one enable gmac2. Boards with several CPU ports
> (RT-AC3100, RT-AC3200, RT-AC5300, RT-AC88U, WXR-1750DHP) keep them all.
> 
> Compile-tested only. Every patch builds, and dtbs_check output for all
> BCM5301X boards is unchanged by the series.
> 
> An AI coding assistant (Claude Code, Claude Opus 5.5) was used to review
> the series, write patches 11-16 and parts of 17, check the board
> descriptions against OpenWrt, and draft the commit messages and this
> cover letter.

Thanks for doing that work, I reviewed it and it looks good to me, I do 
wonder whether we don't want to just switch all of the devices into a 
single commit because there is not much point to do it on a board by 
board basis, it's easier for review, but not necessarily to manage a as 
a prerequisite for additional work (e.g.: flow accelerator support, or 
preferred CPU port election with b53).
-- 
Florian



More information about the linux-arm-kernel mailing list