Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Kyle Switch" <kyle.switch@motor-comm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH net-next v18 4/6] dt-bindings: net: dsa: add Motorcomm YT9224
Date: Thu, 03 Dec 2026 08:40:55 +0000	[thread overview]
Message-ID: <sashiko-outbox-247372@kernel.org> (raw)
In-Reply-To: <20261202084022.3716891-5-kyle.switch@motor-comm.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] dt-bindings: net: dsa: motorcomm,yt9224.yaml duplicates
  motorcomm,yt921x.yaml
- [Low] dt-bindings: net: dsa: missing reset-gpios and unused includes
  in yt9224
--

commit 827082185ba0054b4f8cd0011f638e983d5ab730
Author: Kyle Switch <kyle.switch@motor-comm.com>

dt-bindings: net: dsa: add Motorcomm YT9224

This commit adds a new Device Tree binding schema for the Motorcomm YT9224
Ethernet switch and adds the schema file to MAINTAINERS.

> diff --git a/Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml b/Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml
> new file mode 100644
> index 0000000000000..01b61b47d3726
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml
> @@ -0,0 +1,142 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/net/dsa/motorcomm,yt9224.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Motorcomm YT9224 Ethernet switch
> +
> +maintainers:
> +  - Kyle Switch <kyle.switch@motor-comm.com>
> +
> +description: |
> +  The Motorcomm YT9224 is a member of the YT922x Ethernet switch family,
> +  with 4 internal GbE PHYs (Port 4-7) and 2 SerDes ports (Port 0 and 8).
> +
> +  Any port can be used as the CPU port.
> +
> +properties:
> +  compatible:
> +    const: motorcomm,yt9224
> +
> +  reg:
> +    enum: [0x0, 0x1d]

[Severity: Low]
Can motorcomm,yt9224 be added to an enum under compatible in
motorcomm,yt921x.yaml instead of duplicating the binding?

Neither schema enforces port or PHY numbering rules beyond referencing
dsa.yaml#/$defs/ethernet-ports and /schemas/net/mdio.yaml#, and
motorcomm,yt921x.yaml already documents several switch variants with
different port layouts that are handled by the same driver.

> +  mdio:
> +    $ref: /schemas/net/mdio.yaml#
> +    unevaluatedProperties: false
> +    description:
> +      Internal MDIO bus for the internal GbE PHYs. PHY 4-7 are used for
> +      Port 4-7 respectively.
> +
> +  mdio-external:
> +    $ref: /schemas/net/mdio.yaml#
> +    unevaluatedProperties: false
> +    description:
> +      External MDIO bus to access external components. External PHYs for
> +      the SerDes ports (Port 0 and 8) are expected to be connected to the
> +      external MDIO bus, but that is not a hard limitation from the chip.
> +
> +required:
> +  - compatible
> +  - reg
> +
> +allOf:
> +  - $ref: dsa.yaml#/$defs/ethernet-ports
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/gpio/gpio.h>
> +    #include <dt-bindings/leds/common.h>

[Severity: Low]
If this remains a separate schema, should properties include reset-gpios
(as in motorcomm,yt921x.yaml)?  Because unevaluatedProperties is false,
omitting reset-gpios causes dtbs_check to reject switch nodes that specify
a hardware reset line for the MDIO bus core.

Also, dt-bindings/gpio/gpio.h and dt-bindings/leds/common.h are unused in
the example below.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202084022.3716891-1-kyle.switch@motor-comm.com?part=4

  parent reply	other threads:[~2026-12-03  8:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  8:40 [PATCH net-next v18 0/6] net: dsa: motorcomm: add support yt922x driver Kyle Switch
2026-12-02  8:40 ` [PATCH net-next v18 1/6] net: dsa: motorcomm: initialize dsa_switch based on chipid Kyle Switch
2026-12-03  8:40   ` sashiko-bot
2026-12-03  8:57   ` netdev-bot+sashiko
2026-12-02  8:40 ` [PATCH net-next v18 2/6] net: dsa: motorcomm: use max_ports in series for port bounds checking Kyle Switch
2026-12-03  8:40   ` sashiko-bot
2026-12-03  8:57   ` netdev-bot+sashiko
2026-12-02  8:40 ` [PATCH net-next v18 3/6] net: dsa: motorcomm: use GENMASK_U32() for mbus phy_mask Kyle Switch
2026-12-03  8:57   ` netdev-bot+sashiko
2026-12-02  8:40 ` [PATCH net-next v18 4/6] dt-bindings: net: dsa: add Motorcomm YT9224 Kyle Switch
2026-12-02 22:58   ` Rob Herring (Arm)
2026-12-03  8:40   ` sashiko-bot [this message]
2026-12-03  8:57   ` netdev-bot+sashiko
2026-12-02  8:40 ` [PATCH net-next v18 5/6] net: dsa: tag_yt922x: add support for Motorcomm YT922x tags Kyle Switch
2026-12-03  8:57   ` netdev-bot+sashiko
2026-12-02  8:40 ` [PATCH net-next v18 6/6] net: dsa: motorcomm: Add support for Motorcomm YT922x Kyle Switch
2026-12-03  8:40   ` sashiko-bot
2026-12-03  8:57   ` 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=sashiko-outbox-247372@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