diff mbox series

[1/1] riscv: starfive: MMC card detect

Message ID 20240328214615.21501-1-heinrich.schuchardt@canonical.com
State Accepted
Commit 0ba23d3daf950930d802369f32672af17458b718
Delegated to: Andes
Headers show
Series [1/1] riscv: starfive: MMC card detect | expand

Commit Message

Heinrich Schuchardt March 28, 2024, 9:46 p.m. UTC
The VisionFive 2 board uses GPIO 41 as card detect as documented in
https://doc-en.rvspace.org/VisionFive2/PDF/SCH_RV002_V1.2A_20221216.pdf.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Minda Chen March 29, 2024, 7:53 a.m. UTC | #1
> 
> The VisionFive 2 board uses GPIO 41 as card detect as documented in
> https://doc-en.rvspace.org/VisionFive2/PDF/SCH_RV002_V1.2A_20221216.pdf.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
>  arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
> b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
> index f2c6bec9298..e11babc1cde 100644
> --- a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
> +++ b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
> @@ -298,7 +298,7 @@
>  	pinctrl-0 = <&mmc1_pins>;
>  	no-sdio;
>  	no-mmc;
> -	broken-cd;
> +	cd-gpios = <&sysgpio 41 GPIO_ACTIVE_LOW>;
>  	cap-sd-highspeed;
>  	post-power-on-delay-ms = <200>;
>  	status = "okay";
> --
> 2.43.0

Acked-by: Minda Chen <minda.chen@starfivetech.com>
diff mbox series

Patch

diff --git a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
index f2c6bec9298..e11babc1cde 100644
--- a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
+++ b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
@@ -298,7 +298,7 @@ 
 	pinctrl-0 = <&mmc1_pins>;
 	no-sdio;
 	no-mmc;
-	broken-cd;
+	cd-gpios = <&sysgpio 41 GPIO_ACTIVE_LOW>;
 	cap-sd-highspeed;
 	post-power-on-delay-ms = <200>;
 	status = "okay";