Skip to content

Commit a1b1ee0

Browse files
prabhakarladgeertu
authored andcommitted
arm64: dts: renesas: rzt2h-n2h-evk-common: Use GPIO for SD0 write protect
Switch SD0 write-protect detection to a GPIO on the RZ/T2H and RZ/N2H EVKs. Both boards use a full-size SD card slot on the SD0 channel with a dedicated WP pin. The RZ/T2H and RZ/N2H SoCs use of_data_rcar_gen3, which sets MMC_CAP2_NO_WRITE_PROTECT and causes the core to ignore the WP signal unless a wp-gpios property is provided. Describe the WP pin as a GPIO to allow the MMC core to evaluate the write-protect status correctly. Fixes: d065453 ("arm64: dts: renesas: rzt2h-rzn2h-evk: Enable SD card slot") Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20260106131319.643084-1-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 688fded commit a1b1ee0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/arm64/boot/dts/renesas/rzt2h-n2h-evk-common.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@
224224
ctrl-pins {
225225
pinmux = <RZT2H_PORT_PINMUX(12, 0, 0x29)>, /* SD0_CLK */
226226
<RZT2H_PORT_PINMUX(12, 1, 0x29)>, /* SD0_CMD */
227-
<RZT2H_PORT_PINMUX(22, 5, 0x29)>, /* SD0_CD */
228-
<RZT2H_PORT_PINMUX(22, 6, 0x29)>; /* SD0_WP */
227+
<RZT2H_PORT_PINMUX(22, 5, 0x29)>; /* SD0_CD */
229228
};
230229
};
231230

@@ -282,6 +281,7 @@
282281
pinctrl-names = "default", "state_uhs";
283282
vmmc-supply = <&reg_3p3v>;
284283
vqmmc-supply = <&vqmmc_sdhi0>;
284+
wp-gpios = <&pinctrl RZT2H_GPIO(22, 6) GPIO_ACTIVE_HIGH>;
285285
bus-width = <4>;
286286
sd-uhs-sdr50;
287287
sd-uhs-sdr104;

0 commit comments

Comments
 (0)