Article View: linux.kernel.netdev
Article #25667[PATCH net-next v18 4/6] dt-bindings: net: dsa: add Motorcomm YT9224
From: Kyle Switch
Date: Wed, 02 Dec 2026 08:40
Date: Wed, 02 Dec 2026 08:40
184 lines
13221 bytes
13221 bytes
Add a device tree binding for the Motorcomm YT9224, a member of the
YT922x Ethernet switch family. It has 4 internal GbE PHYs on ports 4-7
and 2 SerDes ports on ports 0 and 8. Any port can be used as the CPU
port.
The YT9224 port layout differs from the YT921x family described by
motorcomm,yt921x.yaml (internal PHYs on ports 0-7, SerDes on 8-9), so
give it its own binding instead of extending the existing one. This
also avoids the dt_binding_check failure caused by yt921x.yaml
declaring compatible as a const for motorcomm,yt9215.
Also add the new binding file to the Motorcomm YT921x switch driver
MAINTAINERS entry so that it is covered by get_maintainer.pl.
Signed-off-by: Kyle Switch <kyle.switch@motor-comm.com>
---
.../bindings/net/dsa/motorcomm,yt9224.yaml | 142 ++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 143 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml
diff --git a/Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml b/Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml
new file mode 100644
index 000000000000..01b61b47d372
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml
@@ -0,0 +1,142 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/dsa/motorcomm,yt9224.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Motorcomm YT9224 Ethernet switch
+
+maintainers:
+ - Kyle Switch <kyle.switch@motor-comm.com>
+
+description: |
+ The Motorcomm YT9224 is a member of the YT922x Ethernet switch family,
+ with 4 internal GbE PHYs (Port 4-7) and 2 SerDes ports (Port 0 and 8).
+
+ Any port can be used as the CPU port.
+
+properties:
+ compatible:
+ const: motorcomm,yt9224
+
+ reg:
+ enum: [0x0, 0x1d]
+
+ mdio:
+ $ref: /schemas/net/mdio.yaml#
+ unevaluatedProperties: false
+ description:
+ Internal MDIO bus for the internal GbE PHYs. PHY 4-7 are used for
+ Port 4-7 respectively.
+
+ mdio-external:
+ $ref: /schemas/net/mdio.yaml#
+ unevaluatedProperties: false
+ description:
+ External MDIO bus to access external components. External PHYs for
+ the SerDes ports (Port 0 and 8) are expected to be connected to the
+ external MDIO bus, but that is not a hard limitation from the chip.
+
+required:
+ - compatible
+ - reg
+
+allOf:
+ - $ref: dsa.yaml#/$defs/ethernet-ports
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/leds/common.h>
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ switch@1d {
+ compatible = "motorcomm,yt9224";
+ /* default 0x1d, alternate 0x0 */
+ reg = <0x1d>;
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ sw_phy4: phy@4 {
+ reg = <0x4>;
+ };
+
+ sw_phy5: phy@5 {
+ reg = <0x5>;
+ };
+
+ sw_phy6: phy@6 {
+ reg = <0x6>;
+ };
+
+ sw_phy7: phy@7 {
+ reg = <0x7>;
+ };
+ };
+
+ ethernet-ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ /* SerDes port 0 */
+ ethernet-port@0 {
+ reg = <0>;
+ label = "wan";
+ phy-mode = "2500base-x";
+
+ fixed-link {
+ speed = <2500>;
+ full-duplex;
+ };
+ };
+
+ /* Internal PHY ports 4-7 */
+ ethernet-port@4 {
+ reg = <4>;
+ label = "lan1";
+ phy-mode = "internal";
+ phy-handle = <&sw_phy4>;
+ };
+
+ ethernet-port@5 {
+ reg = <5>;
+ label = "lan2";
+ phy-mode = "internal";
+ phy-handle = <&sw_phy5>;
+ };
+
+ ethernet-port@6 {
+ reg = <6>;
+ label = "lan3";
+ phy-mode = "internal";
+ phy-handle = <&sw_phy6>;
+ };
+
+ ethernet-port@7 {
+ reg = <7>;
+ label = "lan4";
+ phy-mode = "internal";
+ phy-handle = <&sw_phy7>;
+ };
+
+ /* SerDes port 8, CPU port */
+ ethernet-port@8 {
+ reg = <8>;
+ phy-mode = "usxgmii";
+ ethernet = <ð0>;
+
+ fixed-link {
+ speed = <5000>;
+ full-duplex;
+ };
+ };
+ };
+ };
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 9336fa93ce38..864777388be6 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -18937,6 +18937,7 @@ M: David Yang <mmyangfl@gmail.com>
L: netdev@vger.kernel.org
S: Maintained
F: Documentation/devicetree/bindings/net/dsa/motorcomm,yt921x.yaml
+F: Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml
F: Documentation/networking/devlink/yt921x.rst
F: drivers/net/dsa/motorcomm/
F: net/dsa/tag_yt921x.c
--
2.25.1
Technical Details
Message-ID:
<20261202084022.3716891-5-kyle.switch@motor-comm.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375637-linux-kernel-netdev=dewy.ruReferences:
<20261202084022.3716891-1-kyle.switch@motor-comm.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375637-linux-kernel-netdev=dewy.ru
From: kyle.switch@motor-comm.com (Kyle Switch)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v18 4/6] dt-bindings: net: dsa: add Motorcomm YT9224
Date: Wed, 2 Dec 2026 16:40:20 +0800
Organization: Usenet Network
Message-ID: <20261202084022.3716891-5-kyle.switch@motor-comm.com>
References: <20261202084022.3716891-1-kyle.switch@motor-comm.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1925348"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:LHjX4dPPnQ42ru0wt54RCkieJbk= sha256:HtTJRWv6HU2JJoBPbAxVFFurgQ/mZPe6IL/o3aDxD4o=
sha1:ir+hvZpZb5QzkCcgPTSuxVjSJxc= sha256:PhRaIzQo8TYhHytvWSzmC8lY+Qbv2Irpt9WZQtpFgI8=
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 28DE31175AE; Wed, 2 Dec 2026 11:41:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.949
X-Spam-Status: No, score=-2.949 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001]
autolearn=ham autolearn_force=no
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 ilGG7XBuQfJU;
Wed, 2 Dec 2026 11:41:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375637-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=motor-comm.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 414F71175AC; Wed, 2 Dec 2026 11:41:17 +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 87D6030604; Wed, 2 Dec 2026 08:40:55 +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=1796200843;
b=yvowH/xEb62Oh+OZd1LDI4M0rXLDIkJhlMDKw7EKPBp+fLaVjpRVIaC3fr84uTY98628
7QQ45/89QvNOocP7RpmegWSueXE/DnLZlwsrlqAF88X+9+LXjFZk6YytXzFEv8gUD3dmM
qylRZfv3krJ8R6s6Bh3aClrIB/X2qifxN7CUZ+gzT1PuTfLzHOEjIaAOQJMF48qvbT/wG
vsseUyWx6pRQ6vUPZP1RdeuZHy5A2OWogECd57G6gmqFYrOB53xo6JB+AlVMniMIsSADN
ZRXT0wKn8813Ha/1GlbDS1V+D4iwIB1Ay8chWAGzqeTEXMjTvfKIiAc2z8qgH/ChppQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796200843;
h=X-Original-To:Received:DMARC-Filter:X-Alimail-AntiSpam:Received:From:
To:Cc:Subject:Date:Message-Id:X-Mailer: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;
bh=AVyam1C85iUjzYqMe+PNdzh0ODGWet3KFV1ekDU9u0Y=;
b=Kiq9lR7eLWPe1teubcncd/TkkJkNi1TDAggYujqk5n2Ui4QVZtUO5DALjx3+QvlbyA9u
YEONG4m4XvrEVM05vtFTGMSjwTfxm/qGhHSLiOhk4Ypt0b6Wq8JYJhnhkSVDJvOYdIEWe
KmJ0i7S6MVs+HfFHveuj3BZB7pyVQAqoUkLDd84bNVM4CbRwscIuzV/R88O53KFASUvoW
m3oPPywvOCm24ZE6uQ+6tVTo/A4U2ioi89uwFJAy6PHSXZXPviNh7GGexPLXyesXKJ6t+
/2Lw4hoXt1xCOSoUMvg9QZxHJPYzOKZqY2DgLE8nbIJ3Eb1q1i5m9UphDjV5jHG60Tg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=pass header.from=motor-comm.com;
spf=pass smtp.mailfrom=motor-comm.com;
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 33EF360A2616;
Wed, 2 Dec 2026 08:40:43 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.28.195
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796200837;
b=MA1y5m4JUO4X4DCYdUG8Hdxm4L6Gn4ywOlhVnvV+SJ4PpJW28cl8eLUl0HWoyjv55Uhn
Q7M6X5tALGPoJ/M8MlHeW44RLoE0kc9g//Nws1h/5YI7+XjRNbTSAdX83Suy00OCmmEB3
S9f608QCXece8GoYYFfr1pGSJFceTLqTz1oLaIc3lNZOmsxe5wsnrn6l7/5ztL3rbFOus
/mtozDoEnZdFlHMo+Yc9nGAkIDPhFl7YcEbh1VT9QK01lT+LpZxqzI8hFK3H5RF0R4ZiC
VjY/uPhQ5NMHAZ+n4QvFWku5h0izDPcdHHs8rSJOpo96Qxb1ffZkMGp/fWFlhPrcLVw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796200837;
h=DMARC-Filter:X-Alimail-AntiSpam:Received:From:To:Cc:Subject:Date:
Message-Id:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=AVyam1C85iUjzYqMe+PNdzh0ODGWet3KFV1ekDU9u0Y=;
b=sLdJCnYuOeRtXd5wxoXu1GcmwdG6cohibM53nIvtMLkBUjb97l+JW7PFOB3768w3mKf6
5WVHJl2GlYcTU0R4Y0n8vbFurzKtGz/yvd5F5GTAXPaTCgtTJByMb3BL74CuZ8h6mh0DH
bJMRQ1cfnOOBSghG/0n0rnWq9U+49S0ukxHeDvtI3OCGsunmsuYvj5T6l33Dd4Wj1pldr
WILtbUz8Hib+Sq9SiCkJ1KB5dsUZSATwPdSgTWI3JiQa6h15rfk5HgLVYc6T/e4fhn+uP
IOEwfxP7Y3Dc2Fy/xQEQRam43iFEDwt9vXu7Q9mAK3G9Cms7oiYjbQj9362N7t+7XuA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=motor-comm.com;
spf=pass smtp.mailfrom=motor-comm.com;
arc=none smtp.remote-ip=115.124.28.195
X-Received: from out28-195.mail.aliyun.com (out28-195.mail.aliyun.com [115.124.28.195])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2015A606A33F;
Wed, 2 Dec 2026 08:40:35 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2015A606A33F
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=motor-comm.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=motor-comm.com
X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07451198|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0655199-0.00124981-0.93323;FP=14330895726043206833|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033037028158;MF=kyle.switch@motor-comm.com;NM=1;PH=DS;RN=20;RT=20;SR=0;TI=SMTPD_---.kEtRdjX_1796200831;
X-Received: from motor-comm.com(mailfrom:kyle.switch@motor-comm.com fp:SMTPD_---.kEtRdjX_1796200831 cluster:ay29)
by smtp.aliyun-inc.com;
Wed, 02 Dec 2026 16:40:32 +0800
X-Cc: devicetree@vger.kernel.org,
krzk+dt@kernel.org,
conor+dt@kernel.org,
david.laight.linux@gmail.com,
ming.xu@motor-comm.com,
xiaolin.xu@motor-comm.com,
jianmin.wang@motor-comm.com,
wei.zhang@gl-inet.com,
sijia.huang@gl-inet.com
X-Mailer: git-send-email 2.25.1
X-In-Reply-To: <20261202084022.3716891-1-kyle.switch@motor-comm.com>
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