Article View: linux.kernel.netdev
Article #21243[PATCH net-next 3/5] dt-bindings: net: Add Cortina CS7542 network engine
From: Fil Dunsky via B4 Relay
Date: Mon, 23 Nov 2026 18:44
Date: Mon, 23 Nov 2026 18:44
162 lines
15221 bytes
15221 bytes
From: Fil Dunsky <filipp.dunsky@gmail.com>
Describe the GMAC ports, network-engine register banks, complete
exclusively owned LSO/SSP DMA resources and engine reset. Require an
explicit no-map queue-manager DDR reservation for the verified 512 MiB
memory layout. A separate SSP DMA consumer cannot coexist; NAND PIO does
not use that block.
Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
---
.../bindings/net/cortina,cs7542-ethernet.yaml | 139 +++++++++++++++++++++
1 file changed, 139 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/cortina,cs7542-ethernet.yaml b/Documentation/devicetree/bindings/net/cortina,cs7542-ethernet.yaml
new file mode 100644
index 000000000..94bda9e0b
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/cortina,cs7542-ethernet.yaml
@@ -0,0 +1,139 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/cortina,cs7542-ethernet.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cortina Systems CS7542 network engine
+
+maintainers:
+ - Fil Dunsky <filipp.dunsky@gmail.com>
+
+description: |
+ The CS7542 network engine contains three GMACs, the network interface (NI),
+ forwarding engine (FE), queue manager (QM), traffic manager (TM), scheduler,
+ CPU XRAM interface and packet DMA. The CPU datapath uses the DMA-LSO TX
+ queue and QM-managed RX buffers. The complete DMA-LSO/SSP register block
+ and the combined reset domain must be exclusively owned by this device;
+ a separate SSP DMA consumer cannot operate concurrently. A NAND controller
+ using PIO does not consume that DMA block.
+
+properties:
+ compatible:
+ const: cortina,cs7542-ethernet
+
+ reg:
+ items:
+ - description: NI registers
+ - description: Complete DMA-LSO and DMA-SSP registers
+ - description: FE registers and indirect table interfaces
+ - description: QM registers
+ - description: TM registers
+ - description: Scheduler registers
+ - description: CPU XRAM
+
+ reg-names:
+ items:
+ - const: ni
+ - const: dma
+ - const: fe
+ - const: qm
+ - const: tm
+ - const: sch
+ - const: xram
+
+ interrupts:
+ items:
+ - description: GMAC0 CPU receive queue interrupt
+ - description: GMAC1 CPU receive queue interrupt
+ - description: GMAC2 CPU receive queue interrupt
+
+ interrupt-names:
+ items:
+ - const: eth0
+ - const: eth1
+ - const: eth2
+
+ cortina,global-syscon:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: Global control syscon for network drive strength and status.
+
+ resets:
+ maxItems: 1
+ description: Exclusive atomic reset of the complete NE and DMA-LSO/SSP domain.
+
+ reset-names:
+ const: engine
+
+ memory-region:
+ maxItems: 1
+ description: |
+ Reserved no-map DDR region used by the packet queue manager. Initial
+ support uses the upper 64 MiB of the 512 MiB DDR layout at 0x1c000000.
+
+ "#address-cells":
+ const: 1
+
+ "#size-cells":
+ const: 0
+
+patternProperties:
+ "^ethernet-port@[0-2]$":
+ type: object
+ $ref: ethernet-controller.yaml#
+ unevaluatedProperties: false
+ properties:
+ reg:
+ maxItems: 1
+ phy-mode:
+ enum: [rgmii, rgmii-id, rgmii-rxid, rgmii-txid]
+ required:
+ - reg
+ - phy-mode
+
+required:
+ - compatible
+ - reg
+ - reg-names
+ - interrupts
+ - interrupt-names
+ - cortina,global-syscon
+ - resets
+ - reset-names
+ - memory-region
+ - "#address-cells"
+ - "#size-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ ethernet@f0010000 {
+ compatible = "cortina,cs7542-ethernet";
+ reg = <0xf0010000 0x500>, <0xf0090000 0x800>,
+ <0xf0020000 0x4000>, <0xf0030000 0x400>,
+ <0xf0040000 0x800>, <0xf0060000 0x100>,
+ <0xf0400000 0x100000>;
+ reg-names = "ni", "dma", "fe", "qm", "tm", "sch", "xram";
+ interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "eth0", "eth1", "eth2";
+ cortina,global-syscon = <&global>;
+ resets = <&ne_reset>;
+ reset-names = "engine";
+ memory-region = <&qm_reserved>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethernet-port@1 {
+ reg = <1>;
+ phy-mode = "rgmii";
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
+ };
--
2.53.0
Technical Details
Message-ID:
<20261123-b4-cs7542-ethernet-v1-3-fdb5e8c2d508@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369690-linux-kernel-netdev=dewy.ruReferences:
<20261123-b4-cs7542-ethernet-v1-0-fdb5e8c2d508@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369690-linux-kernel-netdev=dewy.ru From: devnull+filipp.dunsky.gmail.com@kernel.org (Fil Dunsky via B4 Relay) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next 3/5] dt-bindings: net: Add Cortina CS7542 network engine Date: Mon, 23 Nov 2026 21:44:12 +0300 Organization: Usenet Network Message-ID: <20261123-b4-cs7542-ethernet-v1-3-fdb5e8c2d508@gmail.com> References: <20261123-b4-cs7542-ethernet-v1-0-fdb5e8c2d508@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3957341"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:FNbpf1Qr3yhzlt7g9+ioGP2SRyw= sha256:KdsT/d4QmuJVwQTzzLRtaprmYXnJ1ovYU33iWTMa9gY= sha1:dx48mdAxxMM9ztTc33sdqrLdpN0= sha256:0jER0hPkAnPgsKxxi0zRZwtzjw7te1E9t/tG7rggL1g= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 2768F125DC3; Mon, 23 Nov 2026 21:46:05 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Status: No, score=-2.3 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SBAAAQh9qUlM; Mon, 23 Nov 2026 21:46:01 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369690-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 154D7125DC0; Mon, 23 Nov 2026 21:45:53 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id E14783D15C; Mon, 23 Nov 2026 18:44:45 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795459472; b=qW4jjvwoUWrQ6w+wGC0QOZidMMDDUuGHRCHsxTUwWCZ4qx0gzCuVWzUHNFxJ1g8clfah wxxeHyNrxD6cu3vaZa5MOpx0fSbv1JdUS/gpndRClKDQpWNE7mO0ZKc4HsWA/LgUod/i0 VU8vJFD+Cu6zloIX/Z62wkpTw0DBf+rtZ00nH85SX0GW+IDBRCf53R2fwZE7r4d4NmkLV 46H+sDvfvYcMMv6gs1gca8bthjXM3AmdET2+vHBLFqAYFVORzAAobA5BVeBqmfBrAmjVM JKWdkTv6PEE6LeHdtdex/VLgAUOAmADyw41/KSQlOf34ONGWXG/lV6x/gXjYDww8PFw== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795459472; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=36qSemX3tCfGbY/Pf4EbmcYnRfbMVF2BhDaAK816hh0=; b=LHHbF5KQGHlWIPZxW6w9hHQDV/lTQ4gkELy+RJkXWLtG4hoGhGl7NOu1JhUOZKysIA1x RkmV3A05JFk51+NIRsdiLtNmlT4BF2VcsiRq1nGBPb3qSfVoHMzmXRFVONv0B/qCxbLBP q3VJbrUrALhhMckNs3SywSsy6VgVJESqLn3wdouCIT9t8DvvAkZNlH2e35YtKFtV1z0uE 4yMajIZBTANnJjSfMkC3CmicBH2fypiahdzS/qWzAVpsimosMqvnIE2lUiJSjJ/Z7qNu6 1K/cMpfyCrtrEcRcMddw1r9aeIzGEKDAKyaXKu6RFvfpk4JHPSz+vd7wyPi76xgLtzw== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=keIzUa9q; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5340606A699; Mon, 23 Nov 2026 18:44:32 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=keIzUa9q X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795459466; b=KcNtYCC2bCqPyBiO8pPG8MLWrCIYxvywTEELHR1/QIUReQB21fh9oMSEXW7pcgk8tlKN XO6/ukOVcw1IxC5aLU52tPGf2D+jSBYkUxy+iDnqBNIg5Je526x6kC/kxXPAg1Wf7Rvxp 8lDjCmt/NhmRvqqKrSot9qt/OZ7v84j39XcbLJzo+OSptXhYHdlgw5RfJ7dkqvDAWFeVb hWBrKnor7/pcr+WKkmJ6wHVpFGt4JXJnWfl0rvKiuGNaEh0ky5sdy0J6NvyEenbrdXjr7 AozDjdWxXJn5L68Rz2nrJzuQWg0iObaQA3JVOptUBCOoRp73CNSLniOk+LBJEi7Gd6g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795459466; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=36qSemX3tCfGbY/Pf4EbmcYnRfbMVF2BhDaAK816hh0=; b=hbJcbvWZKtfLrjr20lSpM+r3bjrIbcDg34cfyMCahNC+nL4tpD/+qVZ8C/GxucUDMuxh KA0IjsSTjOxvlVFEJOeUj4GHVfQK8bU9vtE8M705BqMo+zbq8CKeQ6UcwJpST2qWqhSeu Tyb9aUWf6q+kqW+bHgQ+AdqPkJTj5d5qH9cM08Jhh8zEtrBsi/eJaobE0JcClTJiJDiKf yq0XAOEXzKDgS85hkLj4sSXOJQ2XHsGOqo3IMvDSyj7XeAm55GA503by23VwFbGKhb9Eg 5Yj0piZj0SDysT9G6BtZlQiPhaeXH9AiGhxhzruSTuoo8TPNFLVozuhzTLI9hGroZeA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=keIzUa9q; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D361C606A691; Mon, 23 Nov 2026 18:44:26 +0000 (UTC) X-Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795459466; b=vwTtz1kNpKVzyYYBLuebdcLLP3WXAjmgB7nXcyIJHpF283sw4x5MXQDgxhuVk8i8n6dD 5HGR4iCDAn6VQTWYdhcgNOkRv7LoxQjFmMtj8BRwyWxeIO+Jr+68lkdp8BV0uFC2QoFd0 FtSJ1j0nT0ubbtE4LCmBg7CCL2FAxo3/SgPbiHtYoK52Bfvi++NO48FR5PJY0BjUs9l3P oEvp+3YApQ7z/Vb8lQCjVmLG8ZhK3uFx9ehouF6tsdcUaSl0wJL/xg3SryU4AsgKBoGzG IK2lscGYLD+2RRUhc9ihHOiMfmDQljGvO1t2VMU5sSgjhZD/CKhMnjxnQhv3HvSsdSw== X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795459466; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=36qSemX3tCfGbY/Pf4EbmcYnRfbMVF2BhDaAK816hh0=; b=fljTMjFH8xiYUWNhQ2hfTk/DpFxh/xMTozKJ8OlIWPkTmPJaTaTiR/ey+XVYNldsyCfF pQ7lO3LxgHQR18UQUy/GpJGiW+VfYop+8l1pgiX47qd3HAo47pcNdGqcRsnuV/AjmUtcq CeG3KVOgeLIwK4RLNq7R+KbtjVTpCl1lbPbDnGglWaxbDUhW+NUDNLsUK0GNo2m1bPa/d 2kCgAed0GS0NX7c2o/ihkJ1Kx1O/Qw8imIBmJGJ+VP6hk//Q8vSkrQkzZqar1SE1g4Mnm 7gZMbzgNjcep3OMxUyVznhYx/z7jwwDNCnxcVhmaPjeqKkRoKwr+0fZAqchkM0et9Lg== X-ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id EF0491F000EB; Mon, 23 Nov 2026 18:44:13 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795459466; bh=36qSemX3tCfGbY/Pf4EbmcYnRfbMVF2BhDaAK816hh0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=keIzUa9qHC2Ahq1T8V4PpyPCOeDH79G69JVIvo6mb9UrbwVGreaFPC2ztwTKAacHb LL35u8bgICVhYsCyP/AHoEHEhi3WCZv8VAuZEBzg1Lug7VycfUFzwkRh8InU5v5EhN Pvpjv4nUFBdNZeF0OgxF42l9hjWTb7lCzCGNwqQSq2BMt0Tv2jp7fRmDmwbbqUKS6S K66R/WOtkQ1LRqCpeSFzwbbauO+IIaUeH1v4TpO+CKMOKMoN0EfY2HZVA6ieVzyhz7 hZU7bsgVNVSKUaIvw0heuty+Q9dITlv5IyJqkpnReqeSc0UtfBKtUluBSuCXI7MAGx DK9SiLA2f5jjg== X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 6E84A4C61E; Mon, 23 Nov 2026 18:44:13 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261123-b4-cs7542-ethernet-v1-0-fdb5e8c2d508@gmail.com> X-Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795459449; l=4831; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=VOUhMB0Rj9fA7lJi6AFflGQnBL7hZTNQBAAAIIyJdgU=; b=uJYK60NJOhRvpdRbJCsqc4QFb9+8vTO+QVkRApxCTEV92jaaJX0faCN6Dz28HgZxEpNUf0k39 gYYdiCw88RHAJDoBFZse/R5FySzud9OSNc322DmlNGop4rE7m1d5ji1 X-Developer-Key: i=filipp.dunsky@gmail.com; a=ed25519; pk=JAYP8e2rJ54DHOmhNtXud8rl1igAaAXoOHxtJmVXI1g= X-Endpoint-Received: by B4 Relay for filipp.dunsky@gmail.com/20260930 with auth_id=1085 X-Original-From: Fil Dunsky <filipp.dunsky@gmail.com> X-Reply-To: filipp.dunsky@gmail.com