From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=5.135.140.105 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== 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== 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 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) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2E5C760A2603 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cjdns.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cjdns.fr 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 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) 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== From: Caleb James DeLisle To: netdev@vger.kernel.org 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 Subject: [PATCH v4 6/7] dt-bindings: net: dsa: mediatek,mt7530: add EcoNet EN751221 switches Date: Thu, 29 Oct 2026 18:42:01 +0000 Message-Id: <20261029184202.1859843-7-cjd@cjdns.fr> In-Reply-To: <20261029184202.1859843-1-cjd@cjdns.fr> References: <20261029184202.1859843-1-cjd@cjdns.fr> 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-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 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 --- .../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