🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25746

[PATCH net-next v29 RESEND 1/3] dt-bindings: net: Document Motorcomm YT8824 PHY package

#25746
From: Kyle Switch
Date: Wed, 02 Dec 2026 10:52
151 lines
12095 bytes
Add Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml
describing the Motorcomm YT8824, a PHY package containing four PHYs,
built on top of ethernet-phy-package.yaml.

The binding introduces a new vendor property, motorcomm,package-mode,
to describe whether the package operates in internal or external mode.
This is new DT ABI.

The binding also specifies that the package reg property gives the
address of the shared top extended register block, which is different
from the usual ethernet-phy-package.yaml convention where reg is the
first member PHY's address.

In addition, add a new M: entry for Kyle Switch to the existing
MOTORCOMM PHY DRIVER section in MAINTAINERS, and list the new binding
in that section's F: entries. Note that this makes Kyle a maintainer
of all existing Motorcomm PHY code (drivers/net/phy/motorcomm.c and
motorcomm,yt8xxx.yaml), not only the new binding.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Kyle Switch <kyle.switch@motor-comm.com>
---
 .../bindings/net/motorcomm,yt8824.yaml        | 100 ++++++++++++++++++
 MAINTAINERS                                   |   2 +
 2 files changed, 102 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml

diff --git a/Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml b/Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml
new file mode 100644
index 000000000000..1065e5382670
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml
@@ -0,0 +1,100 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/motorcomm,yt8824.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MotorComm YT8824 Ethernet PHY
+
+maintainers:
+  - Kyle Switch <kyle.switch@motor-comm.com>
+
+description:
+  Motorcomm YT8824 Ethernet PHY is a PHY package of 4 PHYs.
+
+$ref: ethernet-phy-package.yaml#
+
+properties:
+  compatible:
+    enum:
+      - motorcomm,yt8824-package
+
+  motorcomm,package-mode:
+    description: |
+      PHY package can be configured in 2 modes:
+      - internal: YT8824 is embedded in the switch, using
+        an internal interface to the MAC. The member PHYs are
+        fixed at MDIO addresses 4..7 and the shared top
+        extended register block is at address 9.
+      - 10g-qxgmii: YT8824 is a standalone external PHY,
+        connected via 10G QXGMII. The member PHYs start at
+        the base MDIO address and the shared top extended
+        register block is at base + 4.
+    $ref: /schemas/types.yaml#/definitions/string
+    enum: [ internal, 10g-qxgmii ]
+
+  reg:
+    description:
+      The absolute MDIO address of the YT8824 shared top extended
+      register block.
+      For internal mode, this is fixed at 9;
+      For external mode, it is the base MDIO address of the four
+      member PHYs plus 4, where base is typically 0x0.
+      Note that this is NOT the reg of the first member PHY.
+
+required:
+  - compatible
+  - motorcomm,package-mode
+  - reg
+
+allOf:
+  - if:
+      properties:
+        motorcomm,package-mode:
+          const: internal
+    then:
+      properties:
+        reg:
+          const: 9
+  - if:
+      properties:
+        motorcomm,package-mode:
+          const: 10g-qxgmii
+    then:
+      properties:
+        reg:
+          const: 4
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    mdio {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        ethernet-phy-package@9 {
+            #address-cells = <1>;
+            #size-cells = <0>;
+            compatible = "motorcomm,yt8824-package";
+            reg = <9>;
+
+            motorcomm,package-mode = "internal";
+
+            ethernet-phy@4 {
+                reg = <4>;
+            };
+
+            ethernet-phy@5 {
+                reg = <5>;
+            };
+
+            ethernet-phy@6 {
+                reg = <6>;
+            };
+
+            ethernet-phy@7 {
+                reg = <7>;
+            };
+        };
+    };
diff --git a/MAINTAINERS b/MAINTAINERS
index 9336fa93ce38..bcd50f16f062 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -18927,8 +18927,10 @@ F:	drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
 
 MOTORCOMM PHY DRIVER
 M:	Frank <Frank.Sae@motor-comm.com>
+M:	Kyle Switch <kyle.switch@motor-comm.com>
 L:	netdev@vger.kernel.org
 S:	Maintained
+F:	Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml
 F:	Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml
 F:	drivers/net/phy/motorcomm.c
 
-- 
2.25.1
Technical Details
Message-ID: <20261202105259.3767612-2-kyle.switch@motor-comm.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375730-linux-kernel-netdev=dewy.ru
References: <20261202105259.3767612-1-kyle.switch@motor-comm.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375730-linux-kernel-netdev=dewy.ru
From: kyle.switch@motor-comm.com (Kyle Switch)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v29 RESEND 1/3] dt-bindings: net: Document Motorcomm YT8824 PHY package
Date: Wed,  2 Dec 2026 18:52:57 +0800
Organization: Usenet Network
Message-ID: <20261202105259.3767612-2-kyle.switch@motor-comm.com>
References: <20261202105259.3767612-1-kyle.switch@motor-comm.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1954051"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:WO1ta88FWLVu0U9e5kQaakKP9RU= sha256:YYHHOzgae58XsdtBnxWKjxGfEgw1uWWnucVNIU+yzsk=
	sha1:5UsbX1SaB/bslOQ/FYx5WTMddUE= sha256:jY/e70LqISnDYnTycy888rYjsgpolpRRJ0/c9dDVmlA=
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 9FB81117608; Wed,  2 Dec 2026 13:53:39 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.849
X-Spam-Status: No, score=-1.849 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, 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 rTF3nY-g4RCM;
	Wed,  2 Dec 2026 13:53:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375730-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 46AB51174E7; Wed,  2 Dec 2026 13:53:27 +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 C205426F4D; Wed,  2 Dec 2026 10:53:20 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1796208798;
	b=q3rOAcHI/UxQmWIz0nR49RIduFqmQ71eaQ57YhDMSGJ8GwSug+nbHcdniZFrnSgUlXnN
	 7Ylu+MJoLcIVLPo6eYkgj7mQDse+gnvgYecyH/Aiv2c9yeIqaw54F8T4gEK2A9PGG2lzw
	 Ps3Oyjy+SooUsK+M7rBuXJiAAjsANyJWYqUWBoMrhD/CjskNDrDwOqnZDz+8egkJlSjzN
	 wOS08BCbRsRZBQDB5Zdcv4seBK8TasJdHgwsQkJaZYBp3v81pFGkXqbEHLp6PjkzbzwQ1
	 H/2XjtF8pTp8O93wcJcKHNYl/AYpAarlO2vkTpcBtRBJD9ppKR2ldI0pbB26XfYMHlg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796208798;
	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=ofStxoao7VML5UGWLc3cpKcV8O9+FkGh+NfPSIa7qwU=;
	b=axNDAQ+3QoWtijZKWRVTpjhUFczbAlo2nzE8kPVDG2mv6bOPjLoSFoslQ3nxFM73fkIu
	 mb5By9zPN3a0nsbv2v0GHRpO0JHeP7hihNqHkX5rY0YehRzE1/j8AWDs5SFTNPyeUd0iS
	 iua2AV3eKCdDkIffOt4Y3T98zxbQp7kUlDMM2ceYmFK5W95KZvvTnUs9Y8CEUzKL8WOZD
	 hv/iiAcGBHrJXQIAP8q5tJsRMLMWfzCXaEOSWVDeDpv1qY1GLlbYbsnBrRaL2ymqWPq5P
	 Q08hBrl2E/GjYbZ/Do+923XZ0rTS4KueYZC6SHXhRYTi9wcFfOdlSgDOdhqLTmygJ/w==
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=fail 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 58B25606A68E;
	Wed,  2 Dec 2026 10:53:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.28.50
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796208797;
	b=dDMXY2UKFTqJM5SCzg1Sv/blU5q22bCyqbvWkWc5VdD2VXoNnXGgq9dhccATVhtMVtDI
	 mnEEy4kXD5UZJ+gfNfiWdT0cQhY2SHFew4bCzjIOZvCyvq9pKUihbMCTXMjRce82jLjRF
	 yrVcIw6RY2cHFSMZSWn+rojtOy/fnusw/T8pIfPLKtor+lyhu2J8WLnyTHnI3FWHGWvXt
	 W+Bbsy8uZflpxx8Zskah6wk8ZXgLyQxLfBbRP2o7ZzQIXcXpQdxGtjCF9t4nSSCF2hNUu
	 0Rl9juXbSCshh46ZZAjJU4724+NF60mLRiwOFXijsglVrohzgLf/+dGdeNS1PFNrqbA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796208797;
	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=ofStxoao7VML5UGWLc3cpKcV8O9+FkGh+NfPSIa7qwU=;
	b=YDIvIAfiy0sXDJcfX/F+QG6ZIHCnLnfYK483RbtDiUXJlDJgCRgtGIG3Hbl8OvfzYwYa
	 xxg9C1A4QbrtLLlaP7Qx8XoCEq6ihgfcbQ1g4bqQDHbZzRq1GD99yGN5DdxEZG3kRp90l
	 b58VriMGkWc7WymzpYnSciy8mVfbeutBluBxJX8WDnHO1jlZFvnUNTkru9WDcpmm2PFRZ
	 9p+71JuUW5RzmTs6CVOgavKothCJYUVupAJVVaU7fb4hkqLghngXxyDO5pFovKGngzbbe
	 1FaI4AIwbKku595Y/hCO854wyW0m9Oc2bG7Hhabm5qsYLBs8eiUywDeifYEN4Tq05pA==
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.50
X-Received: from out28-50.mail.aliyun.com (out28-50.mail.aliyun.com [115.124.28.50])
	(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 BA9D1606A325;
	Wed,  2 Dec 2026 10:53:14 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BA9D1606A325
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.06732103|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.04611-0.00409288-0.949797;FP=6980782540147131445|22|2|16|0|-1|-1|-1;HT=maildocker-contentspam033037034020;MF=kyle.switch@motor-comm.com;NM=1;PH=DS;RN=18;RT=18;SR=0;TI=SMTPD_---.kF3kI4x_1796208784;
X-Received: from motor-comm.com(mailfrom:kyle.switch@motor-comm.com fp:SMTPD_---.kF3kI4x_1796208784 cluster:ay29)
          by smtp.aliyun-inc.com;
          Wed, 02 Dec 2026 18:53:05 +0800
X-Cc: ming.xu@motor-comm.com,
	xiaolin.xu@motor-comm.com,
	jianmin.wang@motor-comm.com
X-Mailer: git-send-email 2.25.1
X-In-Reply-To: <20261202105259.3767612-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