Skip to content

arm64: dts: broadcom: bcmbca: add TP-Link Archer AX6000 v1

Kordian Chmielewski linux-arm-kernel linux-devicetree lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: arm64: bcmbca: Add TP-Link Archer AX6000 v1 based on BCM4908Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml+1 -00 replies
2/2arm64: dts: broadcom: bcmbca: bcm4908: Add DT for TP-Link Archer AX6000 v1arch/arm64/boot/dts/broadcom/bcmbca/Makefile arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-tplink-archer-ax6000-v1.dts+114 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] arm64: dts: broadcom: bcmbca: add TP-Link Archer AX6000 v1

The TP-Link Archer AX6000 v1 is a router with a BCM4908, 1 GiB of RAM and 128 MiB of NAND. Four of its eight LAN sockets are on the SoC's switch and the other four on a BCM53134S; the 2.5G WAN socket is on a BCM54991E PHY, and two BCM43684 Wi-Fi chips sit on PCIe.

This series describes what mainline supports today: the buttons, USB, the four LAN sockets on the SoC's switch, and the bootloader and firmware partitions of the NAND. The rest needs driver changes first and will follow with them; the main obstacles are:
- the WAN port: the BCM54991E is on the SerDes, whose route in the bcm_sf2 crossbar code is still "if (0) /* FIXME */", and bcm84881 does not match the PHY's ID;
- the BCM53134S: it is on the RGMII pins, which the crossbar can connect to port 7 of the switch only in place of the SerDes, and b53 does not enable its Broadcom tag when its conduit is a user port of another Broadcom-tagged switch;
- PCIe: bcm4908.dtsi has no PCIe nodes yet, pcie-brcmstb needs changes for inbound DMA and for MSI on the BCM4908, and brcmfmac does not support the BCM43684;
- Bluetooth: a BCM20704 on the SoC's high-speed UART, and mainline has no driver for that UART;
- the LED controller, which has no driver in Linux.

The LAN labels follow the case: socket 1 is switch port 3, which the device trees of the Netgear RAXE500 and the TP-Link Archer C2300 v1 also label lan1.

Port 7 of the switch is not described, so until "net: dsa: bcm_sf2:
don't warn when BCM4908 port 7 is not used" [1], sent to netdev, is applied, bcm_sf2_crossbar_setup() hits WARN(1, "Invalid port mode") at probe.

Tested on the router with an OpenWrt build of Linux 6.18.55 that carries out-of-tree bcm4908 patches (bcm_sf2 and bcm4908_enet among them), booting a DTB built from these files and the unchanged bcm4908.dtsi (the same in devicetree-arm64/next and in net), with the bcm_sf2 fix above:
the board boots from NAND with 1 GiB of RAM, the NAND partitions are found, the four LAN ports register with their PHYs, TCP between the router and a host on LAN socket 1 ran at 941 Mbit/s in both directions, and the EHCI, OHCI and xHCI controllers register. Each of the four buttons was pressed and reported the key code of its node, through OpenWrt's gpio-button-hotplug, which binds to gpio-keys-polled. A USB 2.0 stick enumerated at high speed through EHCI, and a USB 3 network adapter at SuperSpeed through xHCI. dt_binding_check reports nothing for brcm,bcmbca.yaml and dtbs_check nothing for the new DTB; with W=1, dtc shows only the unit_address_vs_reg warning on /soc that bcm4908.dtsi gives every BCM4908 board.

[1] https://lore.kernel.org/netdev/[email protected]/

Kordian Chmielewski (2):
dt-bindings: arm64: bcmbca: Add TP-Link Archer AX6000 v1 based on

    BCM4908
  arm64: dts: broadcom: bcmbca: bcm4908: Add DT for TP-Link Archer
    AX6000 v1
 .../bindings/arm/bcm/brcm,bcmbca.yaml         |   1 +
 arch/arm64/boot/dts/broadcom/bcmbca/Makefile  |   1 +
 .../bcm4908-tplink-archer-ax6000-v1.dts       | 113 ++++++++++++++++++
 3 files changed, 115 insertions(+)
 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-tplink-archer-ax6000-v1.dts
Signature · 1 line
2.56.1