[PATCH net-next v2 1/6] dt-bindings: net: describe the Northstar flow accelerator
From: Florian Fainelli
Date: Tue Dec 01 2026 - 13:23:13 EST
Describe the BCM4708/BCM53011/BCM53012 accelerator register resource and
the GMAC2 consumer phandle. The accelerator is inline on switch CPU port
8 (IMP0); GMAC0 and GMAC1 bypass it. Document the additional port 5
(IMP1)/GMAC0 CPU connection for exceptions that cannot safely traverse
the inline lookup. Keep existing boards unchanged unless their topology
explicitly opts in.
The accelerator registers belong to the AXI MAC + flow accelerator block
and sit in the 4 KiB BCMA window of the GMAC3 core, outside of the range
described for the GMAC3 node. BCMA GMAC nodes have no compatible string,
so the consumer schema is selected by the property and restricted to the
GMAC2 node name.
Signed-off-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
---
Changes in v2:
- Describe the AXI MAC/FA block and the register placement within the
GMAC3 4 KiB BCMA window; clarify that FA has no separate DT clock or
reset input and correct port 5 to IMP1.
- Explain property-based schema selection for BCMA GMAC nodes and
restrict the consumer to GMAC2 (ethernet@26000).
.../bindings/net/brcm,bcm4708-fa.yaml | 52 +++++++++++++++++++
.../bindings/net/brcm,bcm5301x-gmac.yaml | 33 ++++++++++++
MAINTAINERS | 2 +
3 files changed, 87 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/brcm,bcm4708-fa.yaml
create mode 100644 Documentation/devicetree/bindings/net/brcm,bcm5301x-gmac.yaml
diff --git a/Documentation/devicetree/bindings/net/brcm,bcm4708-fa.yaml b/Documentation/devicetree/bindings/net/brcm,bcm4708-fa.yaml
new file mode 100644
index 0000000000000..69dcfd060589b
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/brcm,bcm4708-fa.yaml
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/brcm,bcm4708-fa.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom Northstar BCM4708 and BCM5301X flow accelerator
+
+maintainers:
+ - Florian Fainelli <f.fainelli@xxxxxxxxx>
+
+description: |
+ The flow accelerator is part of the AXI MAC + flow accelerator block, which
+ also contains the four GMAC cores enumerated by BCMA. It is inline between
+ GMAC2 and switch port 8 (IMP0); GMAC0 and GMAC1 bypass it. The GMAC2 BCMA
+ Ethernet node references this register block through a
+ brcm,flow-accelerator phandle. Miss packets carry a prepended accelerator
+ descriptor in place of the embedded switch tag.
+
+ The registers are in the same 4 KiB BCMA window as the GMAC3 core (the
+ loopback port of the block), above the 0x800 bytes that the GMAC3 node
+ describes. The accelerator is part of that block and has no clock or reset
+ input of its own in the device tree.
+
+ Switch port 5 (IMP1), connected to GMAC0, provides a second CPU path for
+ exceptions that must bypass the accelerator, including TCP control,
+ low-TTL and oversized packets. Describe that CPU port with an ethernet
+ phandle to GMAC0 and an internal, 1 Gbps full-duplex fixed link in the
+ switch's ports node. Port 8 remains the data connection to GMAC2.
+
+properties:
+ compatible:
+ enum:
+ - brcm,bcm4708-fa
+ - brcm,bcm53011-fa
+ - brcm,bcm53012-fa
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ flow-accelerator@18027c00 {
+ compatible = "brcm,bcm53011-fa";
+ reg = <0x18027c00 0xc0>;
+ };
diff --git a/Documentation/devicetree/bindings/net/brcm,bcm5301x-gmac.yaml b/Documentation/devicetree/bindings/net/brcm,bcm5301x-gmac.yaml
new file mode 100644
index 0000000000000..c560731987bed
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/brcm,bcm5301x-gmac.yaml
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/brcm,bcm5301x-gmac.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom Northstar BCMA GMAC flow accelerator connection
+
+maintainers:
+ - Florian Fainelli <f.fainelli@xxxxxxxxx>
+
+description: |
+ BCMA enumerates the Northstar GMACs, and their nodes have no compatible
+ string. This schema is therefore selected by the brcm,flow-accelerator
+ property and describes the optional inline flow accelerator connection on
+ GMAC2, connected to switch IMP0.
+
+select:
+ required:
+ - brcm,flow-accelerator
+
+properties:
+ $nodename:
+ pattern: "^ethernet@26000$"
+
+ brcm,flow-accelerator:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: |
+ Phandle to the BCM4708, BCM53011 or BCM53012 inline flow accelerator.
+ Only GMAC2 (BCMA Ethernet core unit 2, ethernet@26000) has this
+ connection.
+
+additionalProperties: true
diff --git a/MAINTAINERS b/MAINTAINERS
index 56212dbc9a0d0..dce9a88f4aef4 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -5669,6 +5669,8 @@ R: Broadcom internal kernel review list <bcm-kernel-feedback-list@xxxxxxxxxxxx>
L: netdev@xxxxxxxxxxxxxxx
S: Maintained
F: Documentation/devicetree/bindings/net/brcm,amac.yaml
+F: Documentation/devicetree/bindings/net/brcm,bcm4708-fa.yaml
+F: Documentation/devicetree/bindings/net/brcm,bcm5301x-gmac.yaml
F: drivers/net/ethernet/broadcom/bgmac*
F: drivers/net/ethernet/broadcom/unimac.h