Article View: linux.kernel.netdev
Article #26704Re: [PATCH net-next V29 1/3] dt-bindings: net: Document Motorcomm YT8824 PHY package
From: netdev-bot+sashiko
Date: Fri, 04 Dec 2026 03:46
Date: Fri, 04 Dec 2026 03:46
112 lines
12343 bytes
12343 bytes
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 ยท High: 0 ยท Medium: 1 ยท Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] In motorcomm,yt8824.yaml, the description of the external
(10g-qxgmii) mode says the address can vary, but the schema fixes it.
--
dt-bindings: net: Document Motorcomm YT8824 PHY package
This patch adds a binding for the Motorcomm YT8824 quad PHY package. It
builds on ethernet-phy-package.yaml and adds a new
motorcomm,package-mode property to choose internal or 10g-qxgmii mode.
It also adds a maintainer and an F: entry to the MOTORCOMM PHY DRIVER
section in MAINTAINERS.
> diff --git a/Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml b/Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml
> new file mode 100644
> index 0000000000000..1065e5382670f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml
[ ... ]
> + 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.
[ ... ]
> + - if:
> + properties:
> + motorcomm,package-mode:
> + const: 10g-qxgmii
> + then:
> + properties:
> + reg:
> + const: 4
[Severity: Medium]
Do the text and the schema agree for the 10g-qxgmii case?
The motorcomm,package-mode description says the member PHYs "start at the
base MDIO address" and the top block is "at base + 4". The reg description
says base is "typically 0x0". Both suggest the base can be something other
than 0.
This branch sets reg to const 4, so 0 is the only base that passes the
schema. The parent ethernet-phy-package.yaml allows any reg from 0 to 31:
reg:
minimum: 0
maximum: 31
So the limit to 4 comes only from this binding.
Suppose an external YT8824 is strapped to a non-zero base, for example
PHYs at 8..11 with the top block at 12. Would its DT fail
dt_binding_check? It also seems that two external YT8824 packages could
never share one MDIO bus in a schema-valid DT.
The driver patch later in this series ("net: phy: Add driver for
Motorcomm Quad 2.5GbE phy") makes the same assumption.
yt8824_utp_shared_group() in drivers/net/phy/motorcomm.c hard-codes a base
of 0 for non-internal mode:
if (priv->package_mode == PHY_INTERFACE_MODE_INTERNAL)
base = 4;
else
base = 0;
if (addr < base || addr >= base + YT8824_UTP_SHARED_GROUPS * 2)
return -EINVAL;
The schema and the driver match each other, but neither matches the
binding text. The binding is unchanged at the end of the series.
This is new DT ABI, so which one is intended? If the hardware supports a
variable base, could reg be a range, with driver support for that base?
If the external base is hard-wired to 0, could the text say so and drop
the "base" and "typically 0x0" wording?
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261201094405.3036391-1-kyle.switch%40motor-comm.com
Technical Details
Message-ID:
<179635601335.3146.13283218503536356094@kernel.org>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feeder4.usenet.farm!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377020-linux-kernel-netdev=dewy.ruReferences:
<20261201094405.3036391-1-kyle.switch@motor-comm.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feeder4.usenet.farm!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377020-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next V29 1/3] dt-bindings: net: Document Motorcomm YT8824 PHY package Date: Fri, 04 Dec 2026 03:46:53 +0000 Organization: Usenet Network Message-ID: <179635601335.3146.13283218503536356094@kernel.org> References: <20261201094405.3036391-1-kyle.switch@motor-comm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2667408"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:DGieUzZvi9Xw03QXkI3oGKwigaA= sha256:A/Yz824YzC7gBT4h8jrOBVoPJ4nn+ncdxdsO2f7YLx0= sha1:U4dFdU/cSrPwu7JHtg14Y0fNe0o= sha256:4erZdUcMvZpyDbh3mv5bFLa8Nhve0GhYux4KQt/yw9g= 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 DFCB3117ADE; Fri, 4 Dec 2026 06:47:19 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.639 X-Spam-Status: No, score=-3.639 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=kernel.org 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 Vy2UTz0kgCYv; Fri, 4 Dec 2026 06:47:13 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377020-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id B519E117ADA; Fri, 4 Dec 2026 06:47:04 +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 177DC277DC; Fri, 4 Dec 2026 03:46:57 +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=1796356015; b=q7CDBMzQv1+fBfvxHN8IBDHUmkqieguupnxWeWrO12A1z/TS9stIu00w2fGDNqq96RU6 OnVZ46nxha/BJAOcxQqibvoeGLliydpRh09BQHN1mnDuqqHG38Dkz3vZFNNIBNltAcijD BAjPI1EcQqosQOcLSV+qv4jfaKV/VlKbSmJWYYuuIi6YV8bgMLRymLWyGkL1WlC28CSTe 80Ef48YHIgq7gNvM69Oh+xXzYwkFYgSDB+pD7wp7GEL/HbpvF/sgvnPnEB1l0vnqpkjdA PoEH1yTplUNyX56ttdhAvuucyk3A2p86PtoB0z8h+W0ZN/nAeLTu2UbfyS3WV0veR2g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796356015; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=sVgOLF5Z1x4zeH1cRDfpZVm/mLMT5QhDeD38YKGLq7Y=; b=hu3o4eQGizYnetGPssuDaIriAU4Ff1Q/4vHrPJ9oJGxio1hfZac1GQ4aqA1A/bPCjdvY nJgbsK9X1b/wz73Dfw59tvCeaeuH6/WFue6FYeXvs9A7XQJh2GL6mD4YdHXjY6RDcnTXh gaZz9SpgEaZL2IZlJZzW2r/lUySjM6tcWVnmSZtIu98GcCpDZ/PqxUqR9+qcQSsDJ8678 UBlaHlwykcYxf2JPmLbV0QJVpDGbf094k2QijqLI4d0u0BJM+kxCt4gjYHALlekxLRQKP 6xnZLASVIwTCfv1VR+8jPhOJugznzxs66H9nslkCd7O3aiid/v3QtN7Lmv3K8qOKIrA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fQfihxA1; 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 D7132606A68A; Fri, 4 Dec 2026 03:46:55 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fQfihxA1 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796356015; b=s2A/sLhsIrHNMVvYscdkrTdZzxU94SgCjP/l/MvEdyw2syMIr0sxF1uvyCWYJqjuknyL llnq07A7Xc7gJEl3tV4o0wXtdKY9yu77bLXZR2rwlJJzkv4+rvC2QCM0gldsPkRxurp/K ha3NkI32ok4Gbu2sjnoWvxT15pqDdaYbVjT/zmlxWeqMf5VlJT3cGnK0W+YvRDqKuFq/2 i9QMgcD+kM8URiEoIsWS8Sz2v1fc38mpLkyIZ6//OPgq2RpvguRp0T4qaohbwroaCriAK o9mYJmjY1PyyLl0MrTs8SBpyRBBafsP8Y3BJMgMMeDetxXS4C/XNUG/Yt5usZP0JkzA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796356015; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=sVgOLF5Z1x4zeH1cRDfpZVm/mLMT5QhDeD38YKGLq7Y=; b=5rNwrKiSKcXTy5WcXwAqv3jazKUUkuuKccru1XMD/IOF2yL6fg24G4brZuhNtgDNUhhz rCxDNwxR/caZUv26NjmFOSndb9u7teH6wkzrh4lJC9sMdKtcMWJ87yeav81c4/vUq0yt8 96ZiTcX0z4cm68auKOVYeKlQP3w/l6DSo2wuQRztr65m5xbJAOiENC2YyjiF/xiBD7LQ1 0x3EFP+6EfJ5MoMAIQLkPqSGwk/+MSqvUkG6+pvh4nf9e+cH0rnIn3xJtkYqnBeXrXoAo VkOtxcMFKwx+AU8KxDE8Jm8x3YTgOSFCRDZLd2+3Aa3IInzXI3igO+icnNaXG+m4GzQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fQfihxA1; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (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 00FA3606A330; Fri, 4 Dec 2026 03:46:55 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF5E11F00936; Fri, 4 Dec 2026 03:46:53 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796356014; bh=sVgOLF5Z1x4zeH1cRDfpZVm/mLMT5QhDeD38YKGLq7Y=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=fQfihxA1G+t6eXrTaHW6G0t7iL9o4N/MajM95vUIMWkC4TgMaJqTQPB8DpOQbCo1A RRokdrB+PSSTAQ9OxPZz+yZGP65AI9ezU8SM5v5IK3KcDbVdJAjbwf4DCWkljq57hI Xx17r7RmFBnc1JuRJihNsrFpkiY4WadMi5glXeqh0XpTQYOG2gtxwQn1X4NoiXaNPe THOWe7jbMr3fMfj8mQI6RoEdi3BJPtDEfnKnmE+r1AdgvXICymWM5RxEaQw+0GAFav tB66QyAyy672K6emvRH7/cXPZx2jFoOsTZ8UWTbwWeDYvPMgvBOGQJ0s3MaO+2VcIG KWFYIF03zlTAQ== X-Cc: 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, ming.xu@motor-comm.com, xiaolin.xu@motor-comm.com, jianmin.wang@motor-comm.com X-In-Reply-To: <20261201094405.3036391-1-kyle.switch@motor-comm.com> X-sashiko-severity: Medium 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-Received-Bytes: 11980