From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796076448; b=flU0g1paQNqaJB9+q95xalH0SciqSjWn+sHfZT288agBP3+cLiQc7gFbZLZpBOuSeuj3 HdrBRDc1KMEgmenAzv5aUuIKZAjAbpYzl0W/TcUhni8d2VxMBTKPa5dOkY0okdDGVA4CP 2c2cmY6AdJKBTkA8Taal18AgYKkcalQ70C0tF2EEq2VU2Z3sAARuvGKA+f3vDKWhskZLu kN7tdwlOEZBhUw0i5XHVrHi7x1/F4+09Ips8ccBVmo6bjBJSeLzedBi6C21aulYfrBtXF Psxx6rQtQwpgBgyymJUtDLHvSMJHUkhGkLL7OhmW97tDc8mkdrBKezIagzPq85gv3Zw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796076448; 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=aivwrmHTFc63c+/vKNMQrNjDR2nOSm2FiUefjcrKKltsB+qvDMwoxoRMIN/9nNHdHDzT os/LWF0pHtVOsyTdVsjyxsKDruLaBoc0JleHi8ahDZwB8Kj4NaO77LEPQjZQsLKTGVA3P Ft/TYC4F8VNbUAWYCTys92Y4i5XDQcKXPBVXtiyxKjx7VmgldBZRe4XTInl6OpaGJcVHb oWK1zVJIeJJx2DFpyZgqrfRlyoxtmuDMKSNv2Rqu/Ih92YPvlaiyychXddFyXzNTcmSKq KoipwpeoJKxIplOuch7nV5UfIgXQT5aaSIaEzU1Vl8F4D6QVqTbzWXRtSfxjodzuuwg== 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="F/A0yrM1"; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 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 E2AB5606A329; Mon, 30 Nov 2026 22:07:27 +0000 (UTC) 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=F/A0yrM1 Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796076447; b=FGteWAx1IRDUsZXJ5uef55FB5LAu0ZMx+EYhf5ELSWYDCO6ymnLnsBQrXE7isEVtKAtJ 5CqKY51O6EPYefDC/hKBFoLhmQx682hq1s6RDrexLFPdOyGUlLkKjOTINj80Y4+VrNjSd rC1prQhyTlAbExt5DUYCnqVpH5WgGWV3hu/wBUd6VdoTeszOV9cDMg71E0u+nSE7V0bPL pdVOdi/V6zqaJWmM4r/lllGri2FZjDV+VftL+Qs63SzzTK4w7SDc9qwAdn/yhUe74L59x u0xqRknMndgxI6impYvMsrenrwAvzsOUgCcrricBzmXO13fk3OeiV/2X4o4YmJKLYbA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796076447; 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=BbvW53lxSy4am5dMB5eqO5wZz8XO4lkNgKIj/2s11uglnmQ8EPHcJ8grourU613d9FlP ULZgsWfz3npGrWG/PlNwF66kLYfKtuuWRQIsDLvd4P2Dm1nsYFS4GsGAQTiCK/nsve9hr vQ+0PzQIcghjp2NpWhBBsTSkUnSIv4KCQqpXssH5rNcMuH2+k0IkBPATmRlnEAFsozrnY IEFLeMq3xpjoy7YsZUCvwLRbtDaFMnd2Gn9tn0NYY1OlRC2anOt5a+BM/Y6fVgTO/EiS2 CqJZdReW8MMMU3BoZaB7G2l13JbDrFW7j05tZbpS3m+sLBrTvvJ0UcFxEqEfoOUMqcw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 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 5900C1F00898; Mon, 30 Nov 2026 22:07:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796076447; bh=jNPW/Pg0JpLswGfcRTLclR+xYs8LeJ8SC8w+XDaMugA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=F/A0yrM1uU/ge/nVsc68pqs84Jnu9jOTCgxH17atv2J8QKujeB2jcNEPfsnvQb4Es EO1hINfbxaFady/TmG/fzaD1FZ/aM7R0j8b6GRqFSdUs8FEUNlg1T5Oden+kNDl+fm wTYJh/HFnOaGLJ9OdKk+GmJUVg4nAQ5YWr6AYdX5cqH21m4QJE4Dhx5vDxOj401/Ud q13As++n2i4Vc9LRgZmsCyzXdDp4cexK/Wb77pRmgXIw1A18+3NYgyIHE0zhX4YzXT IliohDV1thjn3i3aTDGBRy3h8scpaYzowNeXzIC9BYWORknyu9mDF4ltuff61ZokiK VvsJLisUPrA1w== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id D9A014EA5C; Mon, 30 Nov 2026 22:07:16 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Tue, 01 Dec 2026 01:07:08 +0300 Subject: [PATCH net-next v5 1/3] dt-bindings: net: Add Cortina CS7542 network engine X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261201-b4-cs7542-ethernet-v5-1-0c079f9c8b1b@gmail.com> References: <20261201-b4-cs7542-ethernet-v5-0-0c079f9c8b1b@gmail.com> In-Reply-To: <20261201-b4-cs7542-ethernet-v5-0-0c079f9c8b1b@gmail.com> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Fil Dunsky , Linus Walleij Cc: Philipp Zabel , Hans Ulli Kroll , Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796076435; l=5895; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=gW8wVv5EV4Zs86pnqMUV410Pvkh5hZkkf0TYPGZzyKQ=; b=4PinzUANon2YoOrhJqoYqph0FoeFX7xP2QTiBGMED0W1skanwyLrKXpdKTSs0iTdFib/45Q/j 0Hxxf4zu+46D+bjIIwGrWRRLURcM+9xrHnaA/P/0knC6I1r+4Dxw/yO 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 Reply-To: filipp.dunsky@gmail.com Content-Transfer-Encoding: 7bit From: Fil Dunsky 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 --- .../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 + +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 + #include + + 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 = , + , + ; + 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