ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest22 patches 0 repliesNew
- v222 patches 0 repliesSuperseded
- v117 patches 1 replySuperseded
Changes in v3 from the cover letter
- R6250: set status in the existing &gmac2 node instead of adding a
second one.
- DWL-8610AP: enable gmac2 too, like the other boards without a switch
node.
- Link to v2: https://lore.kernel.org/linux-devicetree/[email protected]/
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/22 | ARM: dts: BCM5301X: AC56U: specify switcharch/ | +37 | 0 replies | |
| 2/22 | ARM: dts: BCM5301X: AC68U: specify switcharch/ | +37 | 0 replies | |
| 3/22 | ARM: dts: BCM5301X: N18U: specify switcharch/ | +37 | 0 replies | |
| 4/22 | ARM: dts: BCM5301X: R7000: specify switcharch/ | +37 | 0 replies | |
| 5/22 | ARM: dts: BCM5301X: EA6300: set gmac2 MAC address from nvramarch/ | +9 | 0 replies | |
| 6/22 | ARM: dts: BCM5301X: EA6300: specify switcharch/ | +37 | 0 replies | |
| 7/22 | ARM: dts: BCM5301X: phicomm-k3: add nvram nodearch/ | +14 | 0 replies | |
| 8/22 | ARM: dts: BCM5301X: phicomm-k3: specify switcharch/ | +37 | 0 replies | |
| 9/22 | ARM: dts: BCM5301X: R6300 v2: add nvram nodearch/ | +14 | 0 replies | |
| 10/22 | ARM: dts: BCM5301X: R6300 v2: specify switcharch/ | +37 | 0 replies | |
| 11/22 | ARM: dts: BCM5301X: EA6500 v2: add nvram nodearch/ | +14 | 0 replies | |
| 12/22 | ARM: dts: BCM5301X: EA6500 v2: specify switcharch/ | +37 | 0 replies | |
| 13/22 | ARM: dts: BCM5301X: R8500: add nvram nodearch/ | +14 | 0 replies | |
| 14/22 | ARM: dts: BCM5301X: R8500: specify switcharch/ | +37 | 0 replies | |
| 15/22 | ARM: dts: BCM5301X: WZR-900DHP: specify switcharch/ | +38 | 0 replies | |
| 16/22 | ARM: dts: BCM5301X: WZR-1750DHP: specify switcharch/ | +38 | 0 replies | |
| 17/22 | ARM: dts: BCM5301X: WXR-1900DHP: specify switcharch/ | +38 | 0 replies | |
| 18/22 | ARM: dts: BCM5301X: Archer C5 v2: specify switcharch/ | +38 | 0 replies | |
| 19/22 | ARM: dts: BCM5301X: Archer C9 v1: specify switcharch/ | +38 | 0 replies | |
| 20/22 | ARM: dts: BCM5301X: DIR-885L: use gmac2arch/ | +1 | 0 replies | |
| 21/22 | ARM: dts: BCM5301X: use gmac2 as the CPU portarch/ arch/ arch/ +12 more | +61 | 0 replies | |
| 22/22 | ARM: dts: BCM5301X: enable GMACs in boards that use themarch/ arch/ arch/ +45 more | +190 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 00/22] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port
This series describes the switch on fourteen more BCM5301X boards, makes switch port 8 / gmac2 the CPU port on the single-CPU-port boards whose MAC address can be assigned to gmac2, 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-19 do the same for the R6300 v2, EA6500 v2, R8500, WZR-900DHP, WZR-1750DHP, WXR-1900DHP, Archer C5 v2 and Archer C9 v1. The R6300 v2, EA6500 v2 and R8500 get an nvram node and use port 8 (gmac2) with the MAC address from et0macaddr (et2macaddr on the R8500). The Buffalo and TP-Link boards have no MAC address described, so they use port 5 (gmac0), which gets et0macaddr through the SPROM fallback.
Patch 20 is a fix: on the DIR-885L the nvram MAC address has been on gmac0 since port 8 became its only CPU port. It moves it to gmac2.
Patch 21 moves the CPU port from port 5 (gmac0), or port 7 (gmac1) on the RT-AC87U, to port 8 (gmac2) on the remaining single-CPU-port boards. 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, and the R6250 gets an nvram node for it. Boards whose MAC address only comes from the SPROM fallback (et0macaddr for gmac0) stay on port 5, since gmac2 would read et2macaddr instead.
Patch 22 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 keep gmac0-gmac2, because nothing configures their switch and which GMAC carries traffic depends on the bootloader. 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 9-21 and parts of 22, check the board descriptions against OpenWrt, and draft the commit messages and this cover letter.
Changes in v3:
- R6250: set status in the existing &gmac2 node instead of adding a
second one.
- DWL-8610AP: enable gmac2 too, like the other boards without a switch
node.
- Link to v2: https://lore.kernel.org/linux-devicetree/[email protected]/
Changes in v2:
- Squash the per-board port 8/gmac2 conversions (AC87U, SR400AC, Luxul,
R6250, Meraki MR26/MR32) into one patch (Florian). The DIR-885L patch
stays separate since it carries a Fixes: tag.
- R6250: add an nvram node and take the gmac2 MAC address from
et0macaddr, so it doesn't get a random one.
- Keep Buffalo WZR-600DHP2/WZR-1166DHP/WZR-1166DHP2 and BCM953012ER on
port 5/gmac0: they have no MAC address in DT and would get a random
one from the empty et2macaddr SPROM fallback.
- Boards without a switch node keep gmac0, gmac1 and gmac2 enabled
instead of only gmac2, since their switch is left as the bootloader
configured it.
- Describe the switch on the R6300 v2, EA6500 v2, R8500, WZR-900DHP, WZR-1750DHP, WXR-1900DHP, Archer C5 v2 and Archer C9 v1 (new patches
9-19), taking the port mappings and MAC address sources from OpenWrt.
- Link to v1: https://lore.kernel.org/linux-devicetree/[email protected]/
Rosen Penev (22):
ARM: dts: BCM5301X: AC56U: specify switch
ARM: dts: BCM5301X: AC68U: specify switch
ARM: dts: BCM5301X: N18U: specify switch
ARM: dts: BCM5301X: R7000: specify switch
ARM: dts: BCM5301X: EA6300: set gmac2 MAC address from nvram
ARM: dts: BCM5301X: EA6300: specify switch
ARM: dts: BCM5301X: phicomm-k3: add nvram node
ARM: dts: BCM5301X: phicomm-k3: specify switch
ARM: dts: BCM5301X: R6300 v2: add nvram node
ARM: dts: BCM5301X: R6300 v2: specify switch
ARM: dts: BCM5301X: EA6500 v2: add nvram node
ARM: dts: BCM5301X: EA6500 v2: specify switch
ARM: dts: BCM5301X: R8500: add nvram node
ARM: dts: BCM5301X: R8500: specify switch
ARM: dts: BCM5301X: WZR-900DHP: specify switch
ARM: dts: BCM5301X: WZR-1750DHP: specify switch
ARM: dts: BCM5301X: WXR-1900DHP: specify switch
ARM: dts: BCM5301X: Archer C5 v2: specify switch
ARM: dts: BCM5301X: Archer C9 v1: specify switch
ARM: dts: BCM5301X: DIR-885L: use gmac2
ARM: dts: BCM5301X: use gmac2 as the CPU port
ARM: dts: BCM5301X: enable GMACs in boards that use them
arch/arm/boot/dts/broadcom/bcm-ns.dtsi | 8 +++ .../dts/broadcom/bcm4708-asus-rt-ac56u.dts | 39 ++++++++++++++ .../dts/broadcom/bcm4708-asus-rt-ac68u.dts | 39 ++++++++++++++ .../broadcom/bcm4708-buffalo-wxr-1750dhp.dts | 12 +++++ .../bcm4708-buffalo-wzr-1166dhp-common.dtsi | 4 ++ .../broadcom/bcm4708-buffalo-wzr-1750dhp.dts | 42 +++++++++++++++ .../broadcom/bcm4708-linksys-ea6300-v1.dts | 48 +++++++++++++++++ .../broadcom/bcm4708-linksys-ea6500-v2.dts | 53 +++++++++++++++++++ .../dts/broadcom/bcm4708-luxul-xap-1510.dts | 8 +-- .../dts/broadcom/bcm4708-luxul-xwc-1000.dts | 8 +-- .../dts/broadcom/bcm4708-netgear-r6250.dts | 20 ++++++- .../dts/broadcom/bcm4708-netgear-r6300-v2.dts | 53 +++++++++++++++++++ .../dts/broadcom/bcm4708-smartrg-sr400ac.dts | 10 ++-- .../dts/broadcom/bcm47081-asus-rt-n18u.dts | 39 ++++++++++++++ .../broadcom/bcm47081-buffalo-wzr-600dhp2.dts | 4 ++ .../broadcom/bcm47081-buffalo-wzr-900dhp.dts | 42 +++++++++++++++ .../dts/broadcom/bcm47081-luxul-xap-1410.dts | 8 +-- .../dts/broadcom/bcm47081-luxul-xwr-1200.dts | 8 +-- .../broadcom/bcm47081-tplink-archer-c5-v2.dts | 42 +++++++++++++++ .../dts/broadcom/bcm4709-asus-rt-ac3200.dts | 6 +++ .../dts/broadcom/bcm4709-asus-rt-ac87u.dts | 8 ++- .../broadcom/bcm4709-buffalo-wxr-1900dhp.dts | 42 +++++++++++++++ .../dts/broadcom/bcm4709-linksys-ea9200.dts | 2 + .../dts/broadcom/bcm4709-netgear-r7000.dts | 39 ++++++++++++++ .../dts/broadcom/bcm4709-netgear-r8000.dts | 4 ++ .../broadcom/bcm4709-tplink-archer-c9-v1.dts | 42 +++++++++++++++ .../dts/broadcom/bcm47094-asus-rt-ac3100.dts | 6 +++ .../dts/broadcom/bcm47094-asus-rt-ac5300.dts | 6 +++ .../dts/broadcom/bcm47094-asus-rt-ac88u.dts | 8 +-- .../dts/broadcom/bcm47094-dlink-dir-885l.dts | 4 +- .../dts/broadcom/bcm47094-dlink-dir-890l.dts | 2 + .../broadcom/bcm47094-linksys-panamera.dts | 4 ++ .../dts/broadcom/bcm47094-luxul-abr-4500.dts | 8 +-- .../dts/broadcom/bcm47094-luxul-xap-1610.dts | 8 +-- .../dts/broadcom/bcm47094-luxul-xbr-4500.dts | 8 +-- .../dts/broadcom/bcm47094-luxul-xwc-2000.dts | 8 +-- .../dts/broadcom/bcm47094-luxul-xwr-3100.dts | 8 +-- .../broadcom/bcm47094-luxul-xwr-3150-v1.dts | 8 +-- .../dts/broadcom/bcm47094-netgear-r8500.dts | 53 +++++++++++++++++++ .../boot/dts/broadcom/bcm47094-phicomm-k3.dts | 53 +++++++++++++++++++ .../dts/broadcom/bcm53015-meraki-mr26.dts | 21 ++------ .../broadcom/bcm53016-dlink-dwl-8610ap.dts | 8 +++ .../dts/broadcom/bcm53016-meraki-mr32.dts | 23 ++------ arch/arm/boot/dts/broadcom/bcm94708.dts | 12 +++++ arch/arm/boot/dts/broadcom/bcm94709.dts | 12 +++++ arch/arm/boot/dts/broadcom/bcm953012er.dts | 4 ++ arch/arm/boot/dts/broadcom/bcm953012hr.dts | 12 +++++ arch/arm/boot/dts/broadcom/bcm953012k.dts | 12 +++++ 48 files changed, 834 insertions(+), 84 deletions(-)
base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726
Signature · 1 line
2.56.1