* [PATCH 1/4] arm64: dts: qcom: glymur-crd: Update VREG l2b_e0 and l9b_e0 voltage for SD-card
2026-06-10 11:15 [PATCH 0/4] arm64: dts: qcom: Add SD card support for Glymur Monish Chunara
@ 2026-06-10 11:15 ` Monish Chunara
2026-06-11 8:58 ` Konrad Dybcio
2026-06-10 11:15 ` [PATCH 2/4] dt-bindings: mmc: sdhci-msm: Document the Glymur compatible Monish Chunara
` (2 subsequent siblings)
3 siblings, 1 reply; 14+ messages in thread
From: Monish Chunara @ 2026-06-10 11:15 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Nitin Rawat, Pradeep Pragallapati, Komal Bajaj, Sachin,
Monish Chunara, linux-arm-msm, devicetree, linux-kernel,
Kamal Wadhwa
From: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>
SD cards may need 1.8v VDDIO also to be supported, to accommodate this
requirement reduce the min voltage to 1.8v for `vreg_l2b_e0` which
supplies to VDDIO pin of SD card.
NOTE - Since this SD card is the only client on this regulator, this
change should not have any side effect on any other clients.
moreover, SD card driver takes care to explicitly vote for the
regulator voltage based on the SD card detection sequence.
Also for stable operation of the SD card increase VDD voltage
supplied by `vreg_l9b_e0` to 2.96v.
Signed-off-by: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>
Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/glymur-crd.dtsi | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
index e784b538f42e..af6f42cdd39a 100644
--- a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
+++ b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
@@ -228,7 +228,7 @@ vreg_l1b_e0_1p8: ldo1 {
vreg_l2b_e0_2p9: ldo2 {
regulator-name = "vreg_l2b_e0_2p9";
- regulator-min-microvolt = <2904000>;
+ regulator-min-microvolt = <1804000>;
regulator-max-microvolt = <2904000>;
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
};
@@ -247,10 +247,10 @@ vreg_l8b_e0_1p50: ldo8 {
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
};
- vreg_l9b_e0_2p7: ldo9 {
- regulator-name = "vreg_l9b_e0_2p7";
- regulator-min-microvolt = <2704000>;
- regulator-max-microvolt = <2704000>;
+ vreg_l9b_e0_2p9: ldo9 {
+ regulator-name = "vreg_l9b_e0_2p9";
+ regulator-min-microvolt = <2960000>;
+ regulator-max-microvolt = <2960000>;
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
};
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH 1/4] arm64: dts: qcom: glymur-crd: Update VREG l2b_e0 and l9b_e0 voltage for SD-card
2026-06-10 11:15 ` [PATCH 1/4] arm64: dts: qcom: glymur-crd: Update VREG l2b_e0 and l9b_e0 voltage for SD-card Monish Chunara
@ 2026-06-11 8:58 ` Konrad Dybcio
0 siblings, 0 replies; 14+ messages in thread
From: Konrad Dybcio @ 2026-06-11 8:58 UTC (permalink / raw)
To: Monish Chunara, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Nitin Rawat, Pradeep Pragallapati, Komal Bajaj, Sachin,
linux-arm-msm, devicetree, linux-kernel, Kamal Wadhwa
On 6/10/26 1:15 PM, Monish Chunara wrote:
> From: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>
>
> SD cards may need 1.8v VDDIO also to be supported, to accommodate this
> requirement reduce the min voltage to 1.8v for `vreg_l2b_e0` which
> supplies to VDDIO pin of SD card.
>
> NOTE - Since this SD card is the only client on this regulator, this
> change should not have any side effect on any other clients.
> moreover, SD card driver takes care to explicitly vote for the
> regulator voltage based on the SD card detection sequence.
>
> Also for stable operation of the SD card increase VDD voltage
> supplied by `vreg_l9b_e0` to 2.96v.
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 2/4] dt-bindings: mmc: sdhci-msm: Document the Glymur compatible
2026-06-10 11:15 [PATCH 0/4] arm64: dts: qcom: Add SD card support for Glymur Monish Chunara
2026-06-10 11:15 ` [PATCH 1/4] arm64: dts: qcom: glymur-crd: Update VREG l2b_e0 and l9b_e0 voltage for SD-card Monish Chunara
@ 2026-06-10 11:15 ` Monish Chunara
2026-06-10 11:17 ` Krzysztof Kozlowski
2026-06-10 11:15 ` [PATCH 3/4] arm64: dts: qcom: Add SD Card support for Glymur SoC Monish Chunara
2026-06-10 11:15 ` [PATCH 4/4] arm64: dts: qcom: Enable SD card for Glymur CRD Monish Chunara
3 siblings, 1 reply; 14+ messages in thread
From: Monish Chunara @ 2026-06-10 11:15 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Nitin Rawat, Pradeep Pragallapati, Komal Bajaj, Sachin,
Monish Chunara, linux-arm-msm, devicetree, linux-kernel
From: Monish Chunara <monish.chunara@oss.qualcomm.com>
Document the Glymur-specific SDHCI compatible in the sdhci-msm binding.
Use "qcom,sdhci-msm-v5" as the fallback compatible for the MSM SDHCI v5
controller used on Glymur.
Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
---
Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml b/Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml
index bd558a11b792..6a8ef84617a9 100644
--- a/Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml
+++ b/Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml
@@ -38,6 +38,7 @@ properties:
- items:
- enum:
- qcom,eliza-sdhci
+ - qcom,glymur-sdhci
- qcom,hawi-sdhci
- qcom,ipq5018-sdhci
- qcom,ipq5210-sdhci
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH 2/4] dt-bindings: mmc: sdhci-msm: Document the Glymur compatible
2026-06-10 11:15 ` [PATCH 2/4] dt-bindings: mmc: sdhci-msm: Document the Glymur compatible Monish Chunara
@ 2026-06-10 11:17 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2026-06-10 11:17 UTC (permalink / raw)
To: Monish Chunara, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Nitin Rawat, Pradeep Pragallapati, Komal Bajaj, Sachin,
linux-arm-msm, devicetree, linux-kernel
On 10/06/2026 13:15, Monish Chunara wrote:
> From: Monish Chunara <monish.chunara@oss.qualcomm.com>
>
> Document the Glymur-specific SDHCI compatible in the sdhci-msm binding.
> Use "qcom,sdhci-msm-v5" as the fallback compatible for the MSM SDHCI v5
> controller used on Glymur.
Same questions as always... why? Don't explain what you did. Explain why
you did that way.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 3/4] arm64: dts: qcom: Add SD Card support for Glymur SoC
2026-06-10 11:15 [PATCH 0/4] arm64: dts: qcom: Add SD card support for Glymur Monish Chunara
2026-06-10 11:15 ` [PATCH 1/4] arm64: dts: qcom: glymur-crd: Update VREG l2b_e0 and l9b_e0 voltage for SD-card Monish Chunara
2026-06-10 11:15 ` [PATCH 2/4] dt-bindings: mmc: sdhci-msm: Document the Glymur compatible Monish Chunara
@ 2026-06-10 11:15 ` Monish Chunara
2026-06-10 11:26 ` sashiko-bot
2026-06-11 9:04 ` Konrad Dybcio
2026-06-10 11:15 ` [PATCH 4/4] arm64: dts: qcom: Enable SD card for Glymur CRD Monish Chunara
3 siblings, 2 replies; 14+ messages in thread
From: Monish Chunara @ 2026-06-10 11:15 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Nitin Rawat, Pradeep Pragallapati, Komal Bajaj, Sachin,
Monish Chunara, linux-arm-msm, devicetree, linux-kernel
From: Monish Chunara <monish.chunara@oss.qualcomm.com>
Add support for SD card on Glymur SoC and enable the required pinctrl
configurations.
Co-developed-by: Sachin <ssachin@qti.qualcomm.com>
Signed-off-by: Sachin <ssachin@qti.qualcomm.com>
Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/glymur.dtsi | 91 ++++++++++++++++++++++++++++
1 file changed, 91 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
index 20b49af7298e..0989fe39e7ef 100644
--- a/arch/arm64/boot/dts/qcom/glymur.dtsi
+++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
@@ -3927,6 +3927,57 @@ lpass_ag_noc: interconnect@7e40000 {
#interconnect-cells = <2>;
};
+ sdhc_2: mmc@8804000 {
+ compatible = "qcom,glymur-sdhci", "qcom,sdhci-msm-v5";
+
+ reg = <0x0 0x08804000 0x0 0x1000>;
+
+ interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "hc_irq",
+ "pwr_irq";
+
+ clocks = <&gcc GCC_SDCC2_AHB_CLK>,
+ <&gcc GCC_SDCC2_APPS_CLK>,
+ <&rpmhcc RPMH_CXO_CLK>;
+ clock-names = "iface",
+ "core",
+ "xo";
+
+ iommus = <&apps_smmu 0xd00 0>;
+ qcom,dll-config = <0x0007442c>;
+ qcom,ddr-config = <0x80040868>;
+
+ power-domains = <&rpmhpd RPMHPD_CX>;
+ operating-points-v2 = <&sdhc2_opp_table>;
+
+ interconnects = <&aggre3_noc MASTER_SDCC_2 QCOM_ICC_TAG_ALWAYS
+ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
+ <&hsc_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+ &config_noc SLAVE_SDCC_2 QCOM_ICC_TAG_ACTIVE_ONLY>;
+ interconnect-names = "sdhc-ddr",
+ "cpu-sdhc";
+
+ bus-width = <4>;
+ dma-coherent;
+
+ status = "disabled";
+
+ sdhc2_opp_table: opp-table {
+ compatible = "operating-points-v2";
+
+ opp-100000000 {
+ opp-hz = /bits/ 64 <100000000>;
+ required-opps = <&rpmhpd_opp_low_svs>;
+ };
+
+ opp-202000000 {
+ opp-hz = /bits/ 64 <202000000>;
+ required-opps = <&rpmhpd_opp_svs_l1>;
+ };
+ };
+ };
+
usb_2_hsphy: phy@88e0000 {
compatible = "qcom,glymur-m31-eusb2-phy",
"qcom,sm8750-m31-eusb2-phy";
@@ -5714,6 +5765,46 @@ rx-pins {
bias-disable;
};
};
+
+ sdc2_default_state: sdc2-default-state {
+ clk-pins {
+ pins = "sdc2_clk";
+ drive-strength = <16>;
+ bias-disable;
+ };
+
+ cmd-pins {
+ pins = "sdc2_cmd";
+ drive-strength = <10>;
+ bias-pull-up;
+ };
+
+ data-pins {
+ pins = "sdc2_data";
+ drive-strength = <10>;
+ bias-pull-up;
+ };
+ };
+
+ sdc2_sleep_state: 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;
+ };
+ };
};
stm: stm@10002000 {
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH 3/4] arm64: dts: qcom: Add SD Card support for Glymur SoC
2026-06-10 11:15 ` [PATCH 3/4] arm64: dts: qcom: Add SD Card support for Glymur SoC Monish Chunara
@ 2026-06-10 11:26 ` sashiko-bot
2026-07-02 9:46 ` Monish Chunara
2026-06-11 9:04 ` Konrad Dybcio
1 sibling, 1 reply; 14+ messages in thread
From: sashiko-bot @ 2026-06-10 11:26 UTC (permalink / raw)
To: Monish Chunara; +Cc: conor+dt, devicetree, robh
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Missing `resets` hardware reset property for the `sdhc_2` node
--
commit 3328d962d23c195e0ded6a5fa736fc357bc968ef
Author: Monish Chunara <monish.chunara@oss.qualcomm.com>
arm64: dts: qcom: Add SD Card support for Glymur SoC
This commit adds support for the SD card on the Glymur SoC and enables
the required pinctrl configurations.
> diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
> index 20b49af7298e9..0989fe39e7ef7 100644
> --- a/arch/arm64/boot/dts/qcom/glymur.dtsi
> +++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
[ ... ]
> @@ -3927,6 +3927,57 @@ lpass_ag_noc: interconnect@7e40000 {
> #interconnect-cells = <2>;
> };
>
> + sdhc_2: mmc@8804000 {
> + compatible = "qcom,glymur-sdhci", "qcom,sdhci-msm-v5";
> +
[Severity: Medium]
Should this node include the resets = <&gcc GCC_SDCC2_BCR>; property?
The SDHCI-MSM driver typically uses the core_reset (fetched via the resets
device tree property) to explicitly reset the SDHC hardware block during probe,
ensuring it is in a clean and known state.
Although the driver requests the reset as optional, omitting it means the
kernel cannot reset the controller. Could this lead to unpredictable controller
behavior or probe failures if the bootloader leaves the block in an
inconsistent state?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260610111508.3941207-1-mchunara@oss.qualcomm.com?part=3
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH 3/4] arm64: dts: qcom: Add SD Card support for Glymur SoC
2026-06-10 11:26 ` sashiko-bot
@ 2026-07-02 9:46 ` Monish Chunara
0 siblings, 0 replies; 14+ messages in thread
From: Monish Chunara @ 2026-07-02 9:46 UTC (permalink / raw)
To: sashiko-reviews; +Cc: conor+dt, devicetree, robh
On 6/10/2026 4:56 PM, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] Missing `resets` hardware reset property for the `sdhc_2` node
> --
>
> commit 3328d962d23c195e0ded6a5fa736fc357bc968ef
> Author: Monish Chunara <monish.chunara@oss.qualcomm.com>
>
> arm64: dts: qcom: Add SD Card support for Glymur SoC
>
> This commit adds support for the SD card on the Glymur SoC and enables
> the required pinctrl configurations.
>
>> diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
>> index 20b49af7298e9..0989fe39e7ef7 100644
>> --- a/arch/arm64/boot/dts/qcom/glymur.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
> [ ... ]
>> @@ -3927,6 +3927,57 @@ lpass_ag_noc: interconnect@7e40000 {
>> #interconnect-cells = <2>;
>> };
>>
>> + sdhc_2: mmc@8804000 {
>> + compatible = "qcom,glymur-sdhci", "qcom,sdhci-msm-v5";
>> +
>
> [Severity: Medium]
> Should this node include the resets = <&gcc GCC_SDCC2_BCR>; property?
>
> The SDHCI-MSM driver typically uses the core_reset (fetched via the resets
> device tree property) to explicitly reset the SDHC hardware block during probe,
> ensuring it is in a clean and known state.
>
> Although the driver requests the reset as optional, omitting it means the
> kernel cannot reset the controller. Could this lead to unpredictable controller
> behavior or probe failures if the bootloader leaves the block in an
> inconsistent state?
>
Updated in v2 : https://lore.kernel.org/all/20260702094056.3755467-1-mchunara@oss.qualcomm.com/
Thanks and Regards,
Monish
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/4] arm64: dts: qcom: Add SD Card support for Glymur SoC
2026-06-10 11:15 ` [PATCH 3/4] arm64: dts: qcom: Add SD Card support for Glymur SoC Monish Chunara
2026-06-10 11:26 ` sashiko-bot
@ 2026-06-11 9:04 ` Konrad Dybcio
2026-06-12 6:06 ` Dmitry Baryshkov
2026-07-02 9:54 ` Monish Chunara
1 sibling, 2 replies; 14+ messages in thread
From: Konrad Dybcio @ 2026-06-11 9:04 UTC (permalink / raw)
To: Monish Chunara, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Nitin Rawat, Pradeep Pragallapati, Komal Bajaj, Sachin,
linux-arm-msm, devicetree, linux-kernel
On 6/10/26 1:15 PM, Monish Chunara wrote:
> From: Monish Chunara <monish.chunara@oss.qualcomm.com>
>
> Add support for SD card on Glymur SoC and enable the required pinctrl
> configurations.
>
> Co-developed-by: Sachin <ssachin@qti.qualcomm.com>
> Signed-off-by: Sachin <ssachin@qti.qualcomm.com>
Firstname Lastname?
> Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
> ---
> arch/arm64/boot/dts/qcom/glymur.dtsi | 91 ++++++++++++++++++++++++++++
> 1 file changed, 91 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
> index 20b49af7298e..0989fe39e7ef 100644
> --- a/arch/arm64/boot/dts/qcom/glymur.dtsi
> +++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
> @@ -3927,6 +3927,57 @@ lpass_ag_noc: interconnect@7e40000 {
> #interconnect-cells = <2>;
> };
>
> + sdhc_2: mmc@8804000 {
> + compatible = "qcom,glymur-sdhci", "qcom,sdhci-msm-v5";
> +
> + reg = <0x0 0x08804000 0x0 0x1000>;
nit: Let's drop the \n above
> +
> + interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "hc_irq",
> + "pwr_irq";
> +
> + clocks = <&gcc GCC_SDCC2_AHB_CLK>,
> + <&gcc GCC_SDCC2_APPS_CLK>,
> + <&rpmhcc RPMH_CXO_CLK>;
> + clock-names = "iface",
> + "core",
> + "xo";
> +
> + iommus = <&apps_smmu 0xd00 0>;
'0x0' for the second value as it's a mask, please
> + qcom,dll-config = <0x0007442c>;
> + qcom,ddr-config = <0x80040868>;
> +
> + power-domains = <&rpmhpd RPMHPD_CX>;
> + operating-points-v2 = <&sdhc2_opp_table>;
> +
> + interconnects = <&aggre3_noc MASTER_SDCC_2 QCOM_ICC_TAG_ALWAYS
> + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
> + <&hsc_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
> + &config_noc SLAVE_SDCC_2 QCOM_ICC_TAG_ACTIVE_ONLY>;
> + interconnect-names = "sdhc-ddr",
> + "cpu-sdhc";
> +
> + bus-width = <4>;
> + dma-coherent;
> +
> + status = "disabled";
> +
> + sdhc2_opp_table: opp-table {
> + compatible = "operating-points-v2";
> +
> + opp-100000000 {
> + opp-hz = /bits/ 64 <100000000>;
> + required-opps = <&rpmhpd_opp_low_svs>;
> + };
The SDC doc says this should be 50 MHz> +
> + opp-202000000 {
> + opp-hz = /bits/ 64 <202000000>;
> + required-opps = <&rpmhpd_opp_svs_l1>;
And that this should be opp_nom
But the clock plan doc has info that corresponds with the content of
your patch, please check which one is correct and file a request for
fixing the wrong one
Konrad
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH 3/4] arm64: dts: qcom: Add SD Card support for Glymur SoC
2026-06-11 9:04 ` Konrad Dybcio
@ 2026-06-12 6:06 ` Dmitry Baryshkov
2026-07-02 9:54 ` Monish Chunara
1 sibling, 0 replies; 14+ messages in thread
From: Dmitry Baryshkov @ 2026-06-12 6:06 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Monish Chunara, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Nitin Rawat,
Pradeep Pragallapati, Komal Bajaj, Sachin, linux-arm-msm,
devicetree, linux-kernel
On Thu, Jun 11, 2026 at 11:04:29AM +0200, Konrad Dybcio wrote:
> On 6/10/26 1:15 PM, Monish Chunara wrote:
> > From: Monish Chunara <monish.chunara@oss.qualcomm.com>
> >
> > Add support for SD card on Glymur SoC and enable the required pinctrl
> > configurations.
> >
> > Co-developed-by: Sachin <ssachin@qti.qualcomm.com>
> > Signed-off-by: Sachin <ssachin@qti.qualcomm.com>
>
> Firstname Lastname?
It seems to be the full name.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/4] arm64: dts: qcom: Add SD Card support for Glymur SoC
2026-06-11 9:04 ` Konrad Dybcio
2026-06-12 6:06 ` Dmitry Baryshkov
@ 2026-07-02 9:54 ` Monish Chunara
1 sibling, 0 replies; 14+ messages in thread
From: Monish Chunara @ 2026-07-02 9:54 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Nitin Rawat, Pradeep Pragallapati, Komal Bajaj, Sachin,
linux-arm-msm, devicetree, linux-kernel
On 6/11/2026 2:34 PM, Konrad Dybcio wrote:
> On 6/10/26 1:15 PM, Monish Chunara wrote:
>> From: Monish Chunara <monish.chunara@oss.qualcomm.com>
>>
>> Add support for SD card on Glymur SoC and enable the required pinctrl
>> configurations.
>>
>> Co-developed-by: Sachin <ssachin@qti.qualcomm.com>
>> Signed-off-by: Sachin <ssachin@qti.qualcomm.com>
>
> Firstname Lastname?
The mentioned name was the preferred full name of the co-developer.
>
>> Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
>> ---
>> arch/arm64/boot/dts/qcom/glymur.dtsi | 91 ++++++++++++++++++++++++++++
>> 1 file changed, 91 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
>> index 20b49af7298e..0989fe39e7ef 100644
>> --- a/arch/arm64/boot/dts/qcom/glymur.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
>> @@ -3927,6 +3927,57 @@ lpass_ag_noc: interconnect@7e40000 {
>> #interconnect-cells = <2>;
>> };
>>
>> + sdhc_2: mmc@8804000 {
>> + compatible = "qcom,glymur-sdhci", "qcom,sdhci-msm-v5";
>> +
>> + reg = <0x0 0x08804000 0x0 0x1000>;
>
> nit: Let's drop the \n above
ACK, corrected in v2: https://lore.kernel.org/all/20260702094056.3755467-1-mchunara@oss.qualcomm.com/
>> +
>> + interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>,
>> + <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
>> + interrupt-names = "hc_irq",
>> + "pwr_irq";
>> +
>> + clocks = <&gcc GCC_SDCC2_AHB_CLK>,
>> + <&gcc GCC_SDCC2_APPS_CLK>,
>> + <&rpmhcc RPMH_CXO_CLK>;
>> + clock-names = "iface",
>> + "core",
>> + "xo";
>> +
>> + iommus = <&apps_smmu 0xd00 0>;
>
> '0x0' for the second value as it's a mask, please
>
ACK, corrected in v2.
>> + qcom,dll-config = <0x0007442c>;
>> + qcom,ddr-config = <0x80040868>;
>> +
>> + power-domains = <&rpmhpd RPMHPD_CX>;
>> + operating-points-v2 = <&sdhc2_opp_table>;
>> +
>> + interconnects = <&aggre3_noc MASTER_SDCC_2 QCOM_ICC_TAG_ALWAYS
>> + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
>> + <&hsc_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
>> + &config_noc SLAVE_SDCC_2 QCOM_ICC_TAG_ACTIVE_ONLY>;
>> + interconnect-names = "sdhc-ddr",
>> + "cpu-sdhc";
>> +
>> + bus-width = <4>;
>> + dma-coherent;
>> +
>> + status = "disabled";
>> +
>> + sdhc2_opp_table: opp-table {
>> + compatible = "operating-points-v2";
>> +
>> + opp-100000000 {
>> + opp-hz = /bits/ 64 <100000000>;
>> + required-opps = <&rpmhpd_opp_low_svs>;
>> + };
>
> The SDC doc says this should be 50 MHz> +
Frequencies below 100 MHz would be taken care off by the 100 MHz opp
entry.
>> + opp-202000000 {
>> + opp-hz = /bits/ 64 <202000000>;
>> + required-opps = <&rpmhpd_opp_svs_l1>;
>
> And that this should be opp_nom
>
> But the clock plan doc has info that corresponds with the content of
> your patch, please check which one is correct and file a request for
> fixing the wrong one
>
> Konrad
This has been checked from the clocks plan PoV and referenced based on
similar architecture targets. Updated the corners in the v2 series.
Thanks and Regards,
Monish
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 4/4] arm64: dts: qcom: Enable SD card for Glymur CRD
2026-06-10 11:15 [PATCH 0/4] arm64: dts: qcom: Add SD card support for Glymur Monish Chunara
` (2 preceding siblings ...)
2026-06-10 11:15 ` [PATCH 3/4] arm64: dts: qcom: Add SD Card support for Glymur SoC Monish Chunara
@ 2026-06-10 11:15 ` Monish Chunara
2026-06-12 6:07 ` Dmitry Baryshkov
3 siblings, 1 reply; 14+ messages in thread
From: Monish Chunara @ 2026-06-10 11:15 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Nitin Rawat, Pradeep Pragallapati, Komal Bajaj, Sachin,
Monish Chunara, linux-arm-msm, devicetree, linux-kernel
From: Monish Chunara <monish.chunara@oss.qualcomm.com>
Enable SD card for Glymur CRD platform. Configure the vmmc/vqmmc
regulators and gpio-based card detection for the platform.
Co-developed-by: Sachin <ssachin@qti.qualcomm.com>
Signed-off-by: Sachin <ssachin@qti.qualcomm.com>
Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/glymur-crd.dts | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/glymur-crd.dts b/arch/arm64/boot/dts/qcom/glymur-crd.dts
index c98dfb3941fa..f68d27429440 100644
--- a/arch/arm64/boot/dts/qcom/glymur-crd.dts
+++ b/arch/arm64/boot/dts/qcom/glymur-crd.dts
@@ -427,3 +427,28 @@ &usb_mp_qmpphy1 {
status = "okay";
};
+
+&sdhc_2 {
+ vmmc-supply = <&vreg_l9b_e0_2p9>;
+ vqmmc-supply = <&vreg_l2b_e0_2p9>;
+
+ pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>;
+ pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_n>;
+ pinctrl-names = "default", "sleep";
+
+ cd-gpios = <&tlmm 221 GPIO_ACTIVE_LOW>;
+
+ no-mmc;
+ no-sdio;
+
+ status = "okay";
+};
+
+&tlmm {
+ sdc2_card_det_n: sd-card-det-n-state {
+ pins = "gpio221";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+};
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH 4/4] arm64: dts: qcom: Enable SD card for Glymur CRD
2026-06-10 11:15 ` [PATCH 4/4] arm64: dts: qcom: Enable SD card for Glymur CRD Monish Chunara
@ 2026-06-12 6:07 ` Dmitry Baryshkov
2026-07-02 9:45 ` Monish Chunara
0 siblings, 1 reply; 14+ messages in thread
From: Dmitry Baryshkov @ 2026-06-12 6:07 UTC (permalink / raw)
To: Monish Chunara
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Nitin Rawat, Pradeep Pragallapati, Komal Bajaj,
Sachin, linux-arm-msm, devicetree, linux-kernel
On Wed, Jun 10, 2026 at 04:45:08PM +0530, Monish Chunara wrote:
> From: Monish Chunara <monish.chunara@oss.qualcomm.com>
>
> Enable SD card for Glymur CRD platform. Configure the vmmc/vqmmc
> regulators and gpio-based card detection for the platform.
>
> Co-developed-by: Sachin <ssachin@qti.qualcomm.com>
> Signed-off-by: Sachin <ssachin@qti.qualcomm.com>
> Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
> ---
> arch/arm64/boot/dts/qcom/glymur-crd.dts | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/glymur-crd.dts b/arch/arm64/boot/dts/qcom/glymur-crd.dts
> index c98dfb3941fa..f68d27429440 100644
> --- a/arch/arm64/boot/dts/qcom/glymur-crd.dts
> +++ b/arch/arm64/boot/dts/qcom/glymur-crd.dts
> @@ -427,3 +427,28 @@ &usb_mp_qmpphy1 {
>
> status = "okay";
> };
> +
> +&sdhc_2 {
The board file should be sorted by the name. So these two entries are
wrongly placed. sdhc_2 < usb_mp_qmpphy1.
> + vmmc-supply = <&vreg_l9b_e0_2p9>;
> + vqmmc-supply = <&vreg_l2b_e0_2p9>;
> +
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH 4/4] arm64: dts: qcom: Enable SD card for Glymur CRD
2026-06-12 6:07 ` Dmitry Baryshkov
@ 2026-07-02 9:45 ` Monish Chunara
0 siblings, 0 replies; 14+ messages in thread
From: Monish Chunara @ 2026-07-02 9:45 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Nitin Rawat, Pradeep Pragallapati, Komal Bajaj,
Sachin, linux-arm-msm, devicetree, linux-kernel
On 6/12/2026 11:37 AM, Dmitry Baryshkov wrote:
> On Wed, Jun 10, 2026 at 04:45:08PM +0530, Monish Chunara wrote:
>> From: Monish Chunara <monish.chunara@oss.qualcomm.com>
>>
>> Enable SD card for Glymur CRD platform. Configure the vmmc/vqmmc
>> regulators and gpio-based card detection for the platform.
>>
>> Co-developed-by: Sachin <ssachin@qti.qualcomm.com>
>> Signed-off-by: Sachin <ssachin@qti.qualcomm.com>
>> Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
>> ---
>> arch/arm64/boot/dts/qcom/glymur-crd.dts | 25 +++++++++++++++++++++++++
>> 1 file changed, 25 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/glymur-crd.dts b/arch/arm64/boot/dts/qcom/glymur-crd.dts
>> index c98dfb3941fa..f68d27429440 100644
>> --- a/arch/arm64/boot/dts/qcom/glymur-crd.dts
>> +++ b/arch/arm64/boot/dts/qcom/glymur-crd.dts
>> @@ -427,3 +427,28 @@ &usb_mp_qmpphy1 {
>>
>> status = "okay";
>> };
>> +
>> +&sdhc_2 {
>
> The board file should be sorted by the name. So these two entries are
> wrongly placed. sdhc_2 < usb_mp_qmpphy1.
>
>> + vmmc-supply = <&vreg_l9b_e0_2p9>;
>> + vqmmc-supply = <&vreg_l2b_e0_2p9>;
>> +
>
ACK.
Regards,
Monish
^ permalink raw reply [flat|nested] 14+ messages in thread