]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: msm8953-xiaomi-daisy: fix cd-gpios
authorBarnabás Czémán <barnabas.czeman@mainlining.org>
Wed, 3 Sep 2025 21:27:33 +0000 (23:27 +0200)
committerBjorn Andersson <andersson@kernel.org>
Wed, 17 Sep 2025 19:25:44 +0000 (14:25 -0500)
SD detection was not working because cd-gpios flag
was wrongly configured, according to downstream sources
device is using GPIO_ACTIVE_HIGH.
Fix SD detection with change cd-gpios from GPIO_ACTIVE_LOW
to GPIO_ACTIVE_HIGH.

Fixes: 38d779c26395 ("arm64: dts: qcom: msm8953: Add device tree for Xiaomi Mi A2 Lite")
Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250903-daisy-sd-fix-v2-1-e08c50f3be57@mainlining.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts

index 336b916729e4721b5ba8f4f7e368d0d838aa54ab..ddd7af616794290aa1f06228a95cfa1d42b006e6 100644 (file)
        vmmc-supply = <&pm8953_l11>;
        vqmmc-supply = <&pm8953_l12>;
 
-       cd-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>;
+       cd-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>;
 
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;