mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pankaj Patil <pankaj.patil@oss.qualcomm.com>
To: sboyd@kernel.org, mturquette@baylibre.com, andersson@kernel.org,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	quic_rjendra@quicinc.com, taniya.das@oss.qualcomm.com
Cc: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 4/7] clk: qcom: rpmh: Add support for Glymur rpmh clocks
Date: Wed, 16 Jul 2025 20:50:14 +0530	[thread overview]
Message-ID: <20250716152017.4070029-5-pankaj.patil@oss.qualcomm.com> (raw)
In-Reply-To: <20250716152017.4070029-1-pankaj.patil@oss.qualcomm.com>

From: Taniya Das <taniya.das@oss.qualcomm.com>

Add RPMH clock support for the Glymur SoC to enable proper clock
management.

Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
Signed-off-by: Pankaj Patil <pankaj.patil@oss.qualcomm.com>
---
 drivers/clk/qcom/clk-rpmh.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c
index 00fb3e53a388..1bc1333087b4 100644
--- a/drivers/clk/qcom/clk-rpmh.c
+++ b/drivers/clk/qcom/clk-rpmh.c
@@ -388,6 +388,11 @@ DEFINE_CLK_RPMH_VRM(clk8, _a2, "clka8", 2);
 
 DEFINE_CLK_RPMH_VRM(div_clk1, _div2, "divclka1", 2);
 
+DEFINE_CLK_RPMH_VRM(clk3, _a, "C3A_E0", 1);
+DEFINE_CLK_RPMH_VRM(clk4, _a, "C4A_E0", 1);
+DEFINE_CLK_RPMH_VRM(clk5, _a, "C5A_E0", 1);
+DEFINE_CLK_RPMH_VRM(clk8, _a, "C8A_E0", 1);
+
 DEFINE_CLK_RPMH_BCM(ce, "CE0");
 DEFINE_CLK_RPMH_BCM(hwkm, "HK0");
 DEFINE_CLK_RPMH_BCM(ipa, "IP0");
@@ -854,6 +859,22 @@ static const struct clk_rpmh_desc clk_rpmh_sm8750 = {
 	.clka_optional = true,
 };
 
+static struct clk_hw *glymur_rpmh_clocks[] = {
+	[RPMH_CXO_CLK]		= &clk_rpmh_bi_tcxo_div2.hw,
+	[RPMH_CXO_CLK_A]	= &clk_rpmh_bi_tcxo_div2_ao.hw,
+	[RPMH_RF_CLK3]		= &clk_rpmh_clk3_a.hw,
+	[RPMH_RF_CLK3_A]	= &clk_rpmh_clk3_a_ao.hw,
+	[RPMH_RF_CLK4]		= &clk_rpmh_clk4_a.hw,
+	[RPMH_RF_CLK4_A]	= &clk_rpmh_clk4_a_ao.hw,
+	[RPMH_RF_CLK5]		= &clk_rpmh_clk5_a.hw,
+	[RPMH_RF_CLK5_A]	= &clk_rpmh_clk5_a_ao.hw,
+};
+
+static const struct clk_rpmh_desc clk_rpmh_glymur = {
+	.clks = glymur_rpmh_clocks,
+	.num_clks = ARRAY_SIZE(glymur_rpmh_clocks),
+};
+
 static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec,
 					 void *data)
 {
@@ -943,6 +964,7 @@ static int clk_rpmh_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id clk_rpmh_match_table[] = {
+	{ .compatible = "qcom,glymur-rpmh-clk", .data = &clk_rpmh_glymur},
 	{ .compatible = "qcom,qcs615-rpmh-clk", .data = &clk_rpmh_qcs615},
 	{ .compatible = "qcom,qdu1000-rpmh-clk", .data = &clk_rpmh_qdu1000},
 	{ .compatible = "qcom,sa8775p-rpmh-clk", .data = &clk_rpmh_sa8775p},
-- 
2.34.1


  parent reply	other threads:[~2025-07-16 15:20 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-16 15:20 [PATCH 0/7] Add support for Clock controllers for Glymur Pankaj Patil
2025-07-16 15:20 ` [PATCH 1/7] dt-bindings: clock: qcom-rpmhcc: Add support for Glymur SoCs Pankaj Patil
2025-07-16 15:20 ` [PATCH 2/7] dt-bindings: clock: qcom: Add bindings documentation for the Glymur TCSR Pankaj Patil
2025-07-21  9:19   ` Krzysztof Kozlowski
2025-07-23  9:21     ` Taniya Das
2025-07-16 15:20 ` [PATCH 3/7] clk: qcom: Add TCSR clock driver for Glymur Pankaj Patil
2025-07-16 15:35   ` Dmitry Baryshkov
2025-07-18 17:06     ` Taniya Das
2025-07-16 15:20 ` Pankaj Patil [this message]
2025-07-16 15:20 ` [PATCH 5/7] clk: qcom: clk-alpha-pll: Add support for Taycan EKO_T PLL Pankaj Patil
2025-07-16 15:36   ` Dmitry Baryshkov
2025-07-16 15:20 ` [PATCH 6/7] dt-bindings: clock: qcom: document the Glymur Global Clock Controller Pankaj Patil
2025-07-16 15:20 ` [PATCH 7/7] clk: qcom: gcc: Add support for " Pankaj Patil
2025-07-16 16:28   ` Krzysztof Kozlowski
2025-07-18 17:26     ` Taniya Das
2025-07-20  3:46     ` Bjorn Andersson
2025-07-20 12:18       ` Krzysztof Kozlowski
2025-07-22  3:28         ` Bjorn Andersson
2025-08-13 16:19         ` Greg KH
2025-08-14 22:51           ` Bjorn Andersson
2025-07-17  9:57   ` Abel Vesa
2025-07-17 10:08     ` Krzysztof Kozlowski
2025-07-18 17:37       ` Taniya Das
2025-07-20  4:00         ` Bjorn Andersson
2025-07-21 17:13           ` Taniya Das
2025-07-22  3:21             ` Bjorn Andersson
2025-07-16 16:12 ` [PATCH 0/7] Add support for Clock controllers for Glymur Krzysztof Kozlowski
2025-07-21  6:38   ` Pankaj Patil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250716152017.4070029-5-pankaj.patil@oss.qualcomm.com \
    --to=pankaj.patil@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=quic_rjendra@quicinc.com \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=taniya.das@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®