🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25505

[PATCH net-next v6 1/3] dt-bindings: net: Add Cortina CS7542 network engine

#25505
From: Fil Dunsky via B4 Relay
Date: Tue, 01 Dec 2026 23:36
185 lines
16402 bytes
From: Fil Dunsky <filipp.dunsky@gmail.com>

Describe the CS7542 network engine register windows, interrupts, GMACs
and reserved queue-manager memory. Require exclusive ownership of the
seven NI/FE/TM/SCH/QM/DMA/NI-XRAM reset controls from the global provider.
The shared DMA line includes both LSO and SSP. Use rgmii-id for the
example switch peer which inserts RX and TX clock delays.

Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
---
 .../bindings/net/cortina,cs7542-ethernet.yaml      | 162 +++++++++++++++++++++
 1 file changed, 162 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..c5ba9b30e
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/cortina,cs7542-ethernet.yaml
@@ -0,0 +1,162 @@
+# 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.
+  The three GMAC station addresses share their first five bytes in NI
+  registers; only the last byte is independent for each port.
+
+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:
+    items:
+      - description: Network interface reset.
+      - description: Forwarding engine reset.
+      - description: Traffic manager reset.
+      - description: Scheduler reset.
+      - description: Queue manager reset.
+      - description: Shared DMA-LSO/SSP reset, exclusively owned by this consumer.
+      - description: Network interface XRAM reset.
+
+  reset-names:
+    items:
+      - const: ni
+      - const: fe
+      - const: tm
+      - const: sch
+      - const: qm
+      - const: dma
+      - const: xram
+
+  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>
+    #include <dt-bindings/reset/cortina,cs7542-reset.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 = <&global CS7542_RESET_NI>,
+                 <&global CS7542_RESET_FE>,
+                 <&global CS7542_RESET_TM>,
+                 <&global CS7542_RESET_SCH>,
+                 <&global CS7542_RESET_QM>,
+                 <&global CS7542_RESET_DMA>,
+                 <&global CS7542_RESET_NI_XRAM>;
+        reset-names = "ni", "fe", "tm", "sch", "qm", "dma", "xram";
+        memory-region = <&qm_reserved>;
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        ethernet-port@1 {
+            reg = <1>;
+            /* Fixed MAC-to-switch link; peer inserts RX/TX clock delays. */
+            phy-mode = "rgmii-id";
+            fixed-link {
+                speed = <1000>;
+                full-duplex;
+            };
+        };
+    };

-- 
2.53.0
Technical Details
Message-ID: <20261202-b4-cs7542-ethernet-v6-1-a8c1905efa9f@gmail.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375399-linux-kernel-netdev=dewy.ru
References: <20261202-b4-cs7542-ethernet-v6-0-a8c1905efa9f@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375399-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 v6 1/3] dt-bindings: net: Add Cortina CS7542
 network engine
Date: Wed, 02 Dec 2026 02:36:35 +0300
Organization: Usenet Network
Message-ID: <20261202-b4-cs7542-ethernet-v6-1-a8c1905efa9f@gmail.com>
References: <20261202-b4-cs7542-ethernet-v6-0-a8c1905efa9f@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1842574"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:yz9dqlowXKA4s9ObHCjl+Molc/g= sha256:0AZCgp2vhU1Htttx00J+UP3CuBDFaGs4pnwn7ToOJM4=
	sha1:UUnn7H4L8fbn1eXrSoL2J41atdM= sha256:2Tx9weUgiN432Jq40YcXySUtfRFIxcT3Bs75WO5w9ug=
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 981E31174D8; Wed,  2 Dec 2026 02:37:02 +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 3Npf6hkoFRQd;
	Wed,  2 Dec 2026 02:36:54 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-375399-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 774B41174D1; Wed,  2 Dec 2026 02:36:43 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 105742712A; Tue,  1 Dec 2026 23:36:41 +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=1796168199;
	b=wTAdS4DhmZU1LuhsAlZF/5DDF9hgEoQdTowvpQNQF0ffZykIiu1y+h+7vSSkr9r9RGK3
	 30Y+JffJAo8FtYkFA1ph4SNviDvTAM2DJ1i/ZzMKwBgbh90WEyN9N+4qhLiGL/mkFZP4/
	 /n31kRkFqJmHBgJYo01KLPON6ZTn/DDZPDgsWC8VDCUNGu1i4lU45D7I5N0nNb/+VmhjB
	 gQHtkvtxQ2asDxAp0f8+qe+3uYcyyVpWIIek1xpRg3ndWvN7Cy1PsnJg1mAj58hol2IhG
	 v3cF1zanXeNxxg0DMLP79lOYmUaSQrpe3pC5U+nF8RQjGZpaS8e2yIjBm7clLkFkhfA==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796168199;
	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=jNPW/Pg0JpLswGfcRTLclR+xYs8LeJ8SC8w+XDaMugA=;
	b=x5KzxlhcoY2o0y2k+iwCjkqMGGcPWvH+Bh3bh+6je7hw6f5xueXALQu3wLwJ3Mn2mOJn
	 5F23h/KOEpMhPuL56aKlMtJHtlpnT6BKndKM6qxdHZIS2K2d2BcEfJJtpKVDgQVM4fe51
	 cWOFBrUq44BhjjFEGQYUE164+ucB8HBk129HO/PZf6g7zqTWhnCLw9/r7/tPPwGr9f1fT
	 /5r3zJPq1YDd8z3ic1h1sQCBxk/PXSZf/jdVrVm2bJVyxmVOVmaRvrOLpajNs9Hac3sF5
	 U2t0O9LSLLQa+J7OeXYOmJVCN5ohc8zfoGC/z5eRe26wBv0okXjwWPZQ0Bmae83MRow==
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=Z5tQ8o4h;
	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 1BB59606A33F;
	Tue,  1 Dec 2026 23:36:39 +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=Z5tQ8o4h
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=1796168198;
	b=FvgGTDVmu33SfIDzvEL/C9KySMOZWRAF4NZ2mfvvDo4Y1XwpA8EcS5SuBhYOgy24GyA6
	 s3/0B5hoEFa/yYxiU+GMMOs9xUH6g5LMkysw0JiOnRUWBjFzeflyFbzLaPUbN8KDrBfLQ
	 UeAebynIXo1hDMPY/0h1uDsA8qG5jiOMM2WyKSjk+Sxf6lVG+Hjhxd3BwntSrOKlwPpKJ
	 DYZybm4u2nnehM9tO7SYKq69ZCCoG4FD2/VESDMhs8C77fXSfQHozPMBnU+jSbwfrf8KO
	 SErMvu4ylZ0yhNQjfAKQynz26B95+21KUCZnmKXyfnk+X7fJqZZlpwj0OLHulL/b6Ew==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796168198;
	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=jNPW/Pg0JpLswGfcRTLclR+xYs8LeJ8SC8w+XDaMugA=;
	b=uPkhR2jslMKg/UUF5rf56k2b3wzXrHDJp8Q+1azwntq1nATCEGVLcqWFwu8piYl7YGpV
	 MFnb3uYO6auSejQFP96HmLzFn0XBqEwJzYAYtfQz0+LWfp8iIdgzxDtsPm3evfQw3ULlC
	 l/uNreRy+qBBrgAYPPI/O5xcpu8hWqk9sLVCDHkIndTNwpw6bobG3hLZgbc3xyVKkRiZV
	 YnRCTNTuBEkiYGdqGjVUOQ6NqEt/N4208MD3dzx0fR13xdlg/IhfY+T0IRYzQ1qiFnUvK
	 M8n+u5VoO6ElAwQzJjypE6SUTr20FThby7vrvWITFb42tJ5JysqqVWNJC3Z/cUuYxbA==
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=Z5tQ8o4h;
	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 34641606A31A;
	Tue,  1 Dec 2026 23:36:37 +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=1796168197;
	b=Db2/W177i7pekfLy2kqOvKykFz4VvEkEY7zxYeeYb+1zAGn8MY1A4ZKsDjZBcJMl6w65
	 k+5liRzYQxYcNiW5eixaO50ZwUypHyU91n+Ws/oeCeRhsSJ2ImDu4MQKJI32fMQxPUxUV
	 rS92o7ZKbYs7PJTWeXrw4+7SaRCtpNQ7IxpDUY5BMMlLUIJnQM6pHfiOlmC6Iz3oWd/1J
	 w6g+Ik3w/TtxQtOgQhnanvbXCgkr6kYUBjZyu382eK0dtveFechQNlWkV7dufM7eft9uo
	 Uen5X1c7ikePYMZMQ/ElkUHTXEZ9Talk52Wd8SWEBZd1NA7tZ3c/duIPNrt7k3Oz2tQ==
X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256;
	c=relaxed/relaxed; t=1796168197;
	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=jNPW/Pg0JpLswGfcRTLclR+xYs8LeJ8SC8w+XDaMugA=;
	b=qfyH2wxbVHWRlb3wTcgiSEpDbrjfr9DpfA10q/XccrsdKbZg/tiZ2yYNujHJshhgVf7c
	 kqvalf8TzQ8BY98Hr4pydFGiDjaw5me25RESheP2U9ibiy8giL2WP7kZ0y22rlWE/tmwc
	 yl2JC3m3aU714Qaj1wBSchAaWW6svEPJtDD9cXLbrtaoqA8zB0MmZrbQZk9A3NcmqnxN+
	 jOCfqyJFAV1PGDSbBWniH68HUjXGXDHKqO++GpYvqpdg6frOjBfsvCKR4AIb/qAV7X60i
	 hFHs4JWHBbVt0UkpBc7tujjUCe9ze2/fRcVgjlKzSl/60sPRczxFm/qAMxakWMYhTUg==
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 0EFBC1F00893;
	Tue,  1 Dec 2026 23:36:37 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796168197;
	bh=jNPW/Pg0JpLswGfcRTLclR+xYs8LeJ8SC8w+XDaMugA=;
	h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To;
	b=Z5tQ8o4he9NbiAG7Q08/qAqLMMV9OKwP3AEJe+gigMD+vkVCKrQGsSRiAmyZ5+8wQ
	 6o8P5HNgHQ9VD600bCfdF6dQ+ZeV1HZJLECTh+B/8r/v0k1DXvAKkNjzzcTSUVuIG7
	 Y9UFiFV0si5ApvPFJjWZuEQWNETJPILLzxhyDs6Bh2slsDJM9FWmWGRZTiEU+is9wt
	 BlFNcywkySgLDafh2oDKNY3rjhPwavhrZoncwYYVpVPsclNa9OcApcDJGZebT1Z6aS
	 Md1jigBgYEBU9vAhDGKRHRLAb7Y6Vqyis8e3A/Go5KFsThZ/upABPk/sg5b1ZqAmgV
	 DVdOC8YCrcZUw==
X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1])
	by lkml.kernel.org (Postfix) with ESMTP id 924924F160;
	Tue,  1 Dec 2026 23:36:36 +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: <20261202-b4-cs7542-ethernet-v6-0-a8c1905efa9f@gmail.com>
X-Cc: Philipp Zabel <p.zabel@pengutronix.de>, 
 Hans Ulli Kroll <ulli.kroll@googlemail.com>, 
 Russell King <linux@armlinux.org.uk>, devicetree@vger.kernel.org, 
 linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, 
 linux-kernel@vger.kernel.org
X-Mailer: b4 0.16.0
X-Developer-Signature: v=1; a=ed25519-sha256; t=1796168195; l=5895;
 i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id;
 bh=gW8wVv5EV4Zs86pnqMUV410Pvkh5hZkkf0TYPGZzyKQ=;
 b=aQkjf6fOWOewJok4cV+StB+5rTGzLAVo8mevvkrhua/E0aaq2k19YJfDGIoNfWWLQU4E0RNhs
 qvUqXvOfbIHCBMqkJ3D7677kJ9oCDrL0oEMY8BDbNJhTwhrs1IX+nwV
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