From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.97 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796149374; b=1V3um0r+8zMWx1RzeXpJvm1+2H9fFn947eRa98wiHx9oEGoFw+nmK9l5Ltdc7CGyzdML fLnhD9O/7RqxMEUnCFSgCX+r6cpEHuGDLM7ffvWX4VCuLGZTqpcBjyEz/ZsJUPsm9ZYYR 9CjuvhR8ZE7Q5zwkKHtqswNPPwnQcLp+6wB1Qss7BI+v5KAk/E6Y0GbcUwBn9uQ0JYu1F Reke5rA8g59UsfdE+kwFXdeeV8mw35GDhGCrgchBjoEBuPs/qdfNSgLKh9TxxCCMZ/gAS 1po/9WASOv6fN5wzj1zirdz+pu/pJ5qcOzPwwdcbws6J9EIUO61hUBSQIgjYFDKseXQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796149374; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:X-Relaying-Domain: X-CFilter-Loop:Received:DKIM-Signature:X-Forwarded-Encrypted: X-Received:X-Received:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-DetectorID-Processed; bh=zaNC/ygq9lmQLOttdh783ADnsNrHbW1x8Nkq97IcnDs=; b=wV5wwU9wKAoHl5z9b7qFz58RFsjIquO/9Qc3tIqIViuUCpMUYft3f2AH14qoaSJyu+ad vVhzdsE/+CiPZid3rkbb6RPxpHM7oAVRsf2h5o3J5UBh+DNCGWnv3Hbiz6kQbDJfg5kN/ so+ajGX6TcvWThxX83mIr99hlN8PQl7+Qhu81hoXR13F35RxdIVIE9MozsD0Zg6JVuRsI 5nTb7CoxvEdGdbgcuyqrCznzH6gb6sHNlw9GZz/3v/ftB07IWQnIGhBSDwAilm5D+d8d9 oq7TWY7OCEkG53pr37+AbbvcHdPjzNQxDfDkOoLwyMkuSbTUd2pG4MCWfD7sSPo/1TA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=YLaH3BZJ; arc=none smtp.remote-ip=209.85.216.97 Received: from mail-pj1-f97.google.com (mail-pj1-f97.google.com [209.85.216.97]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 884EB606A689 for ; Tue, 1 Dec 2026 18:22:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 884EB606A689 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=YLaH3BZJ Received: by mail-pj1-f97.google.com with SMTP id 98e67ed59e1d1-3b59bcb3301so857985a91.0 for ; Tue, 01 Dec 2026 10:22:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796149374; x=1796754174; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=zaNC/ygq9lmQLOttdh783ADnsNrHbW1x8Nkq97IcnDs=; b=ebys3wCxKyBAt5j7kSLcqYZGofH4lBpPyM3floTEwBvE9aSFTrVs1mkEKKJxPAutet 6Va/VO1bQA/uk4KNKq5pD8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uq9yMvyBmafONRoZaqcgyiNA6CSV7RXARUerxIuq4/rx+smz7Q238N x2fMbNtwAqTzQnbBkdd/l06lvbgHzv4Io3MpjnfDZuDr0= X-Received: by 2002:a17:90b:3e81:b0:3a8:337d:228a with SMTP id 98e67ed59e1d1-3b41c7bc57cmr25141756a91.6.1796149373547; Tue, 01 Dec 2026 10:22:53 -0800 (PST) Received: from smtp-us-east1-p01-i01-si01.dlp.protect.broadcom.com (address-144-49-247-123.dlp.protect.broadcom.com. [144.49.247.123]) by smtp-relay.gmail.com with ESMTPS id 98e67ed59e1d1-3b41ff67243sm12049982a91.3.2026.12.01.10.22.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Dec 2026 10:22:53 -0800 (PST) X-Relaying-Domain: broadcom.com X-CFilter-Loop: Reflected Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-8a05b68f851so9600855b3a.1 for ; Tue, 01 Dec 2026 10:22:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1796149371; x=1796754171; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=zaNC/ygq9lmQLOttdh783ADnsNrHbW1x8Nkq97IcnDs=; b=YLaH3BZJzd59S0lhfrcmpIL+Vk/M23XSzCFcl9LLMSBzO3Yb412yogRRypTctdjbLj 1/M3SXJb7LYZ4x0bF5UluxVVzsHO5GAagZnCYqRj9Iurp5XDkGx45BSUzppdOeFUO03O R0G0/OP331TyRGKccO6WMZsUiscy+iDitIeCc= X-Forwarded-Encrypted: i=1; AL+hErEXOPrI3uJnpGdXP64BOC17mRptLZs/4xhDeTwOi4OwICS0yktjE1lMpSEskSyacK9NfY39zaetFNkpBu4=@vger.kernel.org X-Received: by 2002:a05:6a21:6f89:b0:3f1:fdd4:5742 with SMTP id adf61e73a8af0-4014ca44afbmr27289310637.9.1796149371482; Tue, 01 Dec 2026 10:22:51 -0800 (PST) X-Received: by 2002:a05:6a21:6f89:b0:3f1:fdd4:5742 with SMTP id adf61e73a8af0-4014ca44afbmr27289286637.9.1796149370925; Tue, 01 Dec 2026 10:22:50 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c87392d408sm20225242b3a.44.2026.12.01.10.22.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 10:22:50 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , andrew+netdev@lunn.ch, conor+dt@kernel.org, davem@davemloft.net, devicetree@vger.kernel.org, edumazet@kernel.org, krzk+dt@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, pabeni@redhat.com, robh@kernel.org Subject: [PATCH net-next v2 1/6] dt-bindings: net: describe the Northstar flow accelerator Date: Tue, 1 Dec 2026 10:22:22 -0800 Message-ID: <20261201182227.3990791-2-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261201182227.3990791-1-florian.fainelli@broadcom.com> References: <20261201182227.3990791-1-florian.fainelli@broadcom.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DetectorID-Processed: b00c1d49-9d2e-4205-b15f-d015386d3d5e 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 --- 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 + +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 + +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 L: netdev@vger.kernel.org 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