Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: Prabhakar <prabhakar.csengg@gmail.com>
Cc: conor+dt@kernel.org, wsa+renesas@sang-engineering.com,
	robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/3] arm64: dts: renesas: r9a09g087: Add xSPI nodes
Date: Tue, 26 May 2026 21:14:54 +0000	[thread overview]
Message-ID: <20260526211455.1F24C1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260526204045.3481604-3-prabhakar.mahadev-lad.rj@bp.renesas.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The xSPI nodes provide incomplete clock and reset properties for the fallback compatible string (`renesas,r9a09g047-xspi`), which will cause schema validation errors.
- [Low] Mixed decimal and hexadecimal notation for reset indices in sibling nodes.
--

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

arm64: dts: renesas: r9a09g087: Add xSPI nodes

Add device tree nodes for the two xSPI (Expanded SPI) controllers
integrated into the RZ/N2H (R9A09G087) SoC.

> diff --git a/arch/arm64/boot/dts/renesas/r9a09g087.dtsi b/arch/arm64/boot/dts/renesas/r9a09g087.dtsi
> index f697e9698ed39..e63a6b74d90b0 100644
> --- a/arch/arm64/boot/dts/renesas/r9a09g087.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r9a09g087.dtsi

[ ... ]

> @@ -1009,6 +1009,44 @@ mii_conv3: mii-conv@3 {
>  			};
>  		};
>  
> +		xspi0: spi@801c0000 {
> +			compatible = "renesas,r9a09g087-xspi", "renesas,r9a09g047-xspi";
> +			reg = <0 0x801c0000 0 0x1000>,
> +			      <0 0x40000000 0 0x10000000>;
> +			reg-names = "regs", "dirmap";
> +			interrupts = <GIC_SPI 654 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 655 IRQ_TYPE_LEVEL_HIGH>;
> +			interrupt-names = "pulse", "err_pulse";
> +			clocks = <&cpg CPG_MOD 4>,
> +				 <&cpg CPG_CORE R9A09G087_XSPI_CLK0>;
> +			clock-names = "ahb", "spi";
> +			resets = <&cpg 0x4>;
> +			reset-names = "hresetn";

[Severity: Medium]
Will this node pass schema validation for the r9a09g047-xspi fallback?

The YAML binding schema for renesas,r9a09g047-xspi requires four clocks (ahb,
axi, spi, spix2) and two resets (hresetn, aresetn), but only two clocks and
one reset are provided here.

Because device tree schema lists match positionally by index, providing spi
at index 1 of clock-names violates the schema that expects axi at that
position, which will cause dtbs_check to fail.

Additionally, should the primary compatible string renesas,r9a09g087-xspi be
documented in the bindings before adding it here?

> +			power-domains = <&cpg>;
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			status = "disabled";
> +		};
> +
> +		xspi1: spi@801c1000 {
> +			compatible = "renesas,r9a09g087-xspi", "renesas,r9a09g047-xspi";
> +			reg = <0 0x801c1000 0 0x1000>,
> +			      <0 0x50000000 0 0x10000000>;
> +			reg-names = "regs", "dirmap";
> +			interrupts = <GIC_SPI 656 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 657 IRQ_TYPE_LEVEL_HIGH>;
> +			interrupt-names = "pulse", "err_pulse";
> +			clocks = <&cpg CPG_MOD 5>,
> +				 <&cpg CPG_CORE R9A09G087_XSPI_CLK1>;
> +			clock-names = "ahb", "spi";
> +			resets = <&cpg 5>;

[Severity: Low]
This isn't a bug, but is it intentional to use decimal notation here
compared to hexadecimal notation for the reset index in the xspi0 node?

The xspi0 node uses <&cpg 0x4> while xspi1 uses <&cpg 5>. Should these use
a consistent notation base since they are identical adjacent hardware blocks?

> +			reset-names = "hresetn";
> +			power-domains = <&cpg>;
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			status = "disabled";
> +		};

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

  reply	other threads:[~2026-05-26 21:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-26 20:40 [PATCH 0/3] Add xSPI support for RZT2H, RZN2H SoCs Prabhakar
2026-05-26 20:40 ` [PATCH 1/3] arm64: dts: renesas: r9a09g077: Add xSPI nodes Prabhakar
2026-05-26 21:00   ` sashiko-bot
2026-05-26 20:40 ` [PATCH 2/3] arm64: dts: renesas: r9a09g087: " Prabhakar
2026-05-26 21:14   ` sashiko-bot [this message]
2026-05-26 20:40 ` [PATCH 3/3] arm64: dts: renesas: rzt2h-n2h-evk: Enable " Prabhakar
2026-05-26 21:23   ` sashiko-bot
  -- strict thread matches above, loose matches on Subject: below --
2026-05-05 12:01 [PATCH 0/3] Add xSPI nodes to RZ/N2H and RZ/T2H DTSI files, and enable on RZ/T2H-N2H EVKs Prabhakar
2026-05-05 12:01 ` [PATCH 2/3] arm64: dts: renesas: r9a09g087: Add xSPI nodes Prabhakar
2026-05-27 10:08   ` Geert Uytterhoeven

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=20260526211455.1F24C1F000E9@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