Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: Prabhakar <prabhakar.csengg@gmail.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org,
	wsa+renesas@sang-engineering.com
Subject: Re: [PATCH net-next v2 04/12] dt-bindings: net: dsa: renesas,rzn1-a5psw: Add RZ/T2H and RZ/N2H ETHSW support
Date: Sat, 03 Oct 2026 01:33:10 +0000	[thread overview]
Message-ID: <20261003013310.D30A61F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20261001154326.754314-5-prabhakar.mahadev-lad.rj@bp.renesas.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: net: dsa: a5psw: globally requiring interrupts breaks backward ABI
- [Low] dt-bindings: net: dsa: a5psw: missing port count restriction for ETHSW variant
--

commit ac61e34c73e390592b92437f35f98d8807997f55
Author: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

dt-bindings: net: dsa: renesas,rzn1-a5psw: Add RZ/T2H and RZ/N2H ETHSW support

This commit extends the A5PSW DSA binding to cover the ETHSW variant used on
newer Renesas SoCs. It updates the schema with new compatible strings, modifies
interrupt and clock properties, and accounts for the 4-port topology.

> diff --git a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml
> index fab6aa6237e93..863633185912f 100644
> --- a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml
> +++ b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml
[ ... ]
> @@ -73,14 +145,48 @@ properties:
>                phandle pointing to a PCS sub-node compatible with
>                renesas,rzn1-miic.yaml#
>  
> -unevaluatedProperties: false
> -
>  required:
>    - compatible
>    - reg
>    - clocks
>    - clock-names
>    - power-domains
> +  - interrupts
> +  - interrupt-names

[Severity: Medium]
Does adding interrupts and interrupt-names to the top-level required array
cause a regression by breaking backward compatibility for legacy device trees?

Existing device trees for the older renesas,rzn1-a5psw hardware that do not
specify the interrupts property will now fail validation. Since the Linux
driver does not currently utilize interrupts, it is perfectly valid and
functional for older device trees to omit them.

Should these properties only be required conditionally within the then block
for the new hardware variant?

> +
> +allOf:
> +  - $ref: dsa.yaml#/$defs/ethernet-ports
> +
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: renesas,r9a09g077-ethsw
> +    then:
> +      properties:
> +        interrupts:
> +          minItems: 24
> +        interrupt-names:
> +          minItems: 24
> +        clocks:
> +          minItems: 3
> +        clock-names:
> +          minItems: 3
> +      required:
> +        - resets

[Severity: Low]
Does this conditional block need to restrict the port count for the new
ETHSW variant?

The global patternProperties for ethernet-ports allows
"^(ethernet-)?port@[0-4]$", which globally permits up to 5 ports. This is
correct for the older A5PSW variant but incorrect for the new 4-port ETHSW
variant.

Without a port count restriction here (e.g., overriding and disabling port@4),
device trees with invalid 5-port configurations for the new variant will
silently pass schema validation.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261001154326.754314-1-prabhakar.mahadev-lad.rj@bp.renesas.com?part=4

  reply	other threads:[~2026-10-03  1:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-01 15:43 [PATCH net-next v2 00/12] Add ETHSW support for Renesas RZ/T2H and RZ/N2H SoCs Prabhakar
2026-10-01 15:43 ` [PATCH net-next v2 01/12] net: dsa: tag_rzn1_a5psw: Drop redundant ETH_P_DSA_A5PSW definition Prabhakar
2026-10-01 15:43 ` [PATCH net-next v2 02/12] net: dsa: tag_rzn1_a5psw: Add RZ/T2H ETHSW tag protocol support Prabhakar
2026-10-01 15:43 ` [PATCH net-next v2 03/12] net: dsa: Kconfig: Expand config description to cover RZ/T2H and RZ/N2H ETHSW Prabhakar
2026-10-01 15:43 ` [PATCH net-next v2 04/12] dt-bindings: net: dsa: renesas,rzn1-a5psw: Add RZ/T2H and RZ/N2H ETHSW support Prabhakar
2026-10-03  1:33   ` sashiko-bot [this message]
2026-10-01 15:43 ` [PATCH net-next v2 05/12] net: dsa: rzn1-a5psw: Add support for optional reset control Prabhakar
2026-10-01 15:43 ` [PATCH net-next v2 06/12] net: dsa: rzn1-a5psw: Add support for optional timestamp clock Prabhakar
2026-10-01 15:43 ` [PATCH net-next v2 07/12] net: dsa: rzn1-a5psw: Make use dev_err_probe() Prabhakar
2026-10-01 15:43 ` [PATCH net-next v2 08/12] net: dsa: rzn1-a5psw: Get switch info via OF data Prabhakar
2026-10-01 15:43 ` [PATCH net-next v2 09/12] net: dsa: rzn1-a5psw: Choose tagging protocol based on compatible string Prabhakar
2026-10-01 15:43 ` [PATCH net-next v2 10/12] net: dsa: rzn1-a5psw: Add fixed frame length workaround for management port Prabhakar
2026-10-03  1:33   ` sashiko-bot
2026-10-09  1:44   ` Jakub Kicinski
2026-10-01 15:43 ` [PATCH net-next v2 11/12] net: dsa: rzn1-a5psw: Add support for RZ/T2H Ethernet switch Prabhakar
2026-10-01 15:43 ` [PATCH net-next v2 12/12] net: dsa: Kconfig: Enable support for RZ/T2H and RZ/N2H SoCs Prabhakar

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=20261003013310.D30A61F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=prabhakar.csengg@gmail.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wsa+renesas@sang-engineering.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