🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8099

[PATCH v3 6/7] dt-bindings: net: dsa: mediatek,mt7530: add econet,en751221

#8099
From: Caleb James DeLisle
Date: Wed, 28 Oct 2026 01:13
110 lines
12372 bytes
The EcoNet EN751221 MIPS SoC integrates an MT7530 switch memory-mapped
in the SoC register space. It is similar to the econet,en7528-switch
except that ports 0..3 are 10/100 only, port 4 has a gigabit PHY, and
port 5 has no PHY, but is in some implementations connected to a
downstream MT7530 multi-chip module via a TRGMII link.

The downstream MT7530 is similar to the MT7621 multi-chip module and
has all gigabit ports.

Add the econet,en751221-switch compatible with the same constraints as
the other built-in switches and also add the econet,en751221-gswitch
multi-chip-module switch whose port 6 is configured as a DSA link port.

Signed-off-by: Caleb James DeLisle <cjd@cjdns.fr>
---
 .../bindings/net/dsa/mediatek,mt7530.yaml     | 43 ++++++++++++++++++-
 1 file changed, 41 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
index e29fb8693498..b73732d28d8c 100644
--- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
+++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
@@ -29,6 +29,12 @@ description: |
   and the switch registers are directly mapped into SoC's memory map rather than
   using MDIO. The DSA driver currently doesn't support MT7620 variants.
 
+  EcoNet EN751221 SoCs have a memory mapped MT7530 with 3x 10/100 PHYs and 1x
+  gigabit PHY. Some EN751221 chips such as EN7513G and EN7526G have a multi-chip
+  module implementation of the MT7530 as well as the on-die switch. In these
+  packages, the multi-chip module is connected to port 5 of the on-die switch
+  via a TRGMII link and allows for 5 gigabit ports.
+
   There is only the standalone version of MT7531.
 
   Port 5 on MT7530 supports various configurations:
@@ -111,6 +117,14 @@ properties:
           Built-in switch of the EcoNet EN7528 SoC
         const: econet,en7528-switch
 
+      - description:
+          Built-in switch of EcoNet EN751221 SoC
+        const: econet,en751221-switch
+
+      - description:
+          Multi-chip module gigabit MT7530 in EN751221 SoC
+        const: econet,en751221-gswitch
+
   reg:
     maxItems: 1
 
@@ -160,8 +174,8 @@ properties:
   mediatek,mcm:
     type: boolean
     description:
-      Used for MT7621AT, MT7621DAT, MT7621ST and MT7623AI SoCs which the MT7530
-      switch is a part of the multi-chip module.
+      Used for MT7621AT, MT7621DAT, MT7621ST, MT7623AI and EN751221 SoCs which
+      the MT7530 switch is a part of the multi-chip module.
 
   reset-gpios:
     description: |
@@ -223,6 +237,20 @@ $defs:
                 phy-mode:
                   const: internal
 
+  mt7530-passthrough-dsa-port:
+    patternProperties:
+      "^(ethernet-)?ports$":
+        patternProperties:
+          "^(ethernet-)?port@[0-6]$":
+            if:
+              required: [ link ]
+            then:
+              properties:
+                reg:
+                  const: 6
+                phy-mode:
+                  const: trgmii
+
   mt7530-dsa-port:
     patternProperties:
       "^(ethernet-)?ports$":
@@ -330,6 +358,7 @@ allOf:
             - airoha,en7581-switch
             - airoha,an7583-switch
             - econet,en7528-switch
+            - econet,en751221-switch
     then:
       $ref: "#/$defs/builtin-dsa-port"
       properties:
@@ -337,6 +366,16 @@ allOf:
         mediatek,mcm: false
         reset-names: false
 
+  - if:
+      properties:
+        compatible:
+          enum:
+            - econet,en751221-gswitch
+    then:
+      $ref: "#/$defs/mt7530-passthrough-dsa-port"
+      required:
+        - mediatek,mcm
+
 unevaluatedProperties: false
 
 examples:
-- 
2.39.5
Technical Details
Message-ID: <20261028011317.1557238-7-cjd@cjdns.fr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352694-linux-kernel-netdev=dewy.ru
References: <20261028011317.1557238-1-cjd@cjdns.fr>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352694-linux-kernel-netdev=dewy.ru
From: cjd@cjdns.fr (Caleb James DeLisle)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v3 6/7] dt-bindings: net: dsa: mediatek,mt7530: add econet,en751221
Date: Wed, 28 Oct 2026 01:13:16 +0000
Organization: Usenet Network
Message-ID: <20261028011317.1557238-7-cjd@cjdns.fr>
References: <20261028011317.1557238-1-cjd@cjdns.fr>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1674814"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Lvp9LpMjyAHmt7n9qXyaSj+noXw= sha256:m1HMcAoUic0WZdQv7l83AQZfL4ePCd2oBuu7LQzVnRM=
	sha1:rUuHF2fk42oN5HRsNhunRKhrr/s= sha256:XLjm3U08hO0p0UsaHyrX47FgVVzk+ipdMtelEEVUdNQ=
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 F0DF1125C29; Wed, 28 Oct 2026 04:19:08 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=cjdns.fr
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 rLgttkzNTMwG;
	Wed, 28 Oct 2026 04:19:06 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352694-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=cjdns.fr
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 395E6125C1D; Wed, 28 Oct 2026 04:18:58 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 21BCF2C376; Wed, 28 Oct 2026 01:14:30 +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=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793150070;
	b=KweHaUT+PhIbEZPAc1F/Zol4xj07Pi4YnnwMHrMFX/wAt7Sszf0amWqId3id3/ptzAoX
	 xWAmAmIAcFmsjpxcXexocNeuhibDHNwKwssHzGciG96hx55CPcNT6sype2T7SDPBFOftU
	 GhNBnPW1Xomp/jspzTDqb5CPq916jHlY9eHUMcRtBX4xZqOwmtosf5hJ24EeIKf4Rqv7H
	 phMTGTmWTH5aouM7mxUy3lqt6p6i0LaRf40aILAxsau7TtqTdaaTiEh04GsZVSIXwvuv+
	 DMB+WF+Tnz74R7GezlNgBlE6tVlY1zX50+GOFEYgEE2fH+5T0SssboO557hqHwMrgbA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793150070;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From:To:
	 Cc:Subject:Date:Message-Id:In-Reply-To:References:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding:
	 X-Last-TLS-Session-Version;
	bh=7mGz9c5j7qfN9eG7dQvgcA1AagbKKPWBpRjHm9HlsGI=;
	b=pS/iNLvtEkb2YFH2P9WRrVOze8ENsJfH2xMwlr26k61qa+eXoszWAO1jRlJQp0opUojg
	 cimNf7guINNn4E+1BO540pyw9cO5j/kbZelf3ZIhUNuL6dkQdwT+BIf6a9tLQxRk1uDui
	 4Ql37SQT3vLEOcD0vx2LjBalq0KC6JX2kdk8t8HQygEODO50HcGz/78qAhjXwjAcdHLT7
	 oZO35+pd2Rsnk/3g8ktaDSpB+wOG98DNnTwzCtykc4re5qtj/jIKTGBcTjh/4HEqwP1CL
	 b3u1VICz9UtLzmegDMcLPOWI1lphTpge4n+Rh2AevXZplCbWvFBmaOOb6rTSUWbr8fg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=cjdns.fr header.i=@cjdns.fr header.a=rsa-sha256 header.s=dkim header.b=GJZYhmSY;
	dmarc=pass header.from=cjdns.fr;
	spf=pass smtp.mailfrom=cjdns.fr;
	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 ED048606A322;
	Wed, 28 Oct 2026 01:14:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=cjdns.fr header.i=@cjdns.fr header.a=rsa-sha256 header.s=dkim header.b=GJZYhmSY
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=5.135.140.105
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793150049;
	b=tLEIF++rxSbXhdUYVmiPToiD9z+u4pUWmTsZsmRy3CXim0AtkqxFePlSnP4kFK2OoRKY
	 h3kbL/Aaxhu+SoMQJ9nlkhUTUhn4fZ3Kl3s8zgcY1xCZcrc43Vz+4q+kVLpTS2Nani6Il
	 1+jnaNd4Kze3vL9mwmUz5aSvLLe14T7orwuLDT29ScIce8Gxzk+LSHnWkjB28CdgRcNq2
	 Ucz+wtmHOOxkHAQG6KVaGNVgf2WIUwsG/dn+hfJnIAuOWUlJCpTwTncVDQlbHXFOLjw3C
	 2er9FtmUd25f2c5Fhu9WZ3w2Ej3Kt0VnEGJJbBVFVX2XqKZY/bAgnNHkOI+1HwmB7vA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793150049;
	h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date:
	 Message-Id:In-Reply-To:References:MIME-Version:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=7mGz9c5j7qfN9eG7dQvgcA1AagbKKPWBpRjHm9HlsGI=;
	b=j9C3exCSYi/DeadHtodYA4evvONQoCDZT1x73yZx6NF2DzxPJCgEYeS+ozql8oaWGIZp
	 ijdy8UFjsQLT6FgXpAG30tnDlxV7rqFcirE28UKVEEZYiqHMOkV+Fqyy/4MF4HVHqbDY8
	 jyz/x4mKZX8Upo/uR06UPIC+JMIgK76c5XmJX300zEz09s+h753WUmFxHnQQMKM+k4A5L
	 Pg4XtHTFMPQfGUtnuPeFJ4zUezb1KL6jL9ulJXBRq+qJs6+IhdnTbJLdrjAadRUOI4FwH
	 usuydsQ1JqiOtRb9SQayDZS3D45/NEnOCNVH85s1sc89a86HzWJgV6B9ZPZpBFxJrGA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=cjdns.fr;
	spf=pass smtp.mailfrom=cjdns.fr;
	dkim=pass header.d=cjdns.fr header.i=@cjdns.fr header.a=rsa-sha256 header.s=dkim header.b=GJZYhmSY;
	arc=none smtp.remote-ip=5.135.140.105
X-Received: from mail.cjdns.fr (mail.cjdns.fr [5.135.140.105])
	(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 A6A55606A33C;
	Wed, 28 Oct 2026 01:14:03 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A6A55606A33C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cjdns.fr
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cjdns.fr
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id A984F149C1A;
	Wed, 28 Oct 2026 02:13:58 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cjdns.fr; s=dkim;
	t=1793150041; h=from:subject:date:message-id:to:cc:mime-version:
	 content-transfer-encoding:in-reply-to:references;
	bh=7mGz9c5j7qfN9eG7dQvgcA1AagbKKPWBpRjHm9HlsGI=;
	b=GJZYhmSYRjjyoGnMF5kdYoVuMhzyOS69YSS0y3gevYYqkdxO+qoOOLsi08Qt2dQNU2CHgR
	AAxR7rSUr6mDNeAdbzOW2CyR+Ag++ccyEpDDahEfQi4reotb8bZX7K5qEMuCK/Y8bkCp16
	HhdPYZg08OOtTxsN9n8zmDRED4uUTtLqLjK89Y5u0n2voNm8LD+69c18D7AXxUEUgVj+BE
	wbv/ijayaz9T2fJwvDa/kIWefmHcNRGyUCNRyEucLIylRHBAnFqFrCUX5yfKHC5XA2OvcT
	hPKUR5zrx1EsbirGzAO5E7cNC+KnewaN9+EMMUto7XIH+ReAFgF3glatWgoSGw==
X-Cc: andrew@lunn.ch,
	olteanv@gmail.com,
	davem@davemloft.net,
	edumazet@google.com,
	kuba@kernel.org,
	pabeni@redhat.com,
	robh@kernel.org,
	krzk+dt@kernel.org,
	conor+dt@kernel.org,
	matthias.bgg@gmail.com,
	angelogioacchino.delregno@collabora.com,
	chester.a.unal@arinc9.com,
	daniel@makrotopia.org,
	linux@armlinux.org.uk,
	arinc.unal@arinc9.com,
	Landen.Chao@mediatek.com,
	dqfext@gmail.com,
	sean.wang@mediatek.com,
	devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	naseefkm@gmail.com,
	b.larsson@gmx.com,
	Caleb James DeLisle <cjd@cjdns.fr>
X-In-Reply-To: <20261028011317.1557238-1-cjd@cjdns.fr>
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-Last-TLS-Session-Version: TLSv1.3