Skip to content

Commit a9adf3c

Browse files
mchunara007Komal-Bajaj
authored andcommitted
FROMLIST: arm64: dts: qcom: lemans-evk: Move SD card support to overlay
The lemans EVK board supports either eMMC or SD-card, but only one can be active at a time. Move the SDHC node for SD card into a dedicated device tree overlay. This decoupling allows the storage medium to be selected dynamically by applying the appropriate overlay for either SD card or eMMC support. Link: https://lore.kernel.org/all/20260227102405.2339544-2-monish.chunara@oss.qualcomm.com/ Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
1 parent 0199b63 commit a9adf3c

3 files changed

Lines changed: 28 additions & 16 deletions

File tree

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ dtb-$(CONFIG_ARCH_QCOM) += kaanapali-mtp.dtb
4343
dtb-$(CONFIG_ARCH_QCOM) += kaanapali-qrd.dtb
4444
dtb-$(CONFIG_ARCH_QCOM) += lemans-evk.dtb
4545

46+
lemans-evk-sd-card-dtbs := lemans-evk.dtb lemans-evk-sd-card.dtbo
47+
dtb-$(CONFIG_ARCH_QCOM) += lemans-evk-sd-card.dtb
48+
4649
lemans-evk-camera-csi1-imx577-dtbs := lemans-evk.dtb lemans-evk-camera-csi1-imx577.dtbo
4750
lemans-evk-camera-dtbs := lemans-evk.dtb lemans-evk-camera.dtbo
4851

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
#include <dt-bindings/gpio/gpio.h>
10+
11+
&sdhc {
12+
vmmc-supply = <&vmmc_sdc>;
13+
vqmmc-supply = <&vreg_sdc>;
14+
15+
pinctrl-0 = <&sdc_default>, <&sd_cd>;
16+
pinctrl-1 = <&sdc_sleep>, <&sd_cd>;
17+
pinctrl-names = "default", "sleep";
18+
19+
bus-width = <4>;
20+
cd-gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
21+
no-mmc;
22+
no-sdio;
23+
24+
status = "okay";
25+
};

arch/arm64/boot/dts/qcom/lemans-evk.dts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -967,22 +967,6 @@
967967
status = "okay";
968968
};
969969

970-
&sdhc {
971-
vmmc-supply = <&vmmc_sdc>;
972-
vqmmc-supply = <&vreg_sdc>;
973-
974-
pinctrl-0 = <&sdc_default>, <&sd_cd>;
975-
pinctrl-1 = <&sdc_sleep>, <&sd_cd>;
976-
pinctrl-names = "default", "sleep";
977-
978-
bus-width = <4>;
979-
cd-gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
980-
no-mmc;
981-
no-sdio;
982-
983-
status = "okay";
984-
};
985-
986970
&serdes0 {
987971
phy-supply = <&vreg_l5a>;
988972
vdda-0p9-supply = <&vreg_l4a>;

0 commit comments

Comments
 (0)