linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/3] Add eMMC support for qcs8300
@ 2025-07-02  8:59 Sayali Lokhande
  2025-07-02  8:59 ` [PATCH V3 1/3] dt-bindings: mmc: Add sdhci compatible " Sayali Lokhande
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Sayali Lokhande @ 2025-07-02  8:59 UTC (permalink / raw)
  To: andersson, konradybcio, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-mmc-owner

Add eMMC support for qcs8300 board.

- Changed from V2
 - splitted board and soc changes in separate commits
 - used lower case hex values as per suggestion
 - moved bias property under drive-strength for consistency as suggested

Sayali Lokhande (3):
  dt-bindings: mmc: Add sdhci compatible for qcs8300
  arm64: dts: qcom: Add eMMC support for qcs8300
  arm64: dts: qcom: qcs8300-ride: Enable SDHC1 node

 .../devicetree/bindings/mmc/sdhci-msm.yaml    |   1 +
 arch/arm64/boot/dts/qcom/qcs8300-ride.dts     |  21 ++++
 arch/arm64/boot/dts/qcom/qcs8300.dtsi         | 113 ++++++++++++++++++
 3 files changed, 135 insertions(+)

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH V3 1/3] dt-bindings: mmc: Add sdhci compatible for qcs8300
  2025-07-02  8:59 [PATCH V3 0/3] Add eMMC support for qcs8300 Sayali Lokhande
@ 2025-07-02  8:59 ` Sayali Lokhande
  2025-07-02 14:52   ` Rob Herring (Arm)
  2025-07-03 12:19   ` Ulf Hansson
  2025-07-02  8:59 ` [PATCH V3 2/3] arm64: dts: qcom: Add eMMC support " Sayali Lokhande
  2025-07-02  8:59 ` [PATCH V3 3/3] arm64: dts: qcom: qcs8300-ride: Enable SDHC1 node Sayali Lokhande
  2 siblings, 2 replies; 10+ messages in thread
From: Sayali Lokhande @ 2025-07-02  8:59 UTC (permalink / raw)
  To: andersson, konradybcio, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-mmc-owner

Document the sdhci compatible for Qualcomm qcs8300
to support function for emmc on the Soc.

Signed-off-by: Sayali Lokhande <quic_sayalil@quicinc.com>
---
 Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
index 2b2cbce2458b..5ba2da8dbc7d 100644
--- a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
+++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
@@ -45,6 +45,7 @@ properties:
               - qcom,qcm2290-sdhci
               - qcom,qcs404-sdhci
               - qcom,qcs615-sdhci
+              - qcom,qcs8300-sdhci
               - qcom,qdu1000-sdhci
               - qcom,sar2130p-sdhci
               - qcom,sc7180-sdhci
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH V3 2/3] arm64: dts: qcom: Add eMMC support for qcs8300
  2025-07-02  8:59 [PATCH V3 0/3] Add eMMC support for qcs8300 Sayali Lokhande
  2025-07-02  8:59 ` [PATCH V3 1/3] dt-bindings: mmc: Add sdhci compatible " Sayali Lokhande
@ 2025-07-02  8:59 ` Sayali Lokhande
  2025-07-03 12:47   ` Konrad Dybcio
                     ` (2 more replies)
  2025-07-02  8:59 ` [PATCH V3 3/3] arm64: dts: qcom: qcs8300-ride: Enable SDHC1 node Sayali Lokhande
  2 siblings, 3 replies; 10+ messages in thread
From: Sayali Lokhande @ 2025-07-02  8:59 UTC (permalink / raw)
  To: andersson, konradybcio, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-mmc-owner

Add eMMC support for qcs8300 board.

Signed-off-by: Sayali Lokhande <quic_sayalil@quicinc.com>
---
 arch/arm64/boot/dts/qcom/qcs8300.dtsi | 113 ++++++++++++++++++++++++++
 1 file changed, 113 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/qcs8300.dtsi b/arch/arm64/boot/dts/qcom/qcs8300.dtsi
index 7ada029c32c1..5bcb0cc65c72 100644
--- a/arch/arm64/boot/dts/qcom/qcs8300.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs8300.dtsi
@@ -3837,6 +3837,69 @@
 			clock-names = "apb_pclk";
 		};
 
+		sdhc_1: mmc@87c4000 {
+			compatible = "qcom,qcs8300-sdhci", "qcom,sdhci-msm-v5";
+			reg = <0x0 0x087c4000 0x0 0x1000>,
+			      <0x0 0x087c5000 0x0 0x1000>;
+			reg-names = "hc",
+				    "cqhci";
+
+			interrupts = <GIC_SPI 383 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 521 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "hc_irq",
+					  "pwr_irq";
+
+			clocks = <&gcc GCC_SDCC1_AHB_CLK>,
+				 <&gcc GCC_SDCC1_APPS_CLK>,
+				 <&rpmhcc RPMH_CXO_CLK>;
+			clock-names = "iface",
+				      "core",
+				      "xo";
+
+			resets = <&gcc GCC_SDCC1_BCR>;
+
+			power-domains = <&rpmhpd RPMHPD_CX>;
+			operating-points-v2 = <&sdhc1_opp_table>;
+			iommus = <&apps_smmu 0x0 0x0>;
+			interconnects = <&aggre1_noc MASTER_SDC QCOM_ICC_TAG_ALWAYS
+					 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
+					<&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+					 &config_noc SLAVE_SDCC_1 QCOM_ICC_TAG_ACTIVE_ONLY>;
+			interconnect-names = "sdhc-ddr",
+					     "cpu-sdhc";
+
+			qcom,dll-config = <0x000f64ee>;
+			qcom,ddr-config = <0x80040868>;
+			supports-cqe;
+			dma-coherent;
+
+			status = "disabled";
+
+			sdhc1_opp_table: opp-table {
+				compatible = "operating-points-v2";
+
+				opp-50000000 {
+					opp-hz = /bits/ 64 <50000000>;
+					required-opps = <&rpmhpd_opp_low_svs>;
+				};
+
+				opp-100000000 {
+					opp-hz = /bits/ 64 <100000000>;
+					required-opps = <&rpmhpd_opp_svs>;
+				};
+
+				opp-200000000 {
+					opp-hz = /bits/ 64 <200000000>;
+					required-opps = <&rpmhpd_opp_svs_l1>;
+				};
+
+				opp-384000000 {
+					opp-hz = /bits/ 64 <384000000>;
+					required-opps = <&rpmhpd_opp_nom>;
+				};
+			};
+		};
+
 		usb_1_hsphy: phy@8904000 {
 			compatible = "qcom,qcs8300-usb-hs-phy",
 				     "qcom,usb-snps-hs-7nm-phy";
@@ -5042,6 +5105,56 @@
 				pins = "gpio13";
 				function = "qup2_se0";
 			};
+
+			sdc1_state_on: sdc1-on-state {
+				clk-pins {
+					pins = "sdc1_clk";
+					drive-strength = <16>;
+					bias-disable;
+				};
+
+				cmd-pins {
+					pins = "sdc1_cmd";
+					drive-strength = <10>;
+					bias-pull-up;
+				};
+
+				data-pins {
+					pins = "sdc1_data";
+					drive-strength = <10>;
+					bias-pull-up;
+				};
+
+				rclk-pins {
+					pins = "sdc1_rclk";
+					bias-pull-down;
+				};
+			};
+
+			sdc1_state_off: sdc1-off-state {
+				clk-pins {
+					pins = "sdc1_clk";
+					drive-strength = <2>;
+					bias-bus-hold;
+				};
+
+				cmd-pins {
+					pins = "sdc1_cmd";
+					drive-strength = <2>;
+					bias-bus-hold;
+				};
+
+				data-pins {
+					pins = "sdc1_data";
+					drive-strength = <2>;
+					bias-bus-hold;
+				};
+
+				rclk-pins {
+					pins = "sdc1_rclk";
+					bias-bus-hold;
+				};
+			};
 		};
 
 		sram: sram@146d8000 {
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH V3 3/3] arm64: dts: qcom: qcs8300-ride: Enable SDHC1 node
  2025-07-02  8:59 [PATCH V3 0/3] Add eMMC support for qcs8300 Sayali Lokhande
  2025-07-02  8:59 ` [PATCH V3 1/3] dt-bindings: mmc: Add sdhci compatible " Sayali Lokhande
  2025-07-02  8:59 ` [PATCH V3 2/3] arm64: dts: qcom: Add eMMC support " Sayali Lokhande
@ 2025-07-02  8:59 ` Sayali Lokhande
  2025-07-03 12:48   ` Konrad Dybcio
  2 siblings, 1 reply; 10+ messages in thread
From: Sayali Lokhande @ 2025-07-02  8:59 UTC (permalink / raw)
  To: andersson, konradybcio, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-mmc-owner

Enable sdhc1 support for qcs8300 ride platform.

Signed-off-by: Sayali Lokhande <quic_sayalil@quicinc.com>
---
 arch/arm64/boot/dts/qcom/qcs8300-ride.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/qcs8300-ride.dts b/arch/arm64/boot/dts/qcom/qcs8300-ride.dts
index 8c166ead912c..9c37a0f5ba25 100644
--- a/arch/arm64/boot/dts/qcom/qcs8300-ride.dts
+++ b/arch/arm64/boot/dts/qcom/qcs8300-ride.dts
@@ -17,6 +17,7 @@
 
 	aliases {
 		serial0 = &uart7;
+		mmc0 = &sdhc_1;
 	};
 
 	chosen {
@@ -332,6 +333,26 @@
 	status = "okay";
 };
 
+&sdhc_1 {
+	pinctrl-0 = <&sdc1_state_on>;
+	pinctrl-1 = <&sdc1_state_off>;
+	pinctrl-names = "default", "sleep";
+
+	bus-width = <8>;
+	mmc-ddr-1_8v;
+	mmc-hs200-1_8v;
+	mmc-hs400-1_8v;
+	mmc-hs400-enhanced-strobe;
+	vmmc-supply = <&vreg_l8a>;
+	vqmmc-supply = <&vreg_s4a>;
+
+	non-removable;
+	no-sd;
+	no-sdio;
+
+	status = "okay";
+};
+
 &tlmm {
 	ethernet0_default: ethernet0-default-state {
 		ethernet0_mdc: ethernet0-mdc-pins {
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH V3 1/3] dt-bindings: mmc: Add sdhci compatible for qcs8300
  2025-07-02  8:59 ` [PATCH V3 1/3] dt-bindings: mmc: Add sdhci compatible " Sayali Lokhande
@ 2025-07-02 14:52   ` Rob Herring (Arm)
  2025-07-03 12:19   ` Ulf Hansson
  1 sibling, 0 replies; 10+ messages in thread
From: Rob Herring (Arm) @ 2025-07-02 14:52 UTC (permalink / raw)
  To: Sayali Lokhande
  Cc: conor+dt, andersson, linux-mmc-owner, linux-kernel, krzk+dt,
	devicetree, linux-arm-msm, konradybcio


On Wed, 02 Jul 2025 14:29:25 +0530, Sayali Lokhande wrote:
> Document the sdhci compatible for Qualcomm qcs8300
> to support function for emmc on the Soc.
> 
> Signed-off-by: Sayali Lokhande <quic_sayalil@quicinc.com>
> ---
>  Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 


Please add Acked-by/Reviewed-by tags when posting new versions. However,
there's no need to repost patches *only* to add the tags. The upstream
maintainer will do that for acks received on the version they apply.

If a tag was not added on purpose, please state why and what changed.

Missing tags:

Acked-by: Rob Herring (Arm) <robh@kernel.org>




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH V3 1/3] dt-bindings: mmc: Add sdhci compatible for qcs8300
  2025-07-02  8:59 ` [PATCH V3 1/3] dt-bindings: mmc: Add sdhci compatible " Sayali Lokhande
  2025-07-02 14:52   ` Rob Herring (Arm)
@ 2025-07-03 12:19   ` Ulf Hansson
  1 sibling, 0 replies; 10+ messages in thread
From: Ulf Hansson @ 2025-07-03 12:19 UTC (permalink / raw)
  To: Sayali Lokhande
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, linux-arm-msm,
	devicetree, linux-kernel, linux-mmc-owner

On Wed, 2 Jul 2025 at 11:00, Sayali Lokhande <quic_sayalil@quicinc.com> wrote:
>
> Document the sdhci compatible for Qualcomm qcs8300
> to support function for emmc on the Soc.
>
> Signed-off-by: Sayali Lokhande <quic_sayalil@quicinc.com>

Applied for next, thanks!

Note that, you didn't send this to linux-mmc, hence it did not reach
the patchtracker. Please make sure to update the to/cc-list next time.

Kind regards
Uffe


> ---
>  Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
> index 2b2cbce2458b..5ba2da8dbc7d 100644
> --- a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
> +++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
> @@ -45,6 +45,7 @@ properties:
>                - qcom,qcm2290-sdhci
>                - qcom,qcs404-sdhci
>                - qcom,qcs615-sdhci
> +              - qcom,qcs8300-sdhci
>                - qcom,qdu1000-sdhci
>                - qcom,sar2130p-sdhci
>                - qcom,sc7180-sdhci
> --
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> a Linux Foundation Collaborative Project
>
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH V3 2/3] arm64: dts: qcom: Add eMMC support for qcs8300
  2025-07-02  8:59 ` [PATCH V3 2/3] arm64: dts: qcom: Add eMMC support " Sayali Lokhande
@ 2025-07-03 12:47   ` Konrad Dybcio
  2025-07-04  4:26   ` kernel test robot
  2025-07-08 17:08   ` Konrad Dybcio
  2 siblings, 0 replies; 10+ messages in thread
From: Konrad Dybcio @ 2025-07-03 12:47 UTC (permalink / raw)
  To: Sayali Lokhande, andersson, konradybcio, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-mmc-owner



On 02-Jul-25 10:59, Sayali Lokhande wrote:
> Add eMMC support for qcs8300 board.
> 
> Signed-off-by: Sayali Lokhande <quic_sayalil@quicinc.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH V3 3/3] arm64: dts: qcom: qcs8300-ride: Enable SDHC1 node
  2025-07-02  8:59 ` [PATCH V3 3/3] arm64: dts: qcom: qcs8300-ride: Enable SDHC1 node Sayali Lokhande
@ 2025-07-03 12:48   ` Konrad Dybcio
  0 siblings, 0 replies; 10+ messages in thread
From: Konrad Dybcio @ 2025-07-03 12:48 UTC (permalink / raw)
  To: Sayali Lokhande, andersson, konradybcio, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-mmc-owner



On 02-Jul-25 10:59, Sayali Lokhande wrote:
> Enable sdhc1 support for qcs8300 ride platform.
> 
> Signed-off-by: Sayali Lokhande <quic_sayalil@quicinc.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH V3 2/3] arm64: dts: qcom: Add eMMC support for qcs8300
  2025-07-02  8:59 ` [PATCH V3 2/3] arm64: dts: qcom: Add eMMC support " Sayali Lokhande
  2025-07-03 12:47   ` Konrad Dybcio
@ 2025-07-04  4:26   ` kernel test robot
  2025-07-08 17:08   ` Konrad Dybcio
  2 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2025-07-04  4:26 UTC (permalink / raw)
  To: Sayali Lokhande, andersson, konradybcio, robh, krzk+dt, conor+dt
  Cc: oe-kbuild-all, linux-arm-msm, devicetree, linux-kernel,
	linux-mmc-owner

Hi Sayali,

kernel test robot noticed the following build errors:

[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v6.16-rc4 next-20250703]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Sayali-Lokhande/dt-bindings-mmc-Add-sdhci-compatible-for-qcs8300/20250702-170136
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link:    https://lore.kernel.org/r/20250702085927.10370-3-quic_sayalil%40quicinc.com
patch subject: [PATCH V3 2/3] arm64: dts: qcom: Add eMMC support for qcs8300
config: arm64-randconfig-051-20250703 (https://download.01.org/0day-ci/archive/20250704/202507041209.XrPwGbTd-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.3.0
dtschema version: 2025.6.2.dev4+g8f79ddd
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250704/202507041209.XrPwGbTd-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507041209.XrPwGbTd-lkp@intel.com/

All errors (new ones prefixed by >>):

>> Error: arch/arm64/boot/dts/qcom/qcs8300.dtsi:3867.19-20 syntax error
>> FATAL ERROR: Unable to parse input tree

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH V3 2/3] arm64: dts: qcom: Add eMMC support for qcs8300
  2025-07-02  8:59 ` [PATCH V3 2/3] arm64: dts: qcom: Add eMMC support " Sayali Lokhande
  2025-07-03 12:47   ` Konrad Dybcio
  2025-07-04  4:26   ` kernel test robot
@ 2025-07-08 17:08   ` Konrad Dybcio
  2 siblings, 0 replies; 10+ messages in thread
From: Konrad Dybcio @ 2025-07-08 17:08 UTC (permalink / raw)
  To: Sayali Lokhande, andersson, konradybcio, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-mmc-owner

On 7/2/25 10:59 AM, Sayali Lokhande wrote:
> Add eMMC support for qcs8300 board.
> 
> Signed-off-by: Sayali Lokhande <quic_sayalil@quicinc.com>
> ---

[...]

> +			interconnects = <&aggre1_noc MASTER_SDC QCOM_ICC_TAG_ALWAYS
> +					 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
> +					<&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
> +					 &config_noc SLAVE_SDCC_1 QCOM_ICC_TAG_ACTIVE_ONLY>;

SLAVE_SDC1, see include/dt-bindings/interconnect/qcom,qcs8300-rpmh.h

Konrad

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-07-08 17:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02  8:59 [PATCH V3 0/3] Add eMMC support for qcs8300 Sayali Lokhande
2025-07-02  8:59 ` [PATCH V3 1/3] dt-bindings: mmc: Add sdhci compatible " Sayali Lokhande
2025-07-02 14:52   ` Rob Herring (Arm)
2025-07-03 12:19   ` Ulf Hansson
2025-07-02  8:59 ` [PATCH V3 2/3] arm64: dts: qcom: Add eMMC support " Sayali Lokhande
2025-07-03 12:47   ` Konrad Dybcio
2025-07-04  4:26   ` kernel test robot
2025-07-08 17:08   ` Konrad Dybcio
2025-07-02  8:59 ` [PATCH V3 3/3] arm64: dts: qcom: qcs8300-ride: Enable SDHC1 node Sayali Lokhande
2025-07-03 12:48   ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).