* [PATCH] clk: qcom: rpmh: Fix LNBBCLK3 divider for X1E80100
@ 2026-02-11 18:22 Taniya Das
2026-02-11 19:35 ` Dmitry Baryshkov
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Taniya Das @ 2026-02-11 18:22 UTC (permalink / raw)
To: Bjorn Andersson, Michael Turquette, Stephen Boyd,
Bryan O'Donoghue, Neil Armstrong, Sibi Sankar,
Rajendra Nayak
Cc: Konrad Dybcio, linux-arm-msm, linux-clk, linux-kernel,
Ajit Pandey, Imran Shaik, Jagadeesh Kona, Taniya Das
The LNBBCLK3 clock used by the UFS controller runs at 38.4 MHz.
Update the divider value to generate the correct output frequency.
Fixes: 874bc7be1e08 ("clk: qcom: rpmh: Add support for X1E80100 rpmh clocks")
Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
---
drivers/clk/qcom/clk-rpmh.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c
index 547729b1a8ee01cf28c11ee8c4bd2f36d7536e6d..6e88f0a8d9b4c014928b095882b7150cabda6895 100644
--- a/drivers/clk/qcom/clk-rpmh.c
+++ b/drivers/clk/qcom/clk-rpmh.c
@@ -378,6 +378,7 @@ DEFINE_CLK_RPMH_VRM(clk2, _a1, "clka2", 1);
DEFINE_CLK_RPMH_VRM(clk3, _a1, "clka3", 1);
DEFINE_CLK_RPMH_VRM(clk4, _a1, "clka4", 1);
DEFINE_CLK_RPMH_VRM(clk5, _a1, "clka5", 1);
+DEFINE_CLK_RPMH_VRM(clk8, _a1, "clka8", 1);
DEFINE_CLK_RPMH_VRM(clk3, _a2, "clka3", 2);
DEFINE_CLK_RPMH_VRM(clk4, _a2, "clka4", 2);
@@ -840,8 +841,8 @@ static struct clk_hw *x1e80100_rpmh_clocks[] = {
[RPMH_LN_BB_CLK1_A] = &clk_rpmh_clk6_a2_ao.hw,
[RPMH_LN_BB_CLK2] = &clk_rpmh_clk7_a2.hw,
[RPMH_LN_BB_CLK2_A] = &clk_rpmh_clk7_a2_ao.hw,
- [RPMH_LN_BB_CLK3] = &clk_rpmh_clk8_a2.hw,
- [RPMH_LN_BB_CLK3_A] = &clk_rpmh_clk8_a2_ao.hw,
+ [RPMH_LN_BB_CLK3] = &clk_rpmh_clk8_a1.hw,
+ [RPMH_LN_BB_CLK3_A] = &clk_rpmh_clk8_a1_ao.hw,
[RPMH_RF_CLK3] = &clk_rpmh_clk3_a2.hw,
[RPMH_RF_CLK3_A] = &clk_rpmh_clk3_a2_ao.hw,
[RPMH_RF_CLK4] = &clk_rpmh_clk4_a2.hw,
---
base-commit: 9152bc8cebcb14dc16b03ec81f2377ee8ce12268
change-id: 20260211-hamoa_ufs_clk8-9a7970ff90cb
Best regards,
--
Taniya Das <taniya.das@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] clk: qcom: rpmh: Fix LNBBCLK3 divider for X1E80100
2026-02-11 18:22 [PATCH] clk: qcom: rpmh: Fix LNBBCLK3 divider for X1E80100 Taniya Das
@ 2026-02-11 19:35 ` Dmitry Baryshkov
2026-02-12 10:38 ` Konrad Dybcio
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Dmitry Baryshkov @ 2026-02-11 19:35 UTC (permalink / raw)
To: Taniya Das
Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd,
Bryan O'Donoghue, Neil Armstrong, Sibi Sankar,
Rajendra Nayak, Konrad Dybcio, linux-arm-msm, linux-clk,
linux-kernel, Ajit Pandey, Imran Shaik, Jagadeesh Kona
On Wed, Feb 11, 2026 at 11:52:06PM +0530, Taniya Das wrote:
> The LNBBCLK3 clock used by the UFS controller runs at 38.4 MHz.
> Update the divider value to generate the correct output frequency.
>
> Fixes: 874bc7be1e08 ("clk: qcom: rpmh: Add support for X1E80100 rpmh clocks")
> Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
> ---
> drivers/clk/qcom/clk-rpmh.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] clk: qcom: rpmh: Fix LNBBCLK3 divider for X1E80100
2026-02-11 18:22 [PATCH] clk: qcom: rpmh: Fix LNBBCLK3 divider for X1E80100 Taniya Das
2026-02-11 19:35 ` Dmitry Baryshkov
@ 2026-02-12 10:38 ` Konrad Dybcio
2026-02-12 10:39 ` Konrad Dybcio
2026-02-18 17:16 ` Taniya Das
3 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2026-02-12 10:38 UTC (permalink / raw)
To: Taniya Das, Bjorn Andersson, Michael Turquette, Stephen Boyd,
Bryan O'Donoghue, Neil Armstrong, Sibi Sankar,
Rajendra Nayak
Cc: Konrad Dybcio, linux-arm-msm, linux-clk, linux-kernel,
Ajit Pandey, Imran Shaik, Jagadeesh Kona
On 2/11/26 7:22 PM, Taniya Das wrote:
> The LNBBCLK3 clock used by the UFS controller runs at 38.4 MHz.
> Update the divider value to generate the correct output frequency.
Does this also apply to e.g. 8550 which seems to have a similar setup?
Konrad
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: qcom: rpmh: Fix LNBBCLK3 divider for X1E80100
2026-02-11 18:22 [PATCH] clk: qcom: rpmh: Fix LNBBCLK3 divider for X1E80100 Taniya Das
2026-02-11 19:35 ` Dmitry Baryshkov
2026-02-12 10:38 ` Konrad Dybcio
@ 2026-02-12 10:39 ` Konrad Dybcio
2026-02-18 17:16 ` Taniya Das
3 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2026-02-12 10:39 UTC (permalink / raw)
To: Taniya Das, Bjorn Andersson, Michael Turquette, Stephen Boyd,
Bryan O'Donoghue, Neil Armstrong, Sibi Sankar,
Rajendra Nayak
Cc: Konrad Dybcio, linux-arm-msm, linux-clk, linux-kernel,
Ajit Pandey, Imran Shaik, Jagadeesh Kona
On 2/11/26 7:22 PM, Taniya Das wrote:
> The LNBBCLK3 clock used by the UFS controller runs at 38.4 MHz.
> Update the divider value to generate the correct output frequency.
>
> Fixes: 874bc7be1e08 ("clk: qcom: rpmh: Add support for X1E80100 rpmh clocks")
> Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] clk: qcom: rpmh: Fix LNBBCLK3 divider for X1E80100
2026-02-11 18:22 [PATCH] clk: qcom: rpmh: Fix LNBBCLK3 divider for X1E80100 Taniya Das
` (2 preceding siblings ...)
2026-02-12 10:39 ` Konrad Dybcio
@ 2026-02-18 17:16 ` Taniya Das
3 siblings, 0 replies; 5+ messages in thread
From: Taniya Das @ 2026-02-18 17:16 UTC (permalink / raw)
To: Bjorn Andersson, Michael Turquette, Stephen Boyd,
Bryan O'Donoghue, Neil Armstrong, Sibi Sankar,
Rajendra Nayak
Cc: Konrad Dybcio, linux-arm-msm, linux-clk, linux-kernel,
Ajit Pandey, Imran Shaik, Jagadeesh Kona
On 2/11/2026 11:52 PM, Taniya Das wrote:
> DEFINE_CLK_RPMH_VRM(clk5, _a1, "clka5", 1);
> +DEFINE_CLK_RPMH_VRM(clk8, _a1, "clka8", 1);
>
> DEFINE_CLK_RPMH_VRM(clk3, _a2, "clka3", 2);
> DEFINE_CLK_RPMH_VRM(clk4, _a2, "clka4", 2);
> @@ -840,8 +841,8 @@ static struct clk_hw *x1e80100_rpmh_clocks[] = {
> [RPMH_LN_BB_CLK1_A] = &clk_rpmh_clk6_a2_ao.hw,
> [RPMH_LN_BB_CLK2] = &clk_rpmh_clk7_a2.hw,
> [RPMH_LN_BB_CLK2_A] = &clk_rpmh_clk7_a2_ao.hw,
> - [RPMH_LN_BB_CLK3] = &clk_rpmh_clk8_a2.hw,
> - [RPMH_LN_BB_CLK3_A] = &clk_rpmh_clk8_a2_ao.hw,
> + [RPMH_LN_BB_CLK3] = &clk_rpmh_clk8_a1.hw,
> + [RPMH_LN_BB_CLK3_A] = &clk_rpmh_clk8_a1_ao.hw,
> [RPMH_RF_CLK3] = &clk_rpmh_clk3_a2.hw,
> [RPMH_RF_CLK3_A] = &clk_rpmh_clk3_a2_ao.hw,
> [RPMH_RF_CLK4] = &clk_rpmh_clk4_a2.hw,
Bjorn, request is to drop picking this change. This fix was identified
as part of downstream validations, but what I realised late was the DTSI
of hamoa upstream and downstream had a difference in the way the
xo_board frequency was defined. Upstream DTSI xo_board freq = 76.8MHz
and downstream DTSI xo_board = 38.4MHz.
The xo_board frequency seems incorrect(upstream) when I mapped it to HW
design and needs a much more involved change in hamoa DTSI as well as
the RPMH clocks.
I will send out a v2 patch later which should take care to fix.
--
Thanks,
Taniya Das
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-02-18 17:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-11 18:22 [PATCH] clk: qcom: rpmh: Fix LNBBCLK3 divider for X1E80100 Taniya Das
2026-02-11 19:35 ` Dmitry Baryshkov
2026-02-12 10:38 ` Konrad Dybcio
2026-02-12 10:39 ` Konrad Dybcio
2026-02-18 17:16 ` Taniya Das
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®