* [PATCH 2/3] arm64: dts: qcom: Add SD Card support for Shikra SoC
2026-09-11 9:39 [PATCH] arm64: dts: qcom: Shikra SD Card support Monish Chunara
@ 2026-09-11 9:39 ` Monish Chunara
2026-09-11 13:34 ` Abel Vesa
2026-09-13 15:20 ` Komal Bajaj
2026-09-11 9:39 ` [PATCH 3/3] arm64: dts: qcom: Enable SD card for Shikra EVK Monish Chunara
2026-09-25 20:27 ` [PATCH] arm64: dts: qcom: Shikra SD Card support Bjorn Andersson
2 siblings, 2 replies; 8+ messages in thread
From: Monish Chunara @ 2026-09-11 9:39 UTC (permalink / raw)
To: Monish Chunara, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Vinod Koul, Neil Armstrong,
Wesley Cheng, Ulf Hansson, Kernel Team
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, linux-mmc,
Nitin Rawat, Pradeep Pragallapati, Komal Bajaj, Konrad Dybcio
Add support for SD card on Shikra SoC and enable the required pinctrl
configurations.
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/shikra.dtsi | 97 ++++++++++++++++++++++++++++
1 file changed, 97 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
index 1395c182a2b1..4963c818a7ae 100644
--- a/arch/arm64/boot/dts/qcom/shikra.dtsi
+++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
@@ -942,6 +942,53 @@ rclk-pins {
bias-bus-hold;
};
};
+
+ sdc2_default: sdc2-default-state {
+ clk-pins {
+ pins = "sdc2_clk";
+ drive-strength = <14>;
+ bias-disable;
+ };
+
+ cmd-pins {
+ pins = "sdc2_cmd";
+ drive-strength = <14>;
+ bias-pull-up;
+ };
+
+ data-pins {
+ pins = "sdc2_data";
+ drive-strength = <14>;
+ bias-pull-up;
+ };
+ };
+
+ sdc2_sleep: sdc2-sleep-state {
+ clk-pins {
+ pins = "sdc2_clk";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
+ cmd-pins {
+ pins = "sdc2_cmd";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+
+ data-pins {
+ pins = "sdc2_data";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+ };
+
+ sdc2_card_det_n: sd-card-det-n-state {
+ pins = "gpio89";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
};
pmu@c91000 {
@@ -1330,6 +1377,56 @@ sdhc_ice: crypto@4748000 {
power-domains = <&rpmpd RPMHPD_CX>;
};
+ sdhc_2: mmc@4784000 {
+ compatible = "qcom,shikra-sdhci", "qcom,sdhci-msm-v5";
+ reg = <0x0 0x04784000 0x0 0x1000>;
+
+ interrupts = <GIC_SPI 350 IRQ_TYPE_LEVEL_HIGH 0>,
+ <GIC_SPI 353 IRQ_TYPE_LEVEL_HIGH 0>;
+ interrupt-names = "hc_irq",
+ "pwr_irq";
+
+ bus-width = <4>;
+
+ clocks = <&gcc GCC_SDCC2_AHB_CLK>,
+ <&gcc GCC_SDCC2_APPS_CLK>,
+ <&rpmcc RPM_SMD_XO_CLK_SRC>;
+ clock-names = "iface",
+ "core",
+ "xo";
+
+ qcom,dll-config = <0x0007442c>;
+ qcom,ddr-config = <0x80040868>;
+
+ iommus = <&apps_smmu 0x0a0 0x0>;
+
+ interconnects = <&system_noc MASTER_SDCC_2 RPM_ALWAYS_TAG
+ &mc_virt SLAVE_EBI_CH0 RPM_ALWAYS_TAG>,
+ <&mem_noc MASTER_AMPSS_M0 RPM_ACTIVE_TAG
+ &config_noc SLAVE_SDCC_2 RPM_ACTIVE_TAG>;
+ interconnect-names = "sdhc-ddr",
+ "cpu-sdhc";
+
+ power-domains = <&rpmpd RPMPD_VDDCX>;
+ operating-points-v2 = <&sdhc2_opp_table>;
+
+ status = "disabled";
+
+ sdhc2_opp_table: opp-table-2 {
+ compatible = "operating-points-v2";
+
+ opp-100000000 {
+ opp-hz = /bits/ 64 <100000000>;
+ required-opps = <&rpmpd_opp_low_svs>;
+ };
+
+ opp-202000000 {
+ opp-hz = /bits/ 64 <202000000>;
+ required-opps = <&rpmpd_opp_svs_plus>;
+ };
+ };
+ };
+
gpi_dma0: dma-controller@4a00000 {
compatible = "qcom,shikra-gpi-dma", "qcom,sm6350-gpi-dma";
reg = <0x0 0x04a00000 0x0 0x60000>;
--
2.34.1
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 2/3] arm64: dts: qcom: Add SD Card support for Shikra SoC
2026-09-11 9:39 ` [PATCH 2/3] arm64: dts: qcom: Add SD Card support for Shikra SoC Monish Chunara
@ 2026-09-11 13:34 ` Abel Vesa
2026-09-13 15:20 ` Komal Bajaj
1 sibling, 0 replies; 8+ messages in thread
From: Abel Vesa @ 2026-09-11 13:34 UTC (permalink / raw)
To: Monish Chunara
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Vinod Koul, Neil Armstrong, Wesley Cheng,
Ulf Hansson, Kernel Team, linux-arm-msm, devicetree,
linux-kernel, linux-phy, linux-mmc, Nitin Rawat,
Pradeep Pragallapati, Komal Bajaj, Konrad Dybcio
On 26-09-11 15:09:31, Monish Chunara wrote:
> Add support for SD card on Shikra SoC and enable the required pinctrl
> configurations.
>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/3] arm64: dts: qcom: Add SD Card support for Shikra SoC
2026-09-11 9:39 ` [PATCH 2/3] arm64: dts: qcom: Add SD Card support for Shikra SoC Monish Chunara
2026-09-11 13:34 ` Abel Vesa
@ 2026-09-13 15:20 ` Komal Bajaj
1 sibling, 0 replies; 8+ messages in thread
From: Komal Bajaj @ 2026-09-13 15:20 UTC (permalink / raw)
To: Monish Chunara, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Vinod Koul, Neil Armstrong,
Wesley Cheng, Ulf Hansson, Kernel Team
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, linux-mmc,
Nitin Rawat, Pradeep Pragallapati, Konrad Dybcio
On 9/11/2026 3:09 PM, Monish Chunara wrote:
> Add support for SD card on Shikra SoC and enable the required pinctrl
> configurations.
>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
Reviewed-by: Komal Bajaj <komal.bajaj@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 3/3] arm64: dts: qcom: Enable SD card for Shikra EVK
2026-09-11 9:39 [PATCH] arm64: dts: qcom: Shikra SD Card support Monish Chunara
2026-09-11 9:39 ` [PATCH 2/3] arm64: dts: qcom: Add SD Card support for Shikra SoC Monish Chunara
@ 2026-09-11 9:39 ` Monish Chunara
2026-09-11 13:35 ` Abel Vesa
2026-09-13 15:20 ` Komal Bajaj
2026-09-25 20:27 ` [PATCH] arm64: dts: qcom: Shikra SD Card support Bjorn Andersson
2 siblings, 2 replies; 8+ messages in thread
From: Monish Chunara @ 2026-09-11 9:39 UTC (permalink / raw)
To: Monish Chunara, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Vinod Koul, Neil Armstrong,
Wesley Cheng, Ulf Hansson, Kernel Team
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, linux-mmc,
Nitin Rawat, Pradeep Pragallapati, Komal Bajaj, Konrad Dybcio
Enable SD card for Shikra CQS, CQM and IQS EVK variants. Configure the
vmmc/vqmmc regulators and gpio-based card detection for each board
variant.
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 8 ++++++++
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 8 ++++++++
arch/arm64/boot/dts/qcom/shikra-evk.dtsi | 13 +++++++++++++
arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 8 ++++++++
4 files changed, 37 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
index 286ea46d0c36..2d81b39cc9c1 100644
--- a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
@@ -15,6 +15,7 @@ / {
aliases {
mmc0 = &sdhc_1;
+ mmc1 = &sdhc_2; /* SDC2 SD card slot */
serial0 = &uart0;
};
@@ -66,6 +67,13 @@ &sdhc_1 {
status = "okay";
};
+&sdhc_2 {
+ vmmc-supply = <&pm4125_l21>;
+ vqmmc-supply = <&pm4125_l4>;
+
+ status = "okay";
+};
+
&usb_1 {
dr_mode = "otg";
};
diff --git a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
index 01400612d147..570e77e6d1cc 100644
--- a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
@@ -15,6 +15,7 @@ / {
aliases {
mmc0 = &sdhc_1;
+ mmc1 = &sdhc_2; /* SDC2 SD card slot */
serial0 = &uart0;
};
@@ -66,6 +67,13 @@ &sdhc_1 {
status = "okay";
};
+&sdhc_2 {
+ vmmc-supply = <&pm4125_l21>;
+ vqmmc-supply = <&pm4125_l4>;
+
+ status = "okay";
+};
+
&usb_1 {
dr_mode = "otg";
};
diff --git a/arch/arm64/boot/dts/qcom/shikra-evk.dtsi b/arch/arm64/boot/dts/qcom/shikra-evk.dtsi
index 7cdbd257e9c9..620c9956d5e6 100644
--- a/arch/arm64/boot/dts/qcom/shikra-evk.dtsi
+++ b/arch/arm64/boot/dts/qcom/shikra-evk.dtsi
@@ -3,6 +3,8 @@
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
*/
+#include <dt-bindings/gpio/gpio.h>
+
&gpu {
status = "okay";
};
@@ -17,6 +19,17 @@ &qupv3_0 {
status = "okay";
};
+&sdhc_2 {
+ pinctrl-0 = <&sdc2_default &sdc2_card_det_n>;
+ pinctrl-1 = <&sdc2_sleep &sdc2_card_det_n>;
+ pinctrl-names = "default", "sleep";
+
+ no-sdio;
+ no-mmc;
+
+ cd-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>;
+};
+
&uart0 {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
index 543d769125ef..a1757e24d1cd 100644
--- a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
@@ -15,6 +15,7 @@ / {
aliases {
mmc0 = &sdhc_1;
+ mmc1 = &sdhc_2; /* SDC2 SD card slot */
serial0 = &uart0;
};
@@ -58,6 +59,13 @@ &sdhc_1 {
status = "okay";
};
+&sdhc_2 {
+ vmmc-supply = <&pm8150_l10>;
+ vqmmc-supply = <&pm8150_l2>;
+
+ status = "okay";
+};
+
&usb_1_hsphy {
vdd-supply = <&pm8150_l4>;
vdda-pll-supply = <&pm8150_l12>;
--
2.34.1
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 3/3] arm64: dts: qcom: Enable SD card for Shikra EVK
2026-09-11 9:39 ` [PATCH 3/3] arm64: dts: qcom: Enable SD card for Shikra EVK Monish Chunara
@ 2026-09-11 13:35 ` Abel Vesa
2026-09-13 15:20 ` Komal Bajaj
1 sibling, 0 replies; 8+ messages in thread
From: Abel Vesa @ 2026-09-11 13:35 UTC (permalink / raw)
To: Monish Chunara
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Vinod Koul, Neil Armstrong, Wesley Cheng,
Ulf Hansson, Kernel Team, linux-arm-msm, devicetree,
linux-kernel, linux-phy, linux-mmc, Nitin Rawat,
Pradeep Pragallapati, Komal Bajaj, Konrad Dybcio
On 26-09-11 15:09:32, Monish Chunara wrote:
> Enable SD card for Shikra CQS, CQM and IQS EVK variants. Configure the
> vmmc/vqmmc regulators and gpio-based card detection for each board
> variant.
>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: Enable SD card for Shikra EVK
2026-09-11 9:39 ` [PATCH 3/3] arm64: dts: qcom: Enable SD card for Shikra EVK Monish Chunara
2026-09-11 13:35 ` Abel Vesa
@ 2026-09-13 15:20 ` Komal Bajaj
1 sibling, 0 replies; 8+ messages in thread
From: Komal Bajaj @ 2026-09-13 15:20 UTC (permalink / raw)
To: Monish Chunara, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Vinod Koul, Neil Armstrong,
Wesley Cheng, Ulf Hansson, Kernel Team
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, linux-mmc,
Nitin Rawat, Pradeep Pragallapati, Konrad Dybcio
On 9/11/2026 3:09 PM, Monish Chunara wrote:
> Enable SD card for Shikra CQS, CQM and IQS EVK variants. Configure the
> vmmc/vqmmc regulators and gpio-based card detection for each board
> variant.
>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
Reviewed-by: Komal Bajaj <komal.bajaj@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] arm64: dts: qcom: Shikra SD Card support
2026-09-11 9:39 [PATCH] arm64: dts: qcom: Shikra SD Card support Monish Chunara
2026-09-11 9:39 ` [PATCH 2/3] arm64: dts: qcom: Add SD Card support for Shikra SoC Monish Chunara
2026-09-11 9:39 ` [PATCH 3/3] arm64: dts: qcom: Enable SD card for Shikra EVK Monish Chunara
@ 2026-09-25 20:27 ` Bjorn Andersson
2 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2026-09-25 20:27 UTC (permalink / raw)
To: Monish Chunara
Cc: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Vinod Koul, Neil Armstrong, Wesley Cheng, Ulf Hansson,
Kernel Team, linux-arm-msm, devicetree, linux-kernel, linux-phy,
linux-mmc, Nitin Rawat, Pradeep Pragallapati, Komal Bajaj
On Fri, Sep 11, 2026 at 03:09:30PM +0530, Monish Chunara wrote:
> This is v5 of the Shikra SD Card support series.
>
> This series adds SD card support for the Shikra platform.
>
> The first patch adds the SDHC2 controller node and the necessary pinctrl
> configurations to the base Shikra SoC dtsi. The second patch enables
> this support on the Shikra EVK (CQS, CQM, and IQS variants) by defining
> the regulator supplies and the card detection GPIO.
>
> Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
I don't understand how you managed to send patch 1 alone and then 2 and
3 in a series...
Please stop doing your own thing and adopt b4!
I'll put these 3 patches in the recyle bin for now, please rebase,
retest and resubmit.
Regards,
Bjorn
>
> Changes in v5:
> - Rebased on top of latest linux-next
> - Fix interrupts-cells to 4 for sdhc_2 (sashiko-bot)
> - Moved gpio include directive into shikra-evk.dtsi (sashiko-bot)
> - Link to v4: https://lore.kernel.org/all/20260804122054.3462145-1-monish.chunara@oss.qualcomm.com/
>
> Changes in v4:
> - Rebase on latest code base
> - Collect Reviewed-by tags (Konrad)
> - Drop the dependency link - since all base changes are merged
> - Link to v3: https://lore.kernel.org/all/20260702073354.3641966-1-monish.chunara@oss.qualcomm.com/
>
> Changes in v3:
> - Padded the address part of the reg property in the sdhc_2 node to
> 8 hex digits with leading zeroes for consistency with other nodes
> in the file
> - Moved the common sdhc_2 properties to shikra-evk DT file
> - Link to v2: https://lore.kernel.org/all/20260630165700.1886608-1-monish.chunara@oss.qualcomm.com
>
> Changes in v2:
> - Rectify the alignment for clocks and interconnect properties for SD
> card
> - Link to v1: https://lore.kernel.org/all/20260604122045.494712-1-monish.chunara@oss.qualcomm.com
>
> Testing:
> - Validated on Shikra EVK variants.
>
> Monish Chunara (2):
> arm64: dts: qcom: Add SD Card support for Shikra SoC
> arm64: dts: qcom: Enable SD card for Shikra EVK
>
> arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 9 ++
> arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 9 ++
> arch/arm64/boot/dts/qcom/shikra-evk.dtsi | 11 +++
> arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 9 ++
> arch/arm64/boot/dts/qcom/shikra.dtsi | 97 +++++++++++++++++++++
> 5 files changed, 135 insertions(+)
>
> --
> 2.34.1
>
> --- b4-submit-tracking ---
> {
> "series": {
> "revision": 5,
> "change-id": "20260911-shikra-sd-card-61d428639de0",
> "prefixes": [],
> "from-thread": "20260804122054.3462145-1-monish.chunara@oss.qualcomm.com"
> }
> }
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 8+ messages in thread