Skip to content

Commit 338b415

Browse files
kcxtandersson
authored andcommitted
arm64: dts: qcom: sdm845-shift-axolotl: Enable sdcard
The SHIFT6mq features an sdcard slot, add it. Signed-off-by: Casey Connolly <casey.connolly@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Co-developed-by: David Heidelberg <david@ixit.cz> Signed-off-by: David Heidelberg <david@ixit.cz> Link: https://lore.kernel.org/r/20260402-axolotl-misc-p1-v3-1-8934e9db6831@ixit.cz Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 9b7d6b6 commit 338b415

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,24 @@
600600
status = "okay";
601601
};
602602

603+
&sdhc_2 {
604+
pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>;
605+
pinctrl-names = "default";
606+
607+
vmmc-supply = <&vreg_l21a_2p95>;
608+
vqmmc-supply = <&vreg_l13a_2p95>;
609+
610+
bus-width = <4>;
611+
/*
612+
* Card detection is broken, but because the battery must be removed
613+
* to insert the card, we use this rather than the broken-cd property
614+
* which would just waste CPU cycles polling.
615+
*/
616+
non-removable;
617+
618+
status = "okay";
619+
};
620+
603621
&slpi_pas {
604622
firmware-name = "qcom/sdm845/SHIFT/axolotl/slpi.mbn";
605623

@@ -609,6 +627,32 @@
609627
&tlmm {
610628
gpio-reserved-ranges = <0 4>, <81 4>;
611629

630+
sdc2_default_state: sdc2-default-state {
631+
clk-pins {
632+
pins = "sdc2_clk";
633+
drive-strength = <16>;
634+
bias-disable;
635+
};
636+
637+
cmd-pins {
638+
pins = "sdc2_cmd";
639+
drive-strength = <10>;
640+
bias-pull-up;
641+
};
642+
643+
data-pins {
644+
pins = "sdc2_data";
645+
drive-strength = <10>;
646+
bias-pull-up;
647+
};
648+
};
649+
650+
sdc2_card_det_n: sd-card-det-n-state {
651+
pins = "gpio126";
652+
function = "gpio";
653+
bias-disable;
654+
};
655+
612656
sde_dsi_active: sde-dsi-active-state {
613657
pins = "gpio6", "gpio11";
614658
function = "gpio";

0 commit comments

Comments
 (0)