* [PATCH V2 0/2] arm64: dts: qcom: Shikra SD Card support @ 2026-06-30 16:56 Monish Chunara 2026-06-30 16:56 ` [PATCH V2 1/2] arm64: dts: qcom: Add SD Card support for Shikra SoC Monish Chunara 2026-06-30 16:57 ` [PATCH V2 2/2] arm64: dts: qcom: Enable SD card for Shikra EVK Monish Chunara 0 siblings, 2 replies; 7+ messages in thread From: Monish Chunara @ 2026-06-30 16:56 UTC (permalink / raw) To: 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, Monish Chunara, Konrad Dybcio This is v2 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> 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. This series depends on: - https://lore.kernel.org/all/20260612-shikra-dt-v6-2-6b6cb58db477@oss.qualcomm.com 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 | 18 ++++ arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 18 ++++ arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 18 ++++ arch/arm64/boot/dts/qcom/shikra.dtsi | 97 +++++++++++++++++++++ 4 files changed, 151 insertions(+) -- 2.34.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH V2 1/2] arm64: dts: qcom: Add SD Card support for Shikra SoC 2026-06-30 16:56 [PATCH V2 0/2] arm64: dts: qcom: Shikra SD Card support Monish Chunara @ 2026-06-30 16:56 ` Monish Chunara 2026-07-01 11:37 ` Konrad Dybcio 2026-06-30 16:57 ` [PATCH V2 2/2] arm64: dts: qcom: Enable SD card for Shikra EVK Monish Chunara 1 sibling, 1 reply; 7+ messages in thread From: Monish Chunara @ 2026-06-30 16:56 UTC (permalink / raw) To: 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, Monish Chunara, Konrad Dybcio Add support for SD card on Shikra SoC and enable the required pinctrl configurations. 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 e67fe047a683..cfdee8a2526e 100644 --- a/arch/arm64/boot/dts/qcom/shikra.dtsi +++ b/arch/arm64/boot/dts/qcom/shikra.dtsi @@ -829,6 +829,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 { @@ -1081,6 +1128,56 @@ opp-384000000 { }; }; + sdhc_2: mmc@4784000 { + compatible = "qcom,shikra-sdhci", "qcom,sdhci-msm-v5"; + reg = <0x0 0x4784000 0x0 0x1000>; + + interrupts = <GIC_SPI 350 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 353 IRQ_TYPE_LEVEL_HIGH>; + 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] 7+ messages in thread
* Re: [PATCH V2 1/2] arm64: dts: qcom: Add SD Card support for Shikra SoC 2026-06-30 16:56 ` [PATCH V2 1/2] arm64: dts: qcom: Add SD Card support for Shikra SoC Monish Chunara @ 2026-07-01 11:37 ` Konrad Dybcio 2026-07-02 6:52 ` Monish Chunara 0 siblings, 1 reply; 7+ messages in thread From: Konrad Dybcio @ 2026-07-01 11:37 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 On 6/30/26 6:56 PM, Monish Chunara wrote: > Add support for SD card on Shikra SoC and enable the required pinctrl > configurations. > > Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com> > --- [...] > + sdhc_2: mmc@4784000 { > + compatible = "qcom,shikra-sdhci", "qcom,sdhci-msm-v5"; > + reg = <0x0 0x4784000 0x0 0x1000>; Please pad the address part of reg to 8 hex digits with leading zeroes, like all the other nodes otherwise Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Konrad ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH V2 1/2] arm64: dts: qcom: Add SD Card support for Shikra SoC 2026-07-01 11:37 ` Konrad Dybcio @ 2026-07-02 6:52 ` Monish Chunara 0 siblings, 0 replies; 7+ messages in thread From: Monish Chunara @ 2026-07-02 6:52 UTC (permalink / raw) To: Konrad Dybcio, 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 On 7/1/2026 5:07 PM, Konrad Dybcio wrote: > On 6/30/26 6:56 PM, Monish Chunara wrote: >> Add support for SD card on Shikra SoC and enable the required pinctrl >> configurations. >> >> Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com> >> --- > > [...] > >> + sdhc_2: mmc@4784000 { >> + compatible = "qcom,shikra-sdhci", "qcom,sdhci-msm-v5"; >> + reg = <0x0 0x4784000 0x0 0x1000>; > > Please pad the address part of reg to 8 hex digits with leading > zeroes, like all the other nodes > > otherwise > > Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> > > Konrad > ACK, Thanks. Will rectify in v3. Regards, Monish ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH V2 2/2] arm64: dts: qcom: Enable SD card for Shikra EVK 2026-06-30 16:56 [PATCH V2 0/2] arm64: dts: qcom: Shikra SD Card support Monish Chunara 2026-06-30 16:56 ` [PATCH V2 1/2] arm64: dts: qcom: Add SD Card support for Shikra SoC Monish Chunara @ 2026-06-30 16:57 ` Monish Chunara 2026-07-01 11:38 ` Konrad Dybcio 1 sibling, 1 reply; 7+ messages in thread From: Monish Chunara @ 2026-06-30 16:57 UTC (permalink / raw) To: 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, Monish Chunara, 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. Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com> --- arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 18 ++++++++++++++++++ arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 18 ++++++++++++++++++ arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 18 ++++++++++++++++++ 3 files changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts index 683b5245923b..8212bd41f74e 100644 --- a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +++ b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts @@ -7,6 +7,7 @@ #include "shikra-cqm-som.dtsi" #include "shikra-evk.dtsi" +#include <dt-bindings/gpio/gpio.h> / { model = "Qualcomm Technologies, Inc. Shikra CQM EVK"; @@ -15,6 +16,7 @@ / { aliases { mmc0 = &sdhc_1; + mmc1 = &sdhc_2; /* SDC2 SD card slot */ serial0 = &uart0; serial1 = &uart8; }; @@ -95,6 +97,22 @@ &sdhc_1 { status = "okay"; }; +&sdhc_2 { + vmmc-supply = <&pm4125_l21>; + vqmmc-supply = <&pm4125_l4>; + + no-sdio; + no-mmc; + + pinctrl-0 = <&sdc2_default &sdc2_card_det_n>; + pinctrl-1 = <&sdc2_sleep &sdc2_card_det_n>; + pinctrl-names = "default", "sleep"; + + cd-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; + + status = "okay"; +}; + &uart8 { status = "okay"; diff --git a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts index 26ff8007a819..5341e145977c 100644 --- a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +++ b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts @@ -7,6 +7,7 @@ #include "shikra-cqm-som.dtsi" #include "shikra-evk.dtsi" +#include <dt-bindings/gpio/gpio.h> / { model = "Qualcomm Technologies, Inc. Shikra CQS EVK"; @@ -15,6 +16,7 @@ / { aliases { mmc0 = &sdhc_1; + mmc1 = &sdhc_2; /* SDC2 SD card slot */ serial0 = &uart0; serial1 = &uart8; }; @@ -95,6 +97,22 @@ &sdhc_1 { status = "okay"; }; +&sdhc_2 { + vmmc-supply = <&pm4125_l21>; + vqmmc-supply = <&pm4125_l4>; + + no-sdio; + no-mmc; + + pinctrl-0 = <&sdc2_default &sdc2_card_det_n>; + pinctrl-1 = <&sdc2_sleep &sdc2_card_det_n>; + pinctrl-names = "default", "sleep"; + + cd-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; + + status = "okay"; +}; + &uart8 { 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 fd691d53a0fa..0548de0d3a74 100644 --- a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts +++ b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts @@ -7,6 +7,7 @@ #include "shikra-iqs-som.dtsi" #include "shikra-evk.dtsi" +#include <dt-bindings/gpio/gpio.h> / { model = "Qualcomm Technologies, Inc. Shikra IQS EVK"; @@ -15,6 +16,7 @@ / { aliases { mmc0 = &sdhc_1; + mmc1 = &sdhc_2; /* SDC2 SD card slot */ serial0 = &uart0; serial1 = &uart8; }; @@ -103,6 +105,22 @@ &sdhc_1 { status = "okay"; }; +&sdhc_2 { + vmmc-supply = <&pm8150_l10>; + vqmmc-supply = <&pm8150_l2>; + + no-sdio; + no-mmc; + + pinctrl-0 = <&sdc2_default &sdc2_card_det_n>; + pinctrl-1 = <&sdc2_sleep &sdc2_card_det_n>; + pinctrl-names = "default", "sleep"; + + cd-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; + + status = "okay"; +}; + &uart8 { status = "okay"; -- 2.34.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH V2 2/2] arm64: dts: qcom: Enable SD card for Shikra EVK 2026-06-30 16:57 ` [PATCH V2 2/2] arm64: dts: qcom: Enable SD card for Shikra EVK Monish Chunara @ 2026-07-01 11:38 ` Konrad Dybcio 2026-07-02 6:54 ` Monish Chunara 0 siblings, 1 reply; 7+ messages in thread From: Konrad Dybcio @ 2026-07-01 11:38 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 On 6/30/26 6:57 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. > > Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com> > --- > arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 18 ++++++++++++++++++ > arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 18 ++++++++++++++++++ > arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 18 ++++++++++++++++++ Move the commonalities to evk.dtsi and only override regulator in the board files, please Konrad ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH V2 2/2] arm64: dts: qcom: Enable SD card for Shikra EVK 2026-07-01 11:38 ` Konrad Dybcio @ 2026-07-02 6:54 ` Monish Chunara 0 siblings, 0 replies; 7+ messages in thread From: Monish Chunara @ 2026-07-02 6:54 UTC (permalink / raw) To: Konrad Dybcio, 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 On 7/1/2026 5:08 PM, Konrad Dybcio wrote: > On 6/30/26 6:57 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. >> >> Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com> >> --- >> arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 18 ++++++++++++++++++ >> arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 18 ++++++++++++++++++ >> arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 18 ++++++++++++++++++ > > Move the commonalities to evk.dtsi and only override regulator > in the board files, please > > Konrad ACK, will re-arrange. Thanks, Monish ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-07-02 6:54 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2026-06-30 16:56 [PATCH V2 0/2] arm64: dts: qcom: Shikra SD Card support Monish Chunara 2026-06-30 16:56 ` [PATCH V2 1/2] arm64: dts: qcom: Add SD Card support for Shikra SoC Monish Chunara 2026-07-01 11:37 ` Konrad Dybcio 2026-07-02 6:52 ` Monish Chunara 2026-06-30 16:57 ` [PATCH V2 2/2] arm64: dts: qcom: Enable SD card for Shikra EVK Monish Chunara 2026-07-01 11:38 ` Konrad Dybcio 2026-07-02 6:54 ` Monish Chunara
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®