From: netdev-bot+sashiko@kernel.org
To: kyle.switch@motor-comm.com
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
Subject: Re: [PATCH net-next v25 1/3] dt-bindings: net: Document Motorcomm YT8824 PHY package
Date: Mon, 19 Oct 2026 05:51:24 +0000 [thread overview]
Message-ID: <179238908473.3135.16165284021316386587@kernel.org> (raw)
In-Reply-To: <20261015145021.2216003-2-kyle.switch@motor-comm.com>
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The `reg` description in motorcomm,yt8824.yaml gives fixed
hardware rules: 9 in internal mode, and member-PHY base + 4 in…
--
dt-bindings: net: Document Motorcomm YT8824 PHY package
This adds a YAML binding for the Motorcomm YT8824 PHY package, which holds
four PHYs. It defines the motorcomm,yt8824-package compatible, a
motorcomm,package-mode property (internal or 10g-qxgmii), and a reg that
points at the shared top extend register block. It also adds the binding
and a new maintainer to the MOTORCOMM PHY DRIVER entry 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..4c67f8afcf27a
> --- /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.
> + - 10g-qxgmii: YT8824 is a standalone external PHY,
> + connected via 10G QXGMII.
> + $ref: /schemas/types.yaml#/definitions/string
> + enum: [ internal, 10g-qxgmii ]
> +
> + reg:
> + description:
> + The absolute MDIO address of the YT8824 shared top extend
> + 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.
[Severity: Low]
This isn't a bug, but should the internal mode value be enforced by the
schema and not only described in prose?
As written, nothing ties reg to motorcomm,package-mode. The inherited
ethernet-phy-package.yaml only limits reg to the 0..31 range. So a node
with package-mode = "internal" and a reg other than 9 still passes
dt_binding_check.
The driver uses this value directly. of_phy_package_join() reads the
package reg as base_addr, and the YT8824 top extend accessors in
drivers/net/phy/motorcomm.c go to offset 0 from that base:
ret = __phy_package_write(phydev, 0, YTPHY_PAGE_SELECT, regnum);
If the package reg is wrong, the top block page select and data accesses
would go to whatever MDIO address was given. Under the base schema
convention, that would usually be the first member PHY.
The external mode rule (child base plus 4) can't be expressed in
json-schema. The internal mode rule could be, though, with something
like:
allOf:
- if:
properties:
motorcomm,package-mode:
const: internal
then:
properties:
reg:
const: 9
> +
> +required:
> + - compatible
> + - motorcomm,package-mode
> + - reg
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261015145021.2216003-1-kyle.switch%40motor-comm.com
next prev parent reply other threads:[~2026-10-19 5:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-15 14:50 [PATCH net-next v25 0/3] net: phy: Add driver for Motorcomm Quad 2.5GbE phy Kyle Switch
2026-10-15 14:50 ` [PATCH net-next v25 1/3] dt-bindings: net: Document Motorcomm YT8824 PHY package Kyle Switch
2026-10-19 5:51 ` netdev-bot+sashiko [this message]
2026-10-15 14:50 ` [PATCH net-next v25 2/3] net: phy: Add support for Template Control register for PMA Kyle Switch
2026-10-19 5:51 ` netdev-bot+sashiko
2026-10-15 14:50 ` [PATCH net-next v25 3/3] net: phy: Add driver for Motorcomm Quad 2.5GbE phy Kyle Switch
2026-10-16 15:18 ` Andrew Lunn
2026-10-19 5:51 ` netdev-bot+sashiko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179238908473.3135.16165284021316386587@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=Frank.Sae@motor-comm.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=jianmin.wang@motor-comm.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=kyle.switch@motor-comm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=ming.xu@motor-comm.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=xiaolin.xu@motor-comm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®