All of lore.kernel.org
 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 2/3] arm64: dts: renesas: rzg3l-smarc-som: Enable SD/eMMC on SDHI0
Date: Mon, 23 Nov 2026 14:22:52 +0000	[thread overview]
Message-ID: <sashiko-outbox-229391@kernel.org> (raw)
In-Reply-To: <20261123-sdhi_rzg3l-v2-2-bad3a6358849@bp.renesas.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] arm64: dts: renesas: non-generic node name vqmmc-sd0-pvdd for
  GPIO regulator
- [Low] arm64: dts: renesas: misplaced closing brace in #if
  RZ_BOOT_MODE3 around &sdhi1
--

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

arm64: dts: renesas: rzg3l-smarc-som: Enable SD/eMMC on SDHI0

This commit adds pin control, regulator, and SDHI0 device tree nodes to
support either eMMC or an SD card on the RZ/G3L SMARC SoM depending on the
SW_SD0_DEV_SEL macro.

> diff --git a/arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts b/arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts
> index e9b7b3280615c..3699712d8bf1d 100644
> --- a/arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts
> +++ b/arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts
> @@ -9,6 +9,7 @@
>  
>  /* Switch selection settings */
>  #define RZ_BOOT_MODE3		1
> +#define SW_SD0_DEV_SEL		0
>  #define SW_SD2_EN		0
>  #define SW_DPI_EN		0
>  #define SW_GPIO4		1

[Severity: Low]
In commit "arm64: dts: renesas: r9a08g046: Add SDHI nodes for RZ/G3L SoC and
SDHI1 pincontrol on SMARC EVK" earlier in this series, does closing &sdhi1
before #else break DT compilation when RZ_BOOT_MODE3 is set to 0?

arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts:
#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

When RZ_BOOT_MODE3 is 0, status = "disabled"; is emitted at top-level file
scope outside any node, causing a DTC syntax error instead of overriding
status = "okay"; from renesas-smarc2.dtsi.  &sdhi1 { ... }; should enclose
the #if RZ_BOOT_MODE3 / #else / #endif block.

> diff --git a/arch/arm64/boot/dts/renesas/rzg3l-smarc-som.dtsi b/arch/arm64/boot/dts/renesas/rzg3l-smarc-som.dtsi
> index 91b2d0d431045..e64a611aebecd 100644
> --- a/arch/arm64/boot/dts/renesas/rzg3l-smarc-som.dtsi
> +++ b/arch/arm64/boot/dts/renesas/rzg3l-smarc-som.dtsi

[ ... ]

> @@ -78,6 +83,19 @@ reg_3p3v: regulator-3p3v {
>  		regulator-always-on;
>  	};
>  
> +#if SW_SD0_DEV_SEL
> +	vqmmc_sd0_pvdd: vqmmc-sd0-pvdd {
> +		compatible = "regulator-gpio";
> +		regulator-name = "SD0_PVDD";
> +		regulator-min-microvolt = <1800000>;
> +		regulator-max-microvolt = <3300000>;
> +		gpios = <&pinctrl RZG3L_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
> +		gpios-states = <0>;
> +		states = <3300000 0>, <1800000 1>;
> +		regulator-ramp-delay = <1200>;
> +	};
> +#endif

[Severity: Low]
Should vqmmc_sd0_pvdd use the generic regulator-vqmmc-sd0-pvdd node name
instead of vqmmc-sd0-pvdd to match the Devicetree generic node naming rules
and vqmmc_sd1_pvdd: regulator-vqmmc-sd1-pvdd in r9a08g046l48-smarc.dts?

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

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

Thread overview: 8+ 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
2026-11-24 11:24     ` Biju Das
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 [this message]
2026-11-24 11:27     ` Biju Das
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-229391@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 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.