From: sashiko-bot@kernel.org
To: Prabhakar <prabhakar.csengg@gmail.com>
Cc: wsa+renesas@sang-engineering.com, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 3/3] arm64: dts: renesas: rzt2h-n2h-evk: Enable xSPI nodes
Date: Tue, 26 May 2026 21:23:25 +0000 [thread overview]
Message-ID: <20260526212325.D9EF31F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260526204045.3481604-4-prabhakar.mahadev-lad.rj@bp.renesas.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The 'spi-max-frequency' property is missing from the SPI NOR flash peripheral nodes (flash@0) under both xspi0 and xspi1.
- [Low] The unit addresses in the partition node names for xspi0 do not match their corresponding 'reg' base addresses.
--
commit 61aa7aa9a0a6654d6fbf30169801908b8247d8cd
Author: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
arm64: dts: renesas: rzt2h-n2h-evk: Enable xSPI nodes
Enable the xSPI0 and xSPI1 controllers on the RZ/T2H N2H EVK board.
> diff --git a/arch/arm64/boot/dts/renesas/rzt2h-n2h-evk-common.dtsi b/arch/arm64/boot/dts/renesas/rzt2h-n2h-evk-common.dtsi
> index f87c2492f414a..fff63d08e3a3c 100644
> --- a/arch/arm64/boot/dts/renesas/rzt2h-n2h-evk-common.dtsi
> +++ b/arch/arm64/boot/dts/renesas/rzt2h-n2h-evk-common.dtsi
[ ... ]
> @@ -395,3 +451,86 @@ &wdt2 {
> timeout-sec = <60>;
> };
>
> +&xspi0 {
> + pinctrl-0 = <&xspi0_pins>;
> + pinctrl-names = "default";
> + status = "okay";
> +
> + assigned-clocks = <&cpg CPG_CORE R9A09G077_XSPI_CLK0>;
> + assigned-clock-rates = <50000000>;
> +
> + flash@0 {
> + compatible = "jedec,spi-nor";
> + reg = <0>;
[Severity: Medium]
Should there be a 'spi-max-frequency' property specified here?
Standard SPI peripheral Device Tree bindings require the 'spi-max-frequency'
property on child nodes to explicitly specify the maximum SPI clock speed
the device can tolerate. Omitting this property will cause 'dtbs_check'
warnings.
Furthermore, without it, the SPI core framework initializes the device's
max_speed_hz to 0, forcing reliance on the controller's internal clock
fallback behavior.
> + m25p,fast-read;
[ ... ]
> + partitions {
> + compatible = "fixed-partitions";
> + #address-cells = <1>;
> + #size-cells = <1>;
> +
> + partition@0 {
> + label = "bl2-0";
> + reg = <0x00000000 0x00060000>;
> + read-only;
> + };
> +
> + partition@1fb000 {
> + label = "fip-0";
> + reg = <0x00060000 0x007a0000>;
[Severity: Low]
Does this unit address match the first address specified in its 'reg' property?
The Device Tree specification requires the unit-address (the part after '@') in
a node name to exactly match the first address specified in its 'reg'
property. Here, 'partition@1fb000' defines its base address as '0x00060000'.
This mismatch will trigger 'unit_address_vs_reg' warnings during device tree
compilation.
> + read-only;
> + };
> +
> + partition@300000 {
> + label = "user-0";
> + reg = <0x800000 0x003800000>;
[Severity: Low]
Does this unit address match the first address specified in its 'reg' property?
The Device Tree specification requires the unit-address (the part after '@') in
a node name to exactly match the first address specified in its 'reg'
property. Here, 'partition@300000' defines its base address as '0x800000'.
This mismatch will trigger 'unit_address_vs_reg' warnings during device tree
compilation.
Additionally, does the size value '0x003800000' contain an extraneous leading
zero?
> + };
> + };
> + };
> +};
> +
> +&xspi1 {
> + pinctrl-0 = <&xspi1_pins>;
> + pinctrl-names = "default";
> + status = "okay";
> +
> + assigned-clocks = <&cpg CPG_CORE R9A09G077_XSPI_CLK1>;
> + assigned-clock-rates = <50000000>;
> +
> + flash@0 {
> + compatible = "jedec,spi-nor";
> + reg = <0>;
[Severity: Medium]
Should there be a 'spi-max-frequency' property specified here?
Standard SPI peripheral Device Tree bindings require the 'spi-max-frequency'
property on child nodes to explicitly specify the maximum SPI clock speed
the device can tolerate. Omitting this property will cause 'dtbs_check'
warnings.
Furthermore, without it, the SPI core framework initializes the device's
max_speed_hz to 0, forcing reliance on the controller's internal clock
fallback behavior.
> + m25p,fast-read;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260526204045.3481604-1-prabhakar.mahadev-lad.rj@bp.renesas.com?part=3
next prev parent reply other threads:[~2026-05-26 21:23 UTC|newest]
Thread overview: 10+ 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
2026-05-26 20:40 ` [PATCH 3/3] arm64: dts: renesas: rzt2h-n2h-evk: Enable " Prabhakar
2026-05-26 21:23 ` sashiko-bot [this message]
-- 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 3/3] arm64: dts: renesas: rzt2h-n2h-evk: Enable xSPI nodes Prabhakar
2026-05-27 10:43 ` Geert Uytterhoeven
2026-05-27 12:26 ` Lad, 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=20260526212325.D9EF31F000E9@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