Skip to content

Commit d55fed2

Browse files
mchunara007Monish Chunara
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 8f8218e commit d55fed2

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
@@ -34,6 +34,9 @@ dtb-$(CONFIG_ARCH_QCOM) += ipq9574-rdp454.dtb
3434
dtb-$(CONFIG_ARCH_QCOM) += kaanapali-mtp.dtb
3535
dtb-$(CONFIG_ARCH_QCOM) += lemans-evk.dtb
3636

37+
lemans-evk-sd-card-dtbs := lemans-evk.dtb lemans-evk-sd-card.dtbo
38+
dtb-$(CONFIG_ARCH_QCOM) += lemans-evk-sd-card.dtb
39+
3740
lemans-evk-camera-csi1-imx577-dtbs := lemans-evk.dtb lemans-evk-camera-csi1-imx577.dtbo
3841
lemans-evk-el2-dtbs := lemans-evk.dtb lemans-el2.dtbo
3942

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
@@ -934,22 +934,6 @@
934934
};
935935
};
936936

937-
&sdhc {
938-
vmmc-supply = <&vmmc_sdc>;
939-
vqmmc-supply = <&vreg_sdc>;
940-
941-
pinctrl-0 = <&sdc_default>, <&sd_cd>;
942-
pinctrl-1 = <&sdc_sleep>, <&sd_cd>;
943-
pinctrl-names = "default", "sleep";
944-
945-
bus-width = <4>;
946-
cd-gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
947-
no-mmc;
948-
no-sdio;
949-
950-
status = "okay";
951-
};
952-
953937
&serdes0 {
954938
phy-supply = <&vreg_l5a>;
955939
vdda-0p9-supply = <&vreg_l4a>;

0 commit comments

Comments
 (0)