]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: starfive: MMC card detect
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 28 Mar 2024 21:46:15 +0000 (22:46 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 9 Apr 2024 03:30:29 +0000 (11:30 +0800)
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>
Acked-by: Minda Chen <minda.chen@starfivetech.com>
arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi

index f2c6bec9298815f2c6c76df15d37c8de2889eb84..e11babc1cdecb73ad040bf5b8b6eb6b3f415dbdd 100644 (file)
        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";