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

From: Fil Dunsky via B4 Relay

Date: Mon Nov 23 2026 - 13:44:37 EST


From: Fil Dunsky <filipp.dunsky@xxxxxxxxx>

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@xxxxxxxxx>
---
.../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@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:
+ 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