From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.227 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796149375; b=4juzMoy4UxuHlEuf1SVrQM1ugUUPYUa/52gTA9hOIFQTy/F6vMNXTwytcPK2LYP2WdXV 47YYz3dh7LZJ27VevvpmKkUomTdt1Fu55m5m4nSLLQ6MIcMENV4R0OQYzIOlhxhmqjrbe axLbCNxmmXJx4v3cSv0tiDQbXC4YsZ7J08PXmmP8l2vmJvLQaWEZfU6Up/oTZ2CiBfV0+ 1KdixKfwlYtFzXcBavzXRPUV2tFA59stMTv/5L/qlLhucUJyao/e/yF9vhgZ/YHzFZ0he kCi+3tL8aNiI52O25VJ+yLdDXw5ISaZV9XtAwE2OA80Ppe0owmcs0ORH/xsbvzzizMg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796149375; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Gm-Message-State: X-Gm-Gg:X-Received:Received:X-Relaying-Domain:X-CFilter-Loop:Received: DKIM-Signature: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=1pwoIatYl+m0+iUtJbppt/wgMg1O4T0MiU88uoPwGtep4nk+tvdpQlae0qSeoY+kgAA3 HuV8Rxxu73L9FAw76WdK6rNpCQWjia5JdkU9pNU+yoQizuhceSZOnAumse4JusnsEIvln ndJywExl92wntdbVv1mTPt2Z5itKiZkWH1qNkPGhOxGFoGjT21UsxurSyn46I17SqaZBl LmFstGeAAlAOoDazFNMu6RQpmxc3ZICgOq5DukNIL5UJDwInzhvqAJ4+dGth3vDTDTnkE MhSbP95zPfRlPpUD1I844xMBrQC6LYXIq89gFteWB1JX/mfblirnwtCVfU1XfT9aOew== 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=gY+dgy7I; arc=none smtp.remote-ip=209.85.215.227 Received: from mail-pg1-f227.google.com (mail-pg1-f227.google.com [209.85.215.227]) (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 8A3EE606A336 for ; Tue, 1 Dec 2026 18:22:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8A3EE606A336 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=gY+dgy7I Received: by mail-pg1-f227.google.com with SMTP id 41be03b00d2f7-cdeaf4ea5e0so3125039a12.1 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=RvhB3tpTD3j0dw4AXCyPHtaOpO4hknCL1K1h03KYTcZrozUl7wXXO9Tc81wAPiE51L 9PPBzAbMeqDovr0zSpbS1LUkfKvGf3kHMjOfaGixEMtXvETgA0jdHJ30dJ0olG+/HkqU gNAtLdYkSIauvfhDup485VWuzp70AkKltvvnmWAMYDP2JdN95y2qQbR1qZhNbk7Or4Ot c3zxtG7r6f1TLpys9OnRacF+aYd1Ss5r5DR5e137dpndyVRhprUW1W+vIFVmYGbMiNfZ DJPN7ohTEGio5olu9S9FbU4qTJTHD9d1MectJ2C7i9Uat/Splo8y0mQT6k198iIDvriL ytwA== X-Gm-Message-State: APuU4Z/3wG/sv9skQbmWPL8rhmXyqGERuEqrRAkYtd8nG8IcguDt8mEu /oyOLgJ+whEDxtDjGT6UUbTvl/m0xXky1qwTv1EByrMoBeLdNCFZZGN4qBRGepfxZc6jXmgKvck 4Li82KJikin7SIu7mTQCXKDXsEFNZ+gpiybRXrElIeb5szZgMskJ8wUttnQALOCcir5R+kpRLJJ lRHseupvypbPPjrCh42QnOnknTtRxHbt9FVKLyNJXrKCSeGG66ZbnbhjJ1GqaykmT4dUmDonKhV dlsoTEaR51rG3dg X-Gm-Gg: AZFdTZdpbKQFvQZmQgRgOI2TjO6tIzR2r6BHNXGPuGJZKJOgoFnropJQv650nSpzTv2 x4rwI8YH6Q/GMdFNSrgNfczXwno2rS6w4170qrdLs4f9Uyx9Zr1YaLASHiRH53M1ulyV+se6SK1 cjRBkY3r4inCzhLvActxlOf1XbrniBQmEq+jDLjWXbpVY4YouFqqzVif1OlEDou48rHlGJ5DPKM LhrnFfNFBRhmdbLVoXHcC8yHxbYOlQJrpTJvIvMl5sk2N/neSEScc1IA8E2p1QuPCTY0ZvEtmkv RsT81LJ5wCItnjOh2lfcz6H8pLQQRw/8E9gUKZ6ip+LrFMYqcrTYztII5jOKGu66pu+I+1x33kg clZUH051DUyyRDAMc4hBbsapW+ie4j4BICacunYXPYZraEgRhb4ypETx0+dccvlxhCWnk3JKqq+ iBJDnpMWwLZA+khhM2Lnih52xkQeLcBu8U2kK+/BkU X-Received: by 2002:a17:90b:4d0a:b0:3b3:b562:899c with SMTP id 98e67ed59e1d1-3b41c8dc9f1mr24486948a91.9.1796149373635; 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 98e67ed59e1d1-3b411775fa6sm25358866a91.1.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-f198.google.com with SMTP id d2e1a72fcca58-8a05b68f851so9600857b3a.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=1796149372; x=1796754172; 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=gY+dgy7IvEzWvRT3LoZb7drPAvhMcYgpYKFqkzmkiS/A6IrNnCzvHr9MoVZ8ZB94Hu UVsbPrTNp3b43lmB0OAeSiyn4pIaFKJhu2+FMrUlbcsmOpRtS3xuM5CJwOYOpN8MLM8s mDgqN08oELY/zHqueEYQ1fUP2gZ9TFADzvky4= X-Received: by 2002:a05:6a21:6f89:b0:3f1:fdd4:5742 with SMTP id adf61e73a8af0-4014ca44afbmr27289320637.9.1796149371624; 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: netdev@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