Article View: linux.kernel.netdev
Article #8683[PATCH v4 6/7] dt-bindings: net: dsa: mediatek,mt7530: add EcoNet EN751221 switches
From: Caleb James DeLisle
Date: Thu, 29 Oct 2026 18:42
Date: Thu, 29 Oct 2026 18:42
110 lines
12406 bytes
12406 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 f98b9113ad12..011c94ef9554 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:
@@ -109,6 +115,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
@@ -158,8 +172,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: |
@@ -221,6 +235,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$":
@@ -328,6 +356,7 @@ allOf:
- airoha,en7581-switch
- airoha,an7583-switch
- econet,en7528-switch
+ - econet,en751221-switch
then:
$ref: "#/$defs/builtin-dsa-port"
properties:
@@ -335,6 +364,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:
<20261029184202.1859843-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-353445-linux-kernel-netdev=dewy.ruReferences:
<20261029184202.1859843-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-353445-linux-kernel-netdev=dewy.ru From: cjd@cjdns.fr (Caleb James DeLisle) Newsgroups: linux.kernel.netdev Subject: [PATCH v4 6/7] dt-bindings: net: dsa: mediatek,mt7530: add EcoNet EN751221 switches Date: Thu, 29 Oct 2026 18:42:01 +0000 Organization: Usenet Network Message-ID: <20261029184202.1859843-7-cjd@cjdns.fr> References: <20261029184202.1859843-1-cjd@cjdns.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2074747"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:IyBdfLohu5To8zD1anCCaTydxgI= sha256:9sc2IcX+UeVJd388G8Xn8vFKQ/sbhPJhXiaUA9X4hEk= sha1:khmRUxp7alT3nDcTsV6HJl5hnbM= sha256:/jlNrRYWyQwRsdVfHBRelsR5ErmBtfIwZq4Ed63TbCU= 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 A2135125C6F; Thu, 29 Oct 2026 21:47:43 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.949 X-Spam-Status: No, score=-1.949 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, URIBL_BLOCKED=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 RlorSHrf4jKm; Thu, 29 Oct 2026 21:47:39 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-353445-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 2D671125C6B; Thu, 29 Oct 2026 21:47:31 +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 B1B16309CC; Thu, 29 Oct 2026 18:43:03 +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=1793299372; b=vf0XTC/ptI6PDNPkboUiHYkRJtEtAlBS+mkp2NjAeOEPuLhrZ9FqrpPJxWmoAuU+u5Nm ve/4zwXSI48dXaD/ghAzXeJktci+RCe9ohohhHJXNJ1eSO/xDo7miU7Ua/6vbZYQpXFJS asiKxD5pA9Pb8FaCRAvjLDCsG36yagd1ZJyydNYNhhTFfhyhyklLrheVCtu3xsN3zCYpL jmPi733TAdrMgN8T7x7eTwAG91sBZEdZ2s5IwHK9YQMXstNV1a1s5XMx8gRknYczN8nQA vQsyFUhTuHmrC/mZtNCW+j2T3eTNcf7rovu8G+XelbT65/ozNy1ue9RE2eIzgTBy0Xg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793299372; 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=y1QUnLMzQA9qZBFqnAYy720sjw2bb3qb84XY0QmjRBw=; b=P/7gS7l46j0ilpJfro3KAsQfN0N26AlWKnFO86CH9j5RXhPivQXfT0MaYaRy7tWTh/sI qTVH1GthkuwlmE0iWxVZVq68kqvc77MfOkAc+7FN4NgpOmWkj7zTuHhCOzmvA/CfDUHAu BMfjB5poq2WnglbrB+gUCE/DoBPaiVqGwRwbNo4wvDEgZgfTTLDF6g1M6Lz6WrIzY6Ka7 RhL7v4mqi64j58MhoZiGz1bSO9wiQn0bviFNwfN+JpHQHVd1W3DpdIPZqnXkrKzawBj+6 P/jrE6byPZHiDxDH1Ci0kocbUxPtO5KCpaxXdpxYdy/h+VSGOs2IfEUVTCXg6vNi0TQ== 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=hKxwh3vX; 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 BD321606A324; Thu, 29 Oct 2026 18:42:52 +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=hKxwh3vX 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=1793299361; b=3D+cs0MP2NqVFAn7/Tk8r9gCxmJ6zYhs0474J9GhDJJ7glzXqDfIlfuUJ13Uv27PqSax dgZTAdBvGG+6o6oN7nfUi9c+kXuZswq+JMmn4dEgQWNB9Bq7VxCxavXbNQrhmYV68zjHm 3kQc6uccPFh3bxYTpfkwI1tQKosq91iab0u4a902vqHPYdjl4Lzl91GuzYegcLqWLmmne CbhSENEJv+37JEGjQdkya6AlL2URiFBFNQEsnAgJtxh9UtucmedBPZij21eHUIk3c1hdj rOqAG7eumlaix+BIYw3piCzz0BjmRRSmld9uugp+9u4sjm5dCT5+Qa1B8vwH/eTq3FA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793299361; 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=y1QUnLMzQA9qZBFqnAYy720sjw2bb3qb84XY0QmjRBw=; b=ezzua6zRlHiPJosiAE0ZjcgQgXYtwvGBKJ1SpT7uztuUPLQ2ojd72zqQkgEEK1/zhW0G iP3AQ1IcKXlEMRZx6Yh8yN49WxtdKFqAwtWOZc4dy2dVRtHphZ5UIx9ghTNjmqp3NF8mc 2evoGha1BhnncPdhs6CkwES6c+pDjpaO/yEUYE790hRoA4knen7D61EhFAua+SXBcMKWT YpxYAVvbYF5GfakPt0yL0U1v9TR42mXm21c1Jbu68L2o6rR1Ig14LStN6AHH7EOQH2qAD +T7k7GP4BL75q/0W68kTQ+UV6Y/Idr/HumROFNGIs287O3RSdWbBcbbUZ8HjtR3Uv7w== 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=hKxwh3vX; 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 2E5C760A2603; Thu, 29 Oct 2026 18:42:41 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2E5C760A2603 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 9D6931A60F1; Thu, 29 Oct 2026 19:42:35 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cjdns.fr; s=dkim; t=1793299358; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=y1QUnLMzQA9qZBFqnAYy720sjw2bb3qb84XY0QmjRBw=; b=hKxwh3vXnopJLRNNpY+11Nshcb51DHgjhVEA4h09oYoYrRENuf8zOq0NfngLI/KDjQn/mM xsxAYlLMF6GrKDhJQGLa4+WTzkT9OloxTC6yl34FxwJMuw8jTOMD6L+82qKhvQCQiXCy6+ T2dJspxl6ROWzWlnIC6y2Hf+STY22+V2Vh6hBx5rzD6M9rwY7R8YvfXgFLbRQP8LRD6j6t miQjK2ThWcRQOD43TqsOZCJowalNWSEDAOviG5xqz/ogZNn6/027jj/yLbykAOJw/0LHhv 9mbovcFzntO9uLl6DDu17sGYBajq6/DuZkKieXUMHxRF+FkJW0gE2SeQ+3J4cA== 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: <20261029184202.1859843-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