drivers/clk/qcom/clk-rpmh.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
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>
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
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
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
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
© 2016 - 2026 Red Hat, Inc.