From: Taniya Das <taniya.das@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Jingyi Wang <jingyi.wang@oss.qualcomm.com>
Cc: Bjorn Andersson <andersson@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Taniya Das <quic_tdas@quicinc.com>,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
aiqun.yu@oss.qualcomm.com, tingwei.zhang@oss.qualcomm.com,
trilok.soni@oss.qualcomm.com, yijie.yang@oss.qualcomm.com
Subject: Re: [PATCH 4/9] clk: qcom: rpmh: Add support for Kaanapali rpmh clocks
Date: Thu, 23 Oct 2025 12:05:29 +0530 [thread overview]
Message-ID: <09e0b94c-2bf6-4147-a831-d3b0724fc418@oss.qualcomm.com> (raw)
In-Reply-To: <thy7r7my2i3gfuy723rrq36k7hjobzqcnlzbggpagg4fgfvvzg@g5wzzxoppja5>
On 10/20/2025 4:29 PM, Dmitry Baryshkov wrote:
> On Wed, Sep 24, 2025 at 03:58:56PM -0700, Jingyi Wang wrote:
>> From: Taniya Das <taniya.das@oss.qualcomm.com>
>>
>> Add the RPMH clocks present in Kaanapali SoC.
>>
>> Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
>> Signed-off-by: Jingyi Wang <jingyi.wang@oss.qualcomm.com>
>> ---
>> drivers/clk/qcom/clk-rpmh.c | 39 +++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 39 insertions(+)
>>
>> diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c
>> index 63c38cb47bc4..6b1f24ee66d5 100644
>> --- a/drivers/clk/qcom/clk-rpmh.c
>> +++ b/drivers/clk/qcom/clk-rpmh.c
>> @@ -395,6 +395,16 @@ 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_VRM(c1a_e0, _a, "C1A_E0", 1);
>> +DEFINE_CLK_RPMH_VRM(c2a_e0, _a, "C2A_E0", 1);
>
> No. Please make sure that you follow what others have done.
>
> Why are these clocks named differently from clkN defined above?
Sure, I will go back and reuse the clkN definitions.
>
>> +DEFINE_CLK_RPMH_VRM(c3a_e0, _a2, "C3A_E0", 2);
>> +DEFINE_CLK_RPMH_VRM(c4a_e0, _a2, "C4A_E0", 2);
>> +DEFINE_CLK_RPMH_VRM(c5a_e0, _a2, "C5A_E0", 2);
>> +DEFINE_CLK_RPMH_VRM(c6a_e0, _a2, "C6A_E0", 2);
>> +DEFINE_CLK_RPMH_VRM(c7a_e0, _a2, "C7A_E0", 2);
>> +DEFINE_CLK_RPMH_VRM(c8a_e0, _a2, "C8A_E0", 2);
>
> And these should use the same pattern. If the old names are unsuitable
> because of the clash between clock names, you can rename them. But
> please, be consistent.
>
Sure, Dmitry, will make the changes.
>> +DEFINE_CLK_RPMH_VRM(c11a_e0, _a4, "C11A_E0", 4);
>
>> +
>> DEFINE_CLK_RPMH_BCM(ce, "CE0");
>> DEFINE_CLK_RPMH_BCM(hwkm, "HK0");
>> DEFINE_CLK_RPMH_BCM(ipa, "IP0");
>> @@ -900,6 +910,34 @@ static const struct clk_rpmh_desc clk_rpmh_glymur = {
>> .num_clks = ARRAY_SIZE(glymur_rpmh_clocks),
>> };
>>
>> +static struct clk_hw *kaanapali_rpmh_clocks[] = {
>> + [RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div2.hw,
>> + [RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div2_ao.hw,
>> + [RPMH_DIV_CLK1] = &clk_rpmh_c11a_e0_a4.hw,
>> + [RPMH_LN_BB_CLK1] = &clk_rpmh_c6a_e0_a2.hw,
>> + [RPMH_LN_BB_CLK1_A] = &clk_rpmh_c6a_e0_a2_ao.hw,
>> + [RPMH_LN_BB_CLK2] = &clk_rpmh_c7a_e0_a2.hw,
>> + [RPMH_LN_BB_CLK2_A] = &clk_rpmh_c7a_e0_a2_ao.hw,
>> + [RPMH_LN_BB_CLK3] = &clk_rpmh_c8a_e0_a2.hw,
> -I$(KERNEL_ROOT) \
>> + [RPMH_LN_BB_CLK3_A] = &clk_rpmh_c8a_e0_a2_ao.hw,
>> + [RPMH_RF_CLK1] = &clk_rpmh_c1a_e0_a.hw,
>> + [RPMH_RF_CLK1_A] = &clk_rpmh_c1a_e0_a_ao.hw,
>> + [RPMH_RF_CLK2] = &clk_rpmh_c2a_e0_a.hw,
>> + [RPMH_RF_CLK2_A] = &clk_rpmh_c2a_e0_a_ao.hw,
>> + [RPMH_RF_CLK3] = &clk_rpmh_c3a_e0_a2.hw,
>> + [RPMH_RF_CLK3_A] = &clk_rpmh_c3a_e0_a2_ao.hw,
>> + [RPMH_RF_CLK4] = &clk_rpmh_c4a_e0_a2.hw,
>> + [RPMH_RF_CLK4] = &clk_rpmh_c4a_e0_a2.hw,
>> + [RPMH_RF_CLK5_A] = &clk_rpmh_c5a_e0_a2_ao.hw,
>> + [RPMH_RF_CLK5_A] = &clk_rpmh_c5a_e0_a2_ao.hw,
>> + [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw,
>> +};
>> +
>> +static const struct clk_rpmh_desc clk_rpmh_kaanapali = {
>> + .clks = kaanapali_rpmh_clocks,
>> + .num_clks = ARRAY_SIZE(kaanapali_rpmh_clocks),
>> +};
>> +
>> static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec,
>> void *data)
>> {
>> @@ -990,6 +1028,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,kaanapali-rpmh-clk", .data = &clk_rpmh_kaanapali},
>> { .compatible = "qcom,milos-rpmh-clk", .data = &clk_rpmh_milos},
>> { .compatible = "qcom,qcs615-rpmh-clk", .data = &clk_rpmh_qcs615},
>> { .compatible = "qcom,qdu1000-rpmh-clk", .data = &clk_rpmh_qdu1000},
>>
>> --
>> 2.25.1
>>
>
--
Thanks,
Taniya Das
next prev parent reply other threads:[~2025-10-23 6:35 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-24 22:58 [PATCH 0/9] Add support for Clock controllers for Kaanapali Jingyi Wang
2025-09-24 22:58 ` [PATCH 1/9] dt-bindings: clock: qcom-rpmhcc: Add RPMHCC " Jingyi Wang
2025-10-12 3:06 ` Krzysztof Kozlowski
2025-09-24 22:58 ` [PATCH 2/9] dt-bindings: clock: qcom: Document the Kaanapali TCSR Clock Controller Jingyi Wang
2025-10-12 3:07 ` Krzysztof Kozlowski
2025-09-24 22:58 ` [PATCH 3/9] dt-bindings: clock: qcom: Add Kaanapali Global clock controller Jingyi Wang
2025-10-12 3:06 ` Krzysztof Kozlowski
2025-09-24 22:58 ` [PATCH 4/9] clk: qcom: rpmh: Add support for Kaanapali rpmh clocks Jingyi Wang
2025-10-20 10:11 ` Aiqun(Maria) Yu
2025-10-20 10:25 ` Krzysztof Kozlowski
2025-10-20 10:59 ` Dmitry Baryshkov
2025-10-23 6:35 ` Taniya Das [this message]
2025-09-24 22:58 ` [PATCH 5/9] clk: qcom: Update TCSR clock driver for Kaanapali Jingyi Wang
2025-10-20 10:11 ` Aiqun(Maria) Yu
2025-10-20 10:27 ` Krzysztof Kozlowski
2025-10-20 11:03 ` Dmitry Baryshkov
2025-10-23 6:56 ` Taniya Das
2025-10-22 21:47 ` Bjorn Andersson
2025-09-24 22:58 ` [PATCH 6/9] clk: qcom: Add support for Global clock controller on Kaanapali Jingyi Wang
2025-09-25 21:26 ` Dmitry Baryshkov
2025-09-24 22:58 ` [PATCH 7/9] clk: qcom: clk-alpha-pll: Update the PLL support for cal_l Jingyi Wang
2025-09-25 9:30 ` Konrad Dybcio
2025-09-25 21:28 ` Dmitry Baryshkov
2025-09-24 22:59 ` [PATCH 8/9] clk: qcom: clk-alpha-pll: Add support for controlling Pongo EKO_T PLL Jingyi Wang
2025-09-25 12:46 ` Konrad Dybcio
2025-09-24 22:59 ` [PATCH 9/9] clk: qcom: clk-alpha-pll: Add support for controlling Rivian PLL Jingyi Wang
2025-09-25 12:46 ` Konrad Dybcio
2025-10-22 21:53 ` [PATCH 0/9] Add support for Clock controllers for Kaanapali Bjorn Andersson
2025-10-23 8:42 ` Taniya Das
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=09e0b94c-2bf6-4147-a831-d3b0724fc418@oss.qualcomm.com \
--to=taniya.das@oss.qualcomm.com \
--cc=aiqun.yu@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=jingyi.wang@oss.qualcomm.com \
--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_tdas@quicinc.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=tingwei.zhang@oss.qualcomm.com \
--cc=trilok.soni@oss.qualcomm.com \
--cc=yijie.yang@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