From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.28.147 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796118266; b=klqbi/ZNqgzmWEkt362wd+v+uRFdrPw5qgM0UnZ0RW8T4m8Sfw+2/ZUN6jpcQTMdxALI kUaoKAHxLzaWcXXMM+EQeiDyYNLU+Z6bdpyeyDPDlEXxaIRh7DtpbGjH+BZNBAkp+mjV4 jQKY4JENZOVXcW3zT4bqe54e/yf5751r7CGhz/1nUob9mmmWoOgna75R62N3ETWL3wr2f 004gfLJX54d5ck1TtqWkb6nhQbfnWmwIBtcgW/VgvHtfQ4eDXh84phK2R82w50XyZQdho YAnGns/roKSmQyOCsRQtf8XEwHZxyFBd1sFCu+UmuWr0hY5gxhsEdI5ngcbIkfdOrUA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796118266; 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=JQR6SJbXan6CfXmvOlQQdq6h4/xMvbIfmzblzkPjes8My3+9oqCkS8/gP9ws5Jm1lM9o FX5GaSE1AQ8Qm5LIta36UMOWqiEtH8eoagDdWUmI3h/1J2iY89s49eZudW4SZ8wNXG8AS 8hRRBABTDnN8nC5qCeD5aeovyLpd8zK55CSfZSVLdOFX5gG8Z8zSxr6KwETD4VAkMa6P2 EdYDwDBrvwHZsd0Y0aAkzziIa0MIj7Ee6oX7UmLdG7V6P6BEr7gTx04kxnfElhsM6ahPQ NzI68LjYVP/bMs52gOWqf+hv5+sBcmBOb64scnqTr7RcThzasikTT5w1ogt7XIwKt1Q== 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.147 Received: from out28-147.mail.aliyun.com (out28-147.mail.aliyun.com [115.124.28.147]) (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 C6523606A33C; Tue, 1 Dec 2026 09:44:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C6523606A33C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=motor-comm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=motor-comm.com X-Alimail-AntiSpam:AC=CONTINUE;BC=0.06736001|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.04611-0.00409288-0.949797;FP=6980782540147139701|1|1|9|0|-1|-1|-1;HT=maildocker-contentspam033037034017;MF=kyle.switch@motor-comm.com;NM=1;PH=DS;RN=18;RT=18;SR=0;TI=SMTPD_---.kE3pRwT_1796118252; Received: from motor-comm.com(mailfrom:kyle.switch@motor-comm.com fp:SMTPD_---.kE3pRwT_1796118252 cluster:ay29) by smtp.aliyun-inc.com; Tue, 01 Dec 2026 17:44:13 +0800 From: Kyle Switch To: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, Frank.Sae@motor-comm.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ming.xu@motor-comm.com, xiaolin.xu@motor-comm.com, jianmin.wang@motor-comm.com Subject: [PATCH net-next V29 1/3] dt-bindings: net: Document Motorcomm YT8824 PHY package Date: Tue, 1 Dec 2026 17:44:03 +0800 Message-Id: <20261201094405.3036391-2-kyle.switch@motor-comm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20261201094405.3036391-1-kyle.switch@motor-comm.com> References: <20261201094405.3036391-1-kyle.switch@motor-comm.com> X-Mailing-List: devicetree@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 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) Signed-off-by: Kyle Switch --- .../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 + +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 +M: Kyle Switch 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