Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Biju Das" <biju.das.au@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
	wsa+renesas@sang-engineering.com
Subject: Re: [PATCH v2 1/3] arm64: dts: renesas: r9a08g046: Add SDHI nodes for RZ/G3L SoC and SDHI1 pincontrol on SMARC EVK
Date: Mon, 23 Nov 2026 14:12:50 +0000	[thread overview]
Message-ID: <sashiko-outbox-229381@kernel.org> (raw)
In-Reply-To: <20261123-sdhi_rzg3l-v2-1-bad3a6358849@bp.renesas.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arm64: dts: renesas: r9a08g046: undocumented SDHI compatible,
  clocks, and resets
- [Medium] arm64: dts: renesas: r9a08g046l48-smarc: syntax error in
  sdhi1 #else branch
--

commit 527fb6eb84a5c0b07ad82e70e9460e0c1834eaeb
Author: Biju Das <biju.das.jz@bp.renesas.com>

arm64: dts: renesas: r9a08g046: Add SDHI nodes for RZ/G3L SoC and SDHI1 pincontrol on SMARC EVK

This commit adds the SDHI0, SDHI1, and SDHI2 controller nodes to the
RZ/G3L SoC dtsi and configures SDHI1 pin control and regulators on the
RZ/G3L SMARC EVK board.

> diff --git a/arch/arm64/boot/dts/renesas/r9a08g046.dtsi b/arch/arm64/boot/dts/renesas/r9a08g046.dtsi
> index bb69e5e3528d0..b710f47d3f030 100644
> --- a/arch/arm64/boot/dts/renesas/r9a08g046.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r9a08g046.dtsi
> @@ -1068,9 +1068,80 @@ dmac: dma-controller@11820000 {
>  			dma-channels = <16>;
>  		};
>  
> +		sdhi0: mmc@11c00000 {
> +			compatible = "renesas,sdhi-r9a08g046";
> +			reg = <0x0 0x11c00000 0 0x10000>;
> +			interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&cpg CPG_MOD R9A08G046_SDHI0_IMCLK>,
> +				 <&cpg CPG_MOD R9A08G046_SDHI0_CLK_HS>,
> +				 <&cpg CPG_MOD R9A08G046_SDHI0_IMCLK2>,
> +				 <&cpg CPG_MOD R9A08G046_SDHI0_IACLKM>,
> +				 <&cpg CPG_MOD R9A08G046_SDHI0_IACLKS>;
> +			clock-names = "core", "clkh", "cd", "aclkm", "aclks";
> +			max-frequency = <150000000>;
> +			resets = <&cpg R9A08G046_SDHI0_IXRST>,
> +				 <&cpg R9A08G046_SDHI0_IXRSTAXIM>,
> +				 <&cpg R9A08G046_SDHI0_IXRSTAXIS>;
> +			reset-names = "rst", "axim", "axis";
> +			power-domains = <&cpg>;
> +			status = "disabled";
> +		};
> +
>  		sdhi1: mmc@11c10000 {
> +			compatible = "renesas,sdhi-r9a08g046";
>  			reg = <0x0 0x11c10000 0 0x10000>;
> -			/* placeholder */
> +			interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&cpg CPG_MOD R9A08G046_SDHI1_IMCLK>,
> +				 <&cpg CPG_MOD R9A08G046_SDHI1_CLK_HS>,
> +				 <&cpg CPG_MOD R9A08G046_SDHI1_IMCLK2>,
> +				 <&cpg CPG_MOD R9A08G046_SDHI1_IACLKM>,
> +				 <&cpg CPG_MOD R9A08G046_SDHI1_IACLKS>;
> +			clock-names = "core", "clkh", "cd", "aclkm", "aclks";
> +			max-frequency = <150000000>;
> +			resets = <&cpg R9A08G046_SDHI1_IXRST>,
> +				 <&cpg R9A08G046_SDHI1_IXRSTAXIM>,
> +				 <&cpg R9A08G046_SDHI1_IXRSTAXIS>;
> +			reset-names = "rst", "axim", "axis";
> +			power-domains = <&cpg>;
> +			status = "disabled";
> +
> +			sdhi1_vqmmc: vqmmc-regulator {
> +				regulator-name = "SDHI1-VQMMC";
> +				regulator-min-microvolt = <1800000>;
> +				regulator-max-microvolt = <3300000>;
> +				regulator-ramp-delay = <1200>;
> +				status = "disabled";
> +			};
> +		};
> +
> +		sdhi2: mmc@11c20000 {
> +			compatible = "renesas,sdhi-r9a08g046";
> +			reg = <0x0 0x11c20000 0 0x10000>;
> +			interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&cpg CPG_MOD R9A08G046_SDHI2_IMCLK>,
> +				 <&cpg CPG_MOD R9A08G046_SDHI2_CLK_HS>,
> +				 <&cpg CPG_MOD R9A08G046_SDHI2_IMCLK2>,
> +				 <&cpg CPG_MOD R9A08G046_SDHI2_IACLKM>,
> +				 <&cpg CPG_MOD R9A08G046_SDHI2_IACLKS>;
> +			clock-names = "core", "clkh", "cd", "aclkm", "aclks";
> +			max-frequency = <150000000>;
> +			resets = <&cpg R9A08G046_SDHI2_IXRST>,
> +				 <&cpg R9A08G046_SDHI2_IXRSTAXIM>,
> +				 <&cpg R9A08G046_SDHI2_IXRSTAXIS>;
> +			reset-names = "rst", "axim", "axis";
> +			power-domains = <&cpg>;
> +			status = "disabled";
> +
> +			sdhi2_vqmmc: vqmmc-regulator {
> +				regulator-name = "SDHI2-VQMMC";
> +				regulator-min-microvolt = <1800000>;
> +				regulator-max-microvolt = <3300000>;
> +				regulator-ramp-delay = <1200>;
> +				status = "disabled";
> +			};
>  		};

[Severity: High]
Are the prerequisite binding and driver changes for "renesas,sdhi-r9a08g046"
missing from this tree?

Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml does not list
"renesas,sdhi-r9a08g046", limits clocks to 4 items and resets to 1 item
without reset-names, and only allows vqmmc-regulator for
"renesas,sdhi-r9a09g057", so dtbs_check fails on these nodes.  In addition,
renesas_sdhi_internal_dmac_of_match[] has no entry for
"renesas,sdhi-r9a08g046" (and the nodes have no fallback compatible), and
renesas_sdhi_probe() only requests a single unnamed reset, leaving the
controllers unbound and their axim and axis resets unmanaged.

> diff --git a/arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts b/arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts
> index 517747aef36ef..e9b7b3280615c 100644
> --- a/arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts
> +++ b/arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts
[ ... ]
> @@ -312,6 +389,19 @@ &scif0 {
>  	pinctrl-names = "default";
>  };
>  
> +#if RZ_BOOT_MODE3
> +&sdhi1 {
> +	pinctrl-0 = <&sdhi1_pins>;
> +	pinctrl-1 = <&sdhi1_uhs_pins>;
> +	pinctrl-names = "default", "state_uhs";
> +
> +	vmmc-supply = <&reg_3p3v>;
> +	vqmmc-supply = <&vqmmc_sd1_pvdd>;
> +};
> +#else
> +	status = "disabled";
> +#endif

[Severity: Medium]
Does building with RZ_BOOT_MODE3 set to 0 fail with a dtc syntax error?
Both "&sdhi1 {" and its closing "};" are inside the #if RZ_BOOT_MODE3
branch, which leaves "status = "disabled";" in the #else branch outside of
any node block.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-sdhi_rzg3l-v2-0-bad3a6358849@bp.renesas.com?part=1

  reply	other threads:[~2026-11-23 14:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 13:57 [PATCH v2 0/3] Enable RZ/G3L SDHI Biju Das
2026-11-23 13:57 ` [PATCH v2 1/3] arm64: dts: renesas: r9a08g046: Add SDHI nodes for RZ/G3L SoC and SDHI1 pincontrol on SMARC EVK Biju Das
2026-11-23 14:12   ` sashiko-bot [this message]
2026-11-23 13:57 ` [PATCH v2 2/3] arm64: dts: renesas: rzg3l-smarc-som: Enable SD/eMMC on SDHI0 Biju Das
2026-11-23 14:22   ` sashiko-bot
2026-11-23 13:57 ` [PATCH v2 3/3] arm64: dts: renesas: rzg3l-smarc-som: Enable SDHI2 Biju Das

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-229381@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=biju.das.au@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --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