RE: [PATCH 3/3] arm64: dts: renesas: rzg3l-smarc-som: Enable SDHI2

From: Biju Das

Date: Fri Nov 20 2026 - 10:32:24 EST


Hi Geert,

> -----Original Message-----
> From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> Sent: 20 November 2026 13:23
> Subject: Re: [PATCH 3/3] arm64: dts: renesas: rzg3l-smarc-som: Enable SDHI2
>
> Hi Biju,
>
> On Fri, 20 Nov 2026 at 14:22, Biju Das <biju.das.jz@xxxxxxxxxxxxxx> wrote:
> > > From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> On Thu, 12 Nov 2026
> > > at 19:48, Biju Das <biju.das.au@xxxxxxxxx> wrote:
> > > > From: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
> > > >
> > > > Enable SDHI2 on the RZ/G3L SMARC EVK platform using the internal
> > > > voltage regulator for voltage switching. SDHI2 signals are muxed
> > > > with I2S0; the selection is controlled by the SW_SD2_EN macro in
> > > > the board DTS, which must match the position of switch SYS.4 on
> > > > the SoM. By default, I2S0 is enabled.
> > > >
> > > > Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
> > >
> > > Reviewed-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> > >
> > > > --- a/arch/arm64/boot/dts/renesas/rzg3l-smarc-som.dtsi
> > > > +++ b/arch/arm64/boot/dts/renesas/rzg3l-smarc-som.dtsi
> > > > @@ -42,6 +42,7 @@ aliases {
> > > > ethernet1 = &eth1;
> > > > i2c0 = &i2c0;
> > > > mmc0 = &sdhi0;
> > > > + mmc2 = &sdhi2;
> > > > };
> > > >
> > > > memory@48000000 {
> > > > @@ -355,6 +356,74 @@ sd0-data {
> > > > power-source = <1800>;
> > > > };
> > > > };
> > > > +
> > > > + sdhi2_pins: sd2 {
> > >
> > > > + sd2-pwen {
> > > > + pinmux = <RZG3L_PORT_PINMUX(K, 2, 1)>; /* SD2_PWEN */
> > > > + };
> > > > + };
> > >
> > > Just wondering: why do you use the internal voltage regulator for SD2 and GPIO hogs for SD0 and
> SD1?
> >
> > Just to give an example for the customer usage. Either use GPIO or
> > internal regulator both are supported in driver.
>
> OK. Please clarify in a comment.
>

I will add this comment in board dts file on the top to cover all SD interfaces:

/*
* The SDHI power signal can be controlled either by gpio hog or internal regulator, so a
* customer design can use whichever matches its hardware:
* - SD0 and SD1 use GPIO hogs to control the voltage-select/power
* signal on the board.
* - SD2 uses the SoC's internal voltage regulator.
*
* The mixed usage is only meant to demonstrate both options. It is not a
* hardware requirement of this board.
*/

Cheers,
Biju