All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Joseph Telaak" <joseph@telaak.dev>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH net-next 1/2] dt-bindings: net: dsa: lantiq,gswip: add reset-gpios
Date: Thu, 05 Nov 2026 07:16:07 +0000	[thread overview]
Message-ID: <sashiko-outbox-198649@kernel.org> (raw)
In-Reply-To: <20261104-mxl-gsw1xx-reset-v1-1-53839bf5c88e@telaak.dev>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: net: dsa: lantiq,gswip: split GSW1xx into separate schema
--

commit 436a7ee0b7ce4df05ec852987339de64af0a633a
Author: Joseph Telaak <joseph@telaak.dev>

dt-bindings: net: dsa: lantiq,gswip: add reset-gpios

This commit adds the reset-gpios property to the lantiq,gswip DSA switch
binding for standalone GSW1xx switches and disallows it on SoC-integrated
GSWIP variants.

> diff --git a/Documentation/devicetree/bindings/net/dsa/lantiq,gswip.yaml b/Documentation/devicetree/bindings/net/dsa/lantiq,gswip.yaml
> index 49af5573e452d..9a74ea2a6dcdd 100644
> --- a/Documentation/devicetree/bindings/net/dsa/lantiq,gswip.yaml
> +++ b/Documentation/devicetree/bindings/net/dsa/lantiq,gswip.yaml
> @@ -40,6 +40,11 @@ properties:
>        - const: mdio
>        - const: mii
>  
> +  reset-gpios:
> +    maxItems: 1
> +    description:
> +      GPIO connected to the hardware reset input of a standalone switch.
> +
>    mdio:
>      $ref: /schemas/net/mdio.yaml#
>      unevaluatedProperties: false
> @@ -173,6 +178,7 @@ allOf:
>          mdio:
>            required:
>              - compatible
> +        reset-gpios: false

[Severity: Low]
This isn't a bug, but Documentation/devicetree/bindings/net/dsa/lantiq,gswip.yaml
combines two distinct hardware integration models: SoC-integrated MMIO
switches (lantiq,xrx200-gswip, lantiq,xrx300-gswip, lantiq,xrx330-gswip) and
standalone MDIO-attached switches (intel,gsw150, lantiq,peb7084, and
maxlinear,gsw1xx).

Because these two families sit on different buses and use different resources,
nearly every top-level property outside compatible and ports (reg, reg-names,
mdio, gphy-fw, and now reset-gpios) has to be conditionally constrained or
disallowed in the allOf if-then-else block:

  if:
    properties:
      compatible:
        contains:
          enum:
            - lantiq,xrx200-gswip
            - lantiq,xrx300-gswip
            - lantiq,xrx330-gswip
  then:
    properties:
      reg:
        minItems: 3
        maxItems: 3
      mdio:
        required:
          - compatible
      reset-gpios: false
  else:
    properties:
      reg:
        maxItems: 1
      reg-names: false
      gphy-fw: false

Instead of adding more variant-specific exclusions to this conditional, would
it make sense to split the standalone GSW1xx and SoC-integrated GSWIP bindings
into separate schema files?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-mxl-gsw1xx-reset-v1-0-53839bf5c88e@telaak.dev?part=1

  parent reply	other threads:[~2026-11-05  7:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04  7:15 [PATCH net-next 0/2] net: dsa: mxl-gsw1xx: reset the switch through reset-gpios Joseph Telaak via B4 Relay
2026-11-04  7:15 ` Joseph Telaak
2026-11-04  7:15 ` [PATCH net-next 1/2] dt-bindings: net: dsa: lantiq,gswip: add reset-gpios Joseph Telaak via B4 Relay
2026-11-04  7:15   ` Joseph Telaak
2026-11-04 21:49   ` Rob Herring (Arm)
2026-11-05  7:16   ` sashiko-bot [this message]
2026-11-05 21:21     ` Joseph Telaak
2026-11-04  7:15 ` [PATCH net-next 2/2] net: dsa: mxl-gsw1xx: reset the switch through reset-gpios Joseph Telaak via B4 Relay
2026-11-04  7:15   ` Joseph Telaak
2026-11-04  7:38   ` Daniel Golle
2026-11-04  7:50     ` Joseph Telaak

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-198649@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=joseph@telaak.dev \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.