]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: qcom: sdm660-xiaomi-lavender: Add missing SD card detect GPIO
authorAlexey Minnekhanov <alexeymin@postmarketos.org>
Tue, 15 Apr 2025 13:01:01 +0000 (16:01 +0300)
committerBjorn Andersson <andersson@kernel.org>
Wed, 16 Apr 2025 02:09:43 +0000 (21:09 -0500)
During initial porting these cd-gpios were missed. Having card detect is
beneficial because driver does not need to do polling every second and it
can just use IRQ. SD card detection in U-Boot is also fixed by this.

Fixes: cf85e9aee210 ("arm64: dts: qcom: sdm660-xiaomi-lavender: Add eMMC and SD")
Signed-off-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250415130101.1429281-1-alexeymin@postmarketos.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts

index 7167f75bced3fdee2bf34b74f1396a2bda5a944f..0b4d71c14a77233652f8acd87fee8f21b56b7e78 100644 (file)
 &sdhc_2 {
        status = "okay";
 
+       cd-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
+
        vmmc-supply = <&vreg_l5b_2p95>;
        vqmmc-supply = <&vreg_l2b_2p95>;
 };