Article View: linux.kernel.netdev
Article #27398[PATCH net-next v9 1/3] dt-bindings: net: Add Cortina CS7542 network engine
From: Fil Dunsky via B4 Relay
Date: Sat, 05 Dec 2026 14:04
Date: Sat, 05 Dec 2026 14:04
186 lines
16482 bytes
16482 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>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
---
.../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:
<20261205-b4-cs7542-ethernet-v9-1-8fbf7e3314a5@gmail.com>Path:
mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-378007-linux-kernel-netdev=dewy.ruReferences:
<20261205-b4-cs7542-ethernet-v9-0-8fbf7e3314a5@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-378007-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 v9 1/3] dt-bindings: net: Add Cortina CS7542 network engine Date: Sat, 05 Dec 2026 17:04:43 +0300 Organization: Usenet Network Message-ID: <20261205-b4-cs7542-ethernet-v9-1-8fbf7e3314a5@gmail.com> References: <20261205-b4-cs7542-ethernet-v9-0-8fbf7e3314a5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3041703"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:GXdk1ZGiy8WY0wSb32Bu4wSLGSE= sha256:c7yEcwpSOnA0bjvvpjCXXkwxAeOKLCQLcGF8CyPR7HY= sha1:9k2rgvAlP0AD7+fiZxe9zv/FUo0= sha256:ZbMg72YNTiNQqydY8x6WcGC9LlQAHAq+nAQ05vNxQuw= 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 CEBE6117E34; Sat, 5 Dec 2026 17:05:30 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.539 X-Spam-Status: No, score=-2.539 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DKIMWL_WL_HIGH=-0.14, 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 XP_-86G0CXMy; Sat, 5 Dec 2026 17:05:28 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-378007-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 EFC53117E2F; Sat, 5 Dec 2026 17:05:19 +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 292C72B0C4; Sat, 5 Dec 2026 14:05:06 +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=1796479496; b=I/96ZhCM9o2d1992lQHdXggVNN+sdzBHFyO347orK5MYIVVBMn9h6FVOWs0m42rFyEsb qXhNbe8XQiiSdlcqP4+kQw6R16dUNoUjZzjWj1nYGpnWUMPularfOg9oCA0+zmSfnUzCK 0CJvGtDVi2A/y4C2HhQsVJwU1fo+pbQBYYE/hKBz1Y7dcQOVf2+8VoHhpTLpvpbyScsuv PNYqqAbi+uc3VXUQi4NTx6jse5ZBangYCvxg/zyYJBxUIEqJglrFWBSFOI8YhnIVuZJYX H+jajAvpz4OIzIXP4C5UXFsOF9PJuGxp3TfCsZH38pHEPXAeCVTnznJqKAXLCQxgqdg== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796479496; 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=iXfDYngTGXjnE/ulMrg88nhzUWlVAJD9XplBbEeQzzs=; b=DgxSWfLifCN3nMbMFG8HNpuTMxRbxTdKH6DHTXezOi3RKAuiPKErwM5vL0nqL/HPQbmi z0qDkNyPIaiBOQ3UrYNnxd6J25m4yMuIq9VLyWEvQiyXhJm1B7y+opqXuTbtgFPheRwoV wU5qfYfywn+MWH9SM06SxMFuGmPGINevj/RCacLhz+i6341yCZ7EMjWLyOgfaQVLTJfWO rxcVpXzg3MnRqZc2BCxeYoNstzJPMvFKxqNmxGK1u5cHw0qsaSoaAsC0wIgeoP72M1O+A hhi3YIsJ5aRZZ+1+27RVON9enc71xNkZCobaJOx4XM/fiZB424zdKoVWdqp+O9XTdAA== 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=dqIgozpD; 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 5FEF1606A6AB; Sat, 5 Dec 2026 14:04:56 +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=dqIgozpD 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=1796479485; b=qTQsgn9QXgsBEUbMWjqcD4prw7VFtKv1+jvlX2h1/gAA8CW17GZaP8/afNuZ7KQPLZSH 8VdIT7KmimbhDqHQVORQwgaw2D5FupCuTn01NMa1wtPnvRYp2mWW6YU7SHtFDtIbDxENX 9ue7dJ/T7zG28FoXjylaQet1SE/h1dEm0W5l3fRHMoDSza6MP4g7glk5K3GmU/bEWPdBy a1+RNgRR17oO5gxH2g9PytiWt6lhOhemkmO5mHnet02ghbdngN5hLbNmXumKm7TMSUBSG /CQ8hdoqzWywI6Kvvy+KBnF+BEq2KDB9hYWx9EwNN2aE6l5ANyc2Oq90Psef2WoTisw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796479485; 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=iXfDYngTGXjnE/ulMrg88nhzUWlVAJD9XplBbEeQzzs=; b=eNY/tECZDgu7y4W0HT2sY6/GDreBV6/+K9gyudyzq7rgLj6zVi1z4hgV35OLv3fjaEkV eIi0CK45e5xsaNuokQVDTODi6sdKrMZIpR+f99ve7Qd1QKCetLe3SoEN1YAVs1XSWx39S XoZD72nw61yplAj4d9HJJYrt/4Zvja8PKNGs1R7YI40rIx8MQRgbrzK9ng+z7tdRdo/ai /FFUB3/vL9r5BReidl594eS3+13A8SlsRzfk3yQGoOqSNyWtijtmDYgvQg5Uw6rVyq/Oo ZFOiVSeCFlCJ+y4BgCr4wbNfPeLTgB6Gm7PSV+dkahefsFdbhUtGFIWgpXyj3nSSsuQ== 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=dqIgozpD; 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 7B622606A330; Sat, 5 Dec 2026 14:04:45 +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=1796479485; b=tgg2AW8cd/MymvjkR7plPmqIHiOpGEGdeIFm6wfjY0TOdHstlkcBzkh/AJHkWViXHolF mtrsxQ9hSUjO2eV4XxE3RxiCT6tyeiYtEjI87wqcibbq4y9UjnGZ7a+Y/JaCJ+BxI5tr9 i/Pwc7AqLzo0/Jed4c9HbOmCbsmabd7SExH+6p57qnp7a0wvZ6BkXxlXyYUs9Wlzx8+Tm yIetF+nvLKqj8FP8aosKgRCE5pEVY6iRwbVKEkUs3vBvZfbwe7db4JEJuDcuMl+PH9xmU BK9wDoYYWcMsxGgEz5zF18T77YeYgGYv7XzCXFAn5+JooXnf/677VNjRnkDSzDpnUOg== X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796479485; 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=iXfDYngTGXjnE/ulMrg88nhzUWlVAJD9XplBbEeQzzs=; b=QJmYzTtG6ptLkpqU+ZQzVcqbkf7Ndkkf6sEwmQo7bkJFlF3qMuVvWPwVmtzO4K009Naw ivLrtUnnaTVC540m4JM4oJTbxJfB+bOdPgL55avo53o2/C25iD6nfSAUdyl5zjKqZHosG eJChzzAhFtZnpVIlJdrv+lh3D1oL9NETOWzvIn7PqmD1TKWJ7y4b5NJ9PyCONhTkby6Nr bwEE0OW1AcxzNcqId83MgYLt49weytbQqPh6AXjIEZqLh/4ckfI+ZKZtX3mWUVq6m8R/m fNQ1Q2eYlZtQjhyDnM7urM+DE87HJ/4cHsxSJYVCrXmNaf4QuzYCLc8WJVeQDg5DuMA== 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 881A81F00936; Sat, 5 Dec 2026 14:04:44 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796479485; bh=iXfDYngTGXjnE/ulMrg88nhzUWlVAJD9XplBbEeQzzs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=dqIgozpDyvMwUC+nWXYMfswlPagrV5nj5A93JCgL/VQZh8z1IEe/YF15FshMgLpyg /QO3TpxiesxxAuUpSN3iUNi1xT1+8v+TVsCCMgk1UkVFL4L3YzC2VduDaEx0qZLioK pm5IzDKmEWfP6Px43aUecU9/r3BWLDo0+3MC6VZ0G1dp/jNAe9rfNUWFzF6WY1+eut gb5RGuqswqomHWFZa8UM20VlLG3GxGT0LbUa6D1OHHmX6BTsPnkVLkkQVEj1yODllS 3AFgCd5imbIdgpLbtCKt1CZ0GFQt90wROM6Z9qQyicZ6KkUE9DwaifW+dQBI0gGnOc POdJTcxgYX9zg== X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 148D450354; Sat, 5 Dec 2026 14:04:44 +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: <20261205-b4-cs7542-ethernet-v9-0-8fbf7e3314a5@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, Willem de Bruijn <willemb@google.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796479482; l=5945; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=yJpboUqCukwTMRNjM+9EUZFGgLe2Bww+0uIVevU0Kyg=; b=FJ1nPsHBAat2r1hxooBk+gPGaK1GN+7fCTM3hBNrVBpk6JG/qqgxSQOhUqwfSs4V9o6MihTjv bM2MTdbUoArDfyCtp/Sl8xepGPxzdErFyZZYJqKhHQvschNPOMv72ED 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