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

From: Fil Dunsky via B4 Relay

Date: Wed Nov 25 2026 - 05:37:18 EST


From: Fil Dunsky <filipp.dunsky@xxxxxxxxx>

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@xxxxxxxxx>
---
.../bindings/net/cortina,cs7542-ethernet.yaml | 160 +++++++++++++++++++++
1 file changed, 160 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..79e7d268c
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/cortina,cs7542-ethernet.yaml
@@ -0,0 +1,160 @@
+# 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@xxxxxxxxx>
+
+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:
+ 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