From: sashiko-bot@kernel.org
To: "Kyle Switch" <kyle.switch@motor-comm.com>, devicetree@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH net-next v29 RESEND 1/3] dt-bindings: net: Document Motorcomm YT8824 PHY package
Date: Thu, 03 Dec 2026 10:53:24 +0000 [thread overview]
Message-ID: <sashiko-outbox-247617@kernel.org> (raw)
In-Reply-To: <20261202105259.3767612-2-kyle.switch@motor-comm.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: net: motorcomm,yt8824 hardcodes reg to 4 in
10g-qxgmii mode
- [Low] dt-bindings: net: non-canonical property ordering in
motorcomm,yt8824.yaml
--
commit a6fe4858104e023d2f9d8f0b8962a9e062f5996e
Author: Kyle Switch <kyle.switch@motor-comm.com>
dt-bindings: net: Document Motorcomm YT8824 PHY package
This commit adds the Device Tree binding schema for the Motorcomm YT8824
quad Ethernet PHY package and updates 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
> @@ -0,0 +1,100 @@
[ ... ]
> +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
[Severity: Medium]
Does constraining reg to const: 4 when motorcomm,package-mode is 10g-qxgmii
reject valid non-zero base MDIO addresses during dtbs_check?
The descriptions of motorcomm,package-mode and reg state that in external
10g-qxgmii mode, reg is the base MDIO address plus 4 and that a base of 0x0
is only typical rather than fixed.
> +
> +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";
[Severity: Low]
As reported by Conor Dooley on v21 [1], the property ordering here does not
follow canonical DT schema conventions: reg should precede the
vendor-specific motorcomm,package-mode property in both properties and
required, and compatible and reg should come before #address-cells and
#size-cells in the ethernet-phy-package@9 example node.
[1] https://lore.kernel.org/r/20260924-vowed-roulette-abda42cec444@spud
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202105259.3767612-1-kyle.switch@motor-comm.com?part=1
next prev parent reply other threads:[~2026-12-03 10:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 10:52 [PATCH net-next v29 RESEND 0/3] net: phy: Add driver for Motorcomm Quad 2.5GbE phy Kyle Switch
2026-12-02 10:52 ` [PATCH net-next v29 RESEND 1/3] dt-bindings: net: Document Motorcomm YT8824 PHY package Kyle Switch
2026-12-03 10:53 ` sashiko-bot [this message]
2026-12-02 10:52 ` [PATCH net-next v29 RESEND 2/3] net: phy: Add support for Template Control register for PMA Kyle Switch
2026-12-02 10:52 ` [PATCH net-next v29 RESEND 3/3] net: phy: Add driver for Motorcomm Quad 2.5GbE phy Kyle Switch
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=sashiko-outbox-247617@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kyle.switch@motor-comm.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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