Skip to contentSkip to conversation

clk: qcom: gcc-ipq6018: Use floor ops for sdcc clocks

PATCH Superseded Mantas Pucka 5 participants 7 messages Apr 24, 2023 – Oct 31, 2023

Subsystems (6)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 clk: qcom: gcc-ipq6018: Use floor ops for sdcc clocks

SDCC clocks must be rounded down to avoid overclocking the controller.

Fixes d9db07f088af ("clk: qcom: Add ipq6018 Global Clock Controller support")
---
 drivers/clk/qcom/gcc-ipq6018.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/qcom/gcc-ipq6018.c +1 -1
index 3f9c2f61a5d9..5c5d1b04ea7a 100644
@@ -1654,7 +1654,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = {
 		.name = "sdcc1_apps_clk_src",
 		.parent_data = gcc_xo_gpll0_gpll2_gpll0_out_main_div2,
 		.num_parents = 4,
-		.ops = &clk_rcg2_ops,
+		.ops = &clk_rcg2_floor_ops,
 	},
 };
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/3 dt-bindings: mmc: sdhci-msm: add IPQ6018 compatible

IPQ6018 has a sdhci-msm compatible MMC controller. Add the appropriate compatible to the documentation.

---
 Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/mmc/sdhci-msm.yaml +1 -0
index 4f2d9e8127dd..5ad846b724f3 100644
@@ -36,6 +36,7 @@ properties:
           - enum:
               - qcom,ipq5018-sdhci
               - qcom,ipq5332-sdhci
+              - qcom,ipq6018-sdhci
               - qcom,ipq9574-sdhci
               - qcom,qcm2290-sdhci
               - qcom,qcs404-sdhci
Signature · 1 line
2.7.4
#4 lore raw

PATCH 3/3 arm64: dts: qcom: ipq6018: add SDHCI node

In reply to Mantas Pucka

IPQ6018 has one SD/eMMC controller, add node for it.

---
 arch/arm64/boot/dts/qcom/ipq6018.dtsi | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/arm64/boot/dts/qcom/ipq6018.dtsi +23 -0
index 9ff4e9d45065..b129b23d68b1 100644
@@ -414,6 +414,29 @@
 			};
 		};
 
+		sdhc_1: mmc@7804000 {
+			compatible = "qcom,ipq6018-sdhci", "qcom,sdhci-msm-v5";
+			reg = <0x0 0x07804000 0x0 0x1000>,
+			      <0x0 0x07805000 0x0 0x1000>,
+			      <0x0 0x07808000 0x0 0x2000>;
+			reg-names = "hc", "cqhci", "ice";
+
+			interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "hc_irq", "pwr_irq";
+
+			clocks = <&gcc GCC_SDCC1_AHB_CLK>,
+				 <&gcc GCC_SDCC1_APPS_CLK>,
+				 <&xo>,
+				 <&gcc GCC_SDCC1_ICE_CORE_CLK>;
+			clock-names = "iface", "core", "xo", "ice";
+
+			resets = <&gcc GCC_SDCC1_BCR>;
+			supports-cqe;
+			bus-width = <8>;
+			status = "disabled";
+		};
+
 		blsp_dma: dma-controller@7884000 {
 			compatible = "qcom,bam-v1.7.0";
 			reg = <0x0 0x07884000 0x0 0x2b000>;
Signature · 1 line
2.7.4
#3 lore raw

Re: [PATCH 2/3] dt-bindings: mmc: sdhci-msm: add IPQ6018 compatible

In reply to Mantas Pucka
Quoted 5 lines · Mantas Pucka

IPQ6018 has a sdhci-msm compatible MMC controller. Add the appropriate compatible to the documentation.

Applied for next, thanks!

Kind regards
Uffe

Quoted 19 lines
---
 Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/mmc/sdhci-msm.yaml +1 -1
index 4f2d9e8127dd..5ad846b724f3 100644
@@ -36,6 +36,7 @@ properties:
           - enum:
               - qcom,ipq5018-sdhci
               - qcom,ipq5332-sdhci
+              - qcom,ipq6018-sdhci
               - qcom,ipq9574-sdhci
               - qcom,qcm2290-sdhci
               - qcom,qcs404-sdhci
--

2.7.4

Tested-by on v1 3/3
#5 lore raw

Re: [PATCH 3/3] arm64: dts: qcom: ipq6018: add SDHCI node

In reply to Mantas Pucka
Quoted 3 lines · Mantas Pucka

IPQ6018 has one SD/eMMC controller, add node for it.

Quoted 38 lines
---
  arch/arm64/boot/dts/qcom/ipq6018.dtsi | 23 +++++++++++++++++++++++
  1 file changed, 23 insertions(+)
arch/arm64/boot/dts/qcom/ipq6018.dtsi +23 -0
index 9ff4e9d45065..b129b23d68b1 100644
@@ -414,6 +414,29 @@
  			};
  		};
 
+		sdhc_1: mmc@7804000 {
+			compatible = "qcom,ipq6018-sdhci", "qcom,sdhci-msm-v5";
+			reg = <0x0 0x07804000 0x0 0x1000>,
+			      <0x0 0x07805000 0x0 0x1000>,
+			      <0x0 0x07808000 0x0 0x2000>;
+			reg-names = "hc", "cqhci", "ice";
+
+			interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "hc_irq", "pwr_irq";
+
+			clocks = <&gcc GCC_SDCC1_AHB_CLK>,
+				 <&gcc GCC_SDCC1_APPS_CLK>,
+				 <&xo>,
+				 <&gcc GCC_SDCC1_ICE_CORE_CLK>;
+			clock-names = "iface", "core", "xo", "ice";
+
+			resets = <&gcc GCC_SDCC1_BCR>;
+			supports-cqe;
+			bus-width = <8>;
+			status = "disabled";
+		};
+
  		blsp_dma: dma-controller@7884000 {
  			compatible = "qcom,bam-v1.7.0";
  			reg = <0x0 0x07884000 0x0 0x2b000>;