From: Marijn Suijten Date: Sun, 30 Oct 2022 07:32:25 +0000 (+0100) Subject: arm64: dts: qcom: sm6350-lena: Add SD Card Detect to sdc2 on/off pinctrl X-Git-Tag: v6.6.7~4018^2~16^2~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edf070fcbcec70765fe520d476fd9527b5e96477;p=platform%2Fkernel%2Flinux-starfive.git arm64: dts: qcom: sm6350-lena: Add SD Card Detect to sdc2 on/off pinctrl In addition to the sdc2 pins, set the SD Card Detect pin in a sane state to be used as an interrupt when an SD Card is slotted in or removed. Signed-off-by: Marijn Suijten Acked-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20221030073232.22726-4-marijn.suijten@somainline.org --- diff --git a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts index 36911b9..9a96000 100644 --- a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts +++ b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts @@ -30,6 +30,24 @@ }; }; +&sdc2_off_state { + sd-cd-pins { + pins = "gpio94"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; +}; + +&sdc2_on_state { + sd-cd-pins { + pins = "gpio94"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; +}; + &sdhc_2 { status = "okay";