arm64: dts: broadcom: bcmbca: add TP-Link Archer AX6000 v1
Subsystems (2)
cover 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
PATCH 1/2 dt-bindings: arm64: bcmbca: Add TP-Link Archer AX6000 v1 based on BCM4908
Add the TP-Link Archer AX6000 v1, a router based on the BCM4908.
--- Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +1 -0
@@ -45,6 +45,7 @@ properties: - asus,gt-ac5300 - brcm,bcm94908 - netgear,raxe500 + - tplink,archer-ax6000-v1 - const: brcm,bcm4908 - const: brcm,bcmbca
Signature · 1 line
2.56.1
PATCH 2/2 arm64: dts: broadcom: bcmbca: bcm4908: Add DT for TP-Link Archer AX6000 v1
In reply to Kordian ChmielewskiThe TP-Link Archer AX6000 v1 is a router based on the BCM4908, with 1 GiB of RAM and 128 MiB of NAND. Describe its buttons, its USB ports, the four LAN sockets on the SoC's switch, and the bootloader and firmware partitions of its NAND.
The case numbers these LAN sockets in the opposite order to the switch
ports: socket 1 is port 3.
Port 7 of the switch is left out: the crossbar can connect it to the SerDes, which leads to the 2.5G WAN PHY, or to the RGMII pins of the BCM53134S, and bcm_sf2 cannot route the SerDes yet.
--- arch/arm64/boot/dts/broadcom/bcmbca/Makefile | 1 + .../bcm4908-tplink-archer-ax6000-v1.dts | 113 ++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-tplink-archer-ax6000-v1.dts
arch/arm64/boot/dts/broadcom/bcmbca/Makefile +1 -0
@@ -5,6 +5,7 @@ dtb-$(CONFIG_ARCH_BCMBCA) += \ bcm4906-zyxel-ex3510b.dtb \ bcm4908-asus-gt-ac5300.dtb \ bcm4908-netgear-raxe500.dtb \ + bcm4908-tplink-archer-ax6000-v1.dtb \ bcm94908.dtb \ bcm4912-asus-gt-ax6000.dtb \ bcm94912.dtb \
arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-tplink-archer-ax6000-v1.dts new file +113 -0
113 lines not on this page · raw message
Signature · 1 line
2.56.1