From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.226 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796149374; b=3MzB4SHW8JZxmb2QuaetR+IPMUxw7WYkQ6e4FRHvKmWS4BKAE0SpXguHQ65f5hxbiOci 4Hf28s4DXxGK7G+ZIt65Arc50T19uh2lhKodLEm27uHGKvxq4BMW7c26sWrMkLMJNy3Nk k8pAlQV2a/9OajTuoEU6gvVqctrGTiSOVTj1LWQbwjf//j0bjul82pM/p0NyRH/HtFRhv z3s4g3/SE9An5qJtJgQlxnlgxZJzEmSwVAlCUI5KMuLyo73iBJ9A0yxzikw4ZQdM9B7x3 sahOye8TjawFMe/7vsBZUPFiy3d9jT5IQSWxHJHpwwxCtZyt9taLehIvnVaW/IPrrbA== 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=VbYPj5rXfgkmECdtN8SCwvmAFLfHSR5Ot52rHMrNOCL5RLELwJUpGFXumg83h8mL735D 2ikOa7rxCvpCzVatmPFN8FVN/Al3G70+VFLk2NzispoBRBY8T8s32nB6joy1RAlhwqgJi rxQo1Q5R64Qf9uRwjp6d4n7Xh03l5BgxUWCF4p5If6IA48o+tI8/rIOhGv8upen+ZWVRk I5BxVciEuR2sdadLRuPnjq5FUd4ESyIDsDkduW470HK5UtNeQMJULRP5ekN9lDbveFi3D R3Dr/h0V9oN9hut1N7TGp5vy0P3+0ExcZQYSyCvEs6CLnbWvHzHRfTGmJqG7VDEPIpQ== 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.221.226 Received: from mail-vk1-f226.google.com (mail-vk1-f226.google.com [209.85.221.226]) (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 7ECC6606A687 for ; Tue, 1 Dec 2026 18:22:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7ECC6606A687 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-vk1-f226.google.com with SMTP id 71dfb90a1353d-5eaf34452a9so8551803e0c.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=1796149373; x=1796754173; 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=I/Bl1w1iYivzBT22p+zDl456umSyLUPNt4eOE9Fp9WCGnXzLCaRU68y5rneiHWvCFM Hg3+5Y0HJrzJYK3i11LiCKCsJqp4pu2fNj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nLkWDpSn1zmu+N4KdrrZiNHB98Sz9BCYA9v66 tS8pJGfjAbZ7EB5x3ym7k+AymNIcutNp+zUwPZ7FgI X-Received: by 2002:a05:6123:5c3:10b0:5ed:c029:411d with SMTP id 71dfb90a1353d-5ee82853f66mr15052365e0c.19.1796149373407; 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-28.dlp.protect.broadcom.com. [144.49.247.28]) by smtp-relay.gmail.com with ESMTPS id a1e0cc1a2514c-99e6e11ebabsm2872843241.7.2026.12.01.10.22.52 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-f198.google.com with SMTP id d2e1a72fcca58-8a05b68f851so9600853b3a.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+hErEylw2m3PehEjSuD8Spst0SojhfgxDhqB5HBfaokkTeg7tKnJn6BbPkAbsDbzZ/Uug9tzXCbvzAIfPK@vger.kernel.org X-Received: by 2002:a05:6a21:6f89:b0:3f1:fdd4:5742 with SMTP id adf61e73a8af0-4014ca44afbmr27289309637.9.1796149371481; 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: devicetree@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