public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] clk: qcom: smd-rpm: Add clocks for MSM8920
@ 2026-05-05 20:38 Catherine A. Frederick
  2026-05-05 20:38 ` [PATCH 2/3] dt-bindings: clock: qcom,rpmcc: Add MSM8920 compatible Catherine A. Frederick
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Catherine A. Frederick @ 2026-05-05 20:38 UTC (permalink / raw)
  To: andersson, sboyd, krzk+dt
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Catherine A. Frederick

MSM8920 is very similar to MSM8917, but adds IPA clocks.

Signed-off-by: Catherine A. Frederick <serenity@floorchan.org>
---
 drivers/clk/qcom/clk-smd-rpm.c | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c
index 103db984a40b..cdabe373aabc 100644
--- a/drivers/clk/qcom/clk-smd-rpm.c
+++ b/drivers/clk/qcom/clk-smd-rpm.c
@@ -666,6 +666,36 @@ static const struct rpm_smd_clk_desc rpm_clk_msm8917 = {
 	.num_icc_clks = ARRAY_SIZE(bimc_pcnoc_snoc_smmnoc_icc_clks),
 };
 
+static struct clk_smd_rpm *msm8920_clks[] = {
+	[RPM_SMD_XO_CLK_SRC]		= &clk_smd_rpm_branch_bi_tcxo,
+	[RPM_SMD_XO_A_CLK_SRC]		= &clk_smd_rpm_branch_bi_tcxo_a,
+	[RPM_SMD_BIMC_GPU_CLK]		= &clk_smd_rpm_bimc_gpu_clk,
+	[RPM_SMD_BIMC_GPU_A_CLK]	= &clk_smd_rpm_bimc_gpu_a_clk,
+	[RPM_SMD_IPA_CLK]		= &clk_smd_rpm_ipa_clk,
+	[RPM_SMD_IPA_A_CLK]		= &clk_smd_rpm_ipa_a_clk,
+	[RPM_SMD_QDSS_CLK]		= &clk_smd_rpm_qdss_clk,
+	[RPM_SMD_QDSS_A_CLK]		= &clk_smd_rpm_qdss_a_clk,
+	[RPM_SMD_BB_CLK1]		= &clk_smd_rpm_bb_clk1,
+	[RPM_SMD_BB_CLK1_A]		= &clk_smd_rpm_bb_clk1_a,
+	[RPM_SMD_BB_CLK2]		= &clk_smd_rpm_bb_clk2,
+	[RPM_SMD_BB_CLK2_A]		= &clk_smd_rpm_bb_clk2_a,
+	[RPM_SMD_RF_CLK2]		= &clk_smd_rpm_rf_clk2,
+	[RPM_SMD_RF_CLK2_A]		= &clk_smd_rpm_rf_clk2_a,
+	[RPM_SMD_DIV_CLK2]		= &clk_smd_rpm_div_clk2,
+	[RPM_SMD_DIV_A_CLK2]		= &clk_smd_rpm_div_clk2_a,
+	[RPM_SMD_BB_CLK1_PIN]		= &clk_smd_rpm_bb_clk1_pin,
+	[RPM_SMD_BB_CLK1_A_PIN]		= &clk_smd_rpm_bb_clk1_a_pin,
+	[RPM_SMD_BB_CLK2_PIN]		= &clk_smd_rpm_bb_clk2_pin,
+	[RPM_SMD_BB_CLK2_A_PIN]		= &clk_smd_rpm_bb_clk2_a_pin,
+};
+
+static const struct rpm_smd_clk_desc rpm_clk_msm8920 = {
+	.clks = msm8920_clks,
+	.num_clks = ARRAY_SIZE(msm8920_clks),
+	.icc_clks = bimc_pcnoc_snoc_smmnoc_icc_clks,
+	.num_icc_clks = ARRAY_SIZE(bimc_pcnoc_snoc_smmnoc_icc_clks),
+};
+
 static struct clk_smd_rpm *msm8936_clks[] = {
 	[RPM_SMD_XO_CLK_SRC]		= &clk_smd_rpm_branch_bi_tcxo,
 	[RPM_SMD_XO_A_CLK_SRC]		= &clk_smd_rpm_branch_bi_tcxo_a,
@@ -1295,6 +1325,7 @@ static const struct of_device_id rpm_smd_clk_match_table[] = {
 	{ .compatible = "qcom,rpmcc-msm8909", .data = &rpm_clk_msm8909 },
 	{ .compatible = "qcom,rpmcc-msm8916", .data = &rpm_clk_msm8916 },
 	{ .compatible = "qcom,rpmcc-msm8917", .data = &rpm_clk_msm8917 },
+	{ .compatible = "qcom,rpmcc-msm8920", .data = &rpm_clk_msm8920 },
 	{ .compatible = "qcom,rpmcc-msm8936", .data = &rpm_clk_msm8936 },
 	{ .compatible = "qcom,rpmcc-msm8937", .data = &rpm_clk_msm8937 },
 	{ .compatible = "qcom,rpmcc-msm8940", .data = &rpm_clk_msm8940 },
-- 
2.53.0


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

* [PATCH 2/3] dt-bindings: clock: qcom,rpmcc: Add MSM8920 compatible
  2026-05-05 20:38 [PATCH 1/3] clk: qcom: smd-rpm: Add clocks for MSM8920 Catherine A. Frederick
@ 2026-05-05 20:38 ` Catherine A. Frederick
  2026-05-06  9:49   ` Krzysztof Kozlowski
  2026-05-05 20:38 ` [PATCH 3/3] arm64: dts: qcom: Add initial support for MSM8920 Catherine A. Frederick
  2026-05-06 10:34 ` [PATCH 1/3] clk: qcom: smd-rpm: Add clocks " Konrad Dybcio
  2 siblings, 1 reply; 6+ messages in thread
From: Catherine A. Frederick @ 2026-05-05 20:38 UTC (permalink / raw)
  To: andersson, sboyd, krzk+dt
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Catherine A. Frederick

Document new qcom,rpmcc-msm8920 compatible with rpmcc changes.

Signed-off-by: Catherine A. Frederick <serenity@floorchan.org>
---
 Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml b/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml
index ab97d4b7dba8..e35a003f270d 100644
--- a/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml
@@ -32,6 +32,7 @@ properties:
           - qcom,rpmcc-msm8909
           - qcom,rpmcc-msm8916
           - qcom,rpmcc-msm8917
+          - qcom,rpmcc-msm8920
           - qcom,rpmcc-msm8936
           - qcom,rpmcc-msm8937
           - qcom,rpmcc-msm8940
@@ -112,6 +113,7 @@ allOf:
               - qcom,rpmcc-msm8226
               - qcom,rpmcc-msm8916
               - qcom,rpmcc-msm8917
+              - qcom,rpmcc-msm8920
               - qcom,rpmcc-msm8936
               - qcom,rpmcc-msm8937
               - qcom,rpmcc-msm8940
-- 
2.53.0


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

* [PATCH 3/3] arm64: dts: qcom: Add initial support for MSM8920
  2026-05-05 20:38 [PATCH 1/3] clk: qcom: smd-rpm: Add clocks for MSM8920 Catherine A. Frederick
  2026-05-05 20:38 ` [PATCH 2/3] dt-bindings: clock: qcom,rpmcc: Add MSM8920 compatible Catherine A. Frederick
@ 2026-05-05 20:38 ` Catherine A. Frederick
  2026-05-06  9:49   ` Krzysztof Kozlowski
  2026-05-06 10:34 ` [PATCH 1/3] clk: qcom: smd-rpm: Add clocks " Konrad Dybcio
  2 siblings, 1 reply; 6+ messages in thread
From: Catherine A. Frederick @ 2026-05-05 20:38 UTC (permalink / raw)
  To: andersson, sboyd, krzk+dt
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Catherine A. Frederick

Add initial support for MSM8920, which is essentially MSM8917 with
an MSM8953 modem glued onto it.

Signed-off-by: Catherine A. Frederick <serenity@floorchan.org>
---
 arch/arm64/boot/dts/qcom/msm8920.dtsi | 55 +++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/msm8920.dtsi

diff --git a/arch/arm64/boot/dts/qcom/msm8920.dtsi b/arch/arm64/boot/dts/qcom/msm8920.dtsi
new file mode 100644
index 000000000000..943cae72227a
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/msm8920.dtsi
@@ -0,0 +1,55 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Copyright (c) 2026, Catherine A. Frederick <serenity@floorchan.org>
+ */
+
+#include "msm8917.dtsi"
+
+&adsp_mem {
+	size = <0x0 0x1100000>;
+};
+
+&gps_mem {
+	size = <0x0 0x200000>;
+};
+
+&mba_mem {
+	size = <0x0 0x100000>;
+};
+
+&venus_mem {
+	size = <0x0 0x400000>;
+};
+
+&wcnss_mem {
+	size = <0x0 0x700000>;
+};
+
+&apps_iommu {
+	/* IPA */
+	iommu-ctx@18000 {
+		compatible = "qcom,msm-iommu-v1-ns";
+		reg = <0x18000 0x1000>;
+		interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
+	};
+};
+
+&rpmcc {
+	compatible = "qcom,rpmcc-msm8920", "qcom,rpmcc";
+};
+
+&soc {
+	ipa: ipa@7900000 {
+		compatible = "qcom,ipa-lite-v2.6";
+		reg = <0x7900000 0x47000>;
+		clocks = <&rpmcc RPM_SMD_IPA_CLK>;
+		interrupts = <GIC_SPI 228 IRQ_TYPE_EDGE_RISING>,
+			     <GIC_SPI 230 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-names = "ipa", "dma";
+		iommus = <&apps_iommu 0x18>;
+		modem-remoteproc = <&modem>;
+
+		status = "disabled";
+	};
+
+};
-- 
2.53.0


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

* Re: [PATCH 2/3] dt-bindings: clock: qcom,rpmcc: Add MSM8920 compatible
  2026-05-05 20:38 ` [PATCH 2/3] dt-bindings: clock: qcom,rpmcc: Add MSM8920 compatible Catherine A. Frederick
@ 2026-05-06  9:49   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-06  9:49 UTC (permalink / raw)
  To: Catherine A. Frederick
  Cc: andersson, sboyd, krzk+dt, linux-arm-msm, linux-clk, devicetree,
	linux-kernel

On Tue, May 05, 2026 at 04:38:40PM -0400, Catherine A. Frederick wrote:
> Document new qcom,rpmcc-msm8920 compatible with rpmcc changes.
> 
> Signed-off-by: Catherine A. Frederick <serenity@floorchan.org>
> ---
>  Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 

Please organize the patch documenting the compatible (DT bindings)
before the patch using that compatible.
See also: https://elixir.bootlin.com/linux/v6.14-rc6/source/Documentation/devicetree/bindings/submitting-patches.rst#L46

With this fixed:

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

Best regards,
Krzysztof


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

* Re: [PATCH 3/3] arm64: dts: qcom: Add initial support for MSM8920
  2026-05-05 20:38 ` [PATCH 3/3] arm64: dts: qcom: Add initial support for MSM8920 Catherine A. Frederick
@ 2026-05-06  9:49   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-06  9:49 UTC (permalink / raw)
  To: Catherine A. Frederick
  Cc: andersson, sboyd, krzk+dt, linux-arm-msm, linux-clk, devicetree,
	linux-kernel

On Tue, May 05, 2026 at 04:38:41PM -0400, Catherine A. Frederick wrote:
> Add initial support for MSM8920, which is essentially MSM8917 with
> an MSM8953 modem glued onto it.
> 
> Signed-off-by: Catherine A. Frederick <serenity@floorchan.org>
> ---
>  arch/arm64/boot/dts/qcom/msm8920.dtsi | 55 +++++++++++++++++++++++++++
>  1 file changed, 55 insertions(+)
>  create mode 100644 arch/arm64/boot/dts/qcom/msm8920.dtsi
> 
> diff --git a/arch/arm64/boot/dts/qcom/msm8920.dtsi b/arch/arm64/boot/dts/qcom/msm8920.dtsi
> new file mode 100644
> index 000000000000..943cae72227a
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/msm8920.dtsi

That's a dead code, unused. No need to add it.

Best regards,
Krzysztof


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

* Re: [PATCH 1/3] clk: qcom: smd-rpm: Add clocks for MSM8920
  2026-05-05 20:38 [PATCH 1/3] clk: qcom: smd-rpm: Add clocks for MSM8920 Catherine A. Frederick
  2026-05-05 20:38 ` [PATCH 2/3] dt-bindings: clock: qcom,rpmcc: Add MSM8920 compatible Catherine A. Frederick
  2026-05-05 20:38 ` [PATCH 3/3] arm64: dts: qcom: Add initial support for MSM8920 Catherine A. Frederick
@ 2026-05-06 10:34 ` Konrad Dybcio
  2 siblings, 0 replies; 6+ messages in thread
From: Konrad Dybcio @ 2026-05-06 10:34 UTC (permalink / raw)
  To: Catherine A. Frederick, andersson, sboyd, krzk+dt
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel

On 5/5/26 10:38 PM, Catherine A. Frederick wrote:
> MSM8920 is very similar to MSM8917, but adds IPA clocks.
> 
> Signed-off-by: Catherine A. Frederick <serenity@floorchan.org>
> ---

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

Konrad

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

end of thread, other threads:[~2026-05-06 10:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-05 20:38 [PATCH 1/3] clk: qcom: smd-rpm: Add clocks for MSM8920 Catherine A. Frederick
2026-05-05 20:38 ` [PATCH 2/3] dt-bindings: clock: qcom,rpmcc: Add MSM8920 compatible Catherine A. Frederick
2026-05-06  9:49   ` Krzysztof Kozlowski
2026-05-05 20:38 ` [PATCH 3/3] arm64: dts: qcom: Add initial support for MSM8920 Catherine A. Frederick
2026-05-06  9:49   ` Krzysztof Kozlowski
2026-05-06 10:34 ` [PATCH 1/3] clk: qcom: smd-rpm: Add clocks " Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox