* [PATCH v1] drivers: clk: qcom: ipq5424: fix the freq table of sdcc1_apps clock
@ 2025-03-06 11:29 Manikanta Mylavarapu
2025-03-10 10:00 ` Kathiravan Thirumoorthy
2025-03-14 20:01 ` Bjorn Andersson
0 siblings, 2 replies; 3+ messages in thread
From: Manikanta Mylavarapu @ 2025-03-06 11:29 UTC (permalink / raw)
To: andersson, mturquette, sboyd, dmitry.baryshkov, quic_srichara,
quic_varada, linux-arm-msm, linux-clk, linux-kernel
The divider values in the sdcc1_apps frequency table were incorrectly
updated, assuming the frequency of gpll2_out_main to be 1152MHz.
However, the frequency of the gpll2_out_main clock is actually 576MHz
(gpll2/2).
Due to these incorrect divider values, the sdcc1_apps clock is running
at half of the expected frequency.
Fixing the frequency table of sdcc1_apps allows the sdcc1_apps clock to
run according to the frequency plan.
Fixes: 21b5d5a4a311 ("clk: qcom: add Global Clock controller (GCC) driver for IPQ5424 SoC")
Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@quicinc.com>
---
drivers/clk/qcom/gcc-ipq5424.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/clk/qcom/gcc-ipq5424.c b/drivers/clk/qcom/gcc-ipq5424.c
index 37b1a3ff8f4e..3d42f3d85c7a 100644
--- a/drivers/clk/qcom/gcc-ipq5424.c
+++ b/drivers/clk/qcom/gcc-ipq5424.c
@@ -640,11 +640,11 @@ static struct clk_rcg2 gcc_qupv3_uart1_clk_src = {
static const struct freq_tbl ftbl_gcc_sdcc1_apps_clk_src[] = {
F(144000, P_XO, 16, 12, 125),
F(400000, P_XO, 12, 1, 5),
- F(24000000, P_XO, 1, 0, 0),
- F(48000000, P_GPLL2_OUT_MAIN, 12, 1, 2),
- F(96000000, P_GPLL2_OUT_MAIN, 6, 1, 2),
+ F(24000000, P_GPLL2_OUT_MAIN, 12, 1, 2),
+ F(48000000, P_GPLL2_OUT_MAIN, 12, 0, 0),
+ F(96000000, P_GPLL2_OUT_MAIN, 6, 0, 0),
F(177777778, P_GPLL0_OUT_MAIN, 4.5, 0, 0),
- F(192000000, P_GPLL2_OUT_MAIN, 6, 0, 0),
+ F(192000000, P_GPLL2_OUT_MAIN, 3, 0, 0),
F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
{ }
};
base-commit: 7ec162622e66a4ff886f8f28712ea1b13069e1aa
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] drivers: clk: qcom: ipq5424: fix the freq table of sdcc1_apps clock
2025-03-06 11:29 [PATCH v1] drivers: clk: qcom: ipq5424: fix the freq table of sdcc1_apps clock Manikanta Mylavarapu
@ 2025-03-10 10:00 ` Kathiravan Thirumoorthy
2025-03-14 20:01 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Kathiravan Thirumoorthy @ 2025-03-10 10:00 UTC (permalink / raw)
To: Manikanta Mylavarapu, andersson, mturquette, sboyd,
dmitry.baryshkov, quic_srichara, quic_varada, linux-arm-msm,
linux-clk, linux-kernel
On 3/6/2025 4:59 PM, Manikanta Mylavarapu wrote:
> The divider values in the sdcc1_apps frequency table were incorrectly
> updated, assuming the frequency of gpll2_out_main to be 1152MHz.
> However, the frequency of the gpll2_out_main clock is actually 576MHz
> (gpll2/2).
>
> Due to these incorrect divider values, the sdcc1_apps clock is running
> at half of the expected frequency.
>
> Fixing the frequency table of sdcc1_apps allows the sdcc1_apps clock to
> run according to the frequency plan.
>
> Fixes: 21b5d5a4a311 ("clk: qcom: add Global Clock controller (GCC) driver for IPQ5424 SoC")
> Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@quicinc.com>
Reviewed-by: Kathiravan Thirumoorthy
<kathiravan.thirumoorthy@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] drivers: clk: qcom: ipq5424: fix the freq table of sdcc1_apps clock
2025-03-06 11:29 [PATCH v1] drivers: clk: qcom: ipq5424: fix the freq table of sdcc1_apps clock Manikanta Mylavarapu
2025-03-10 10:00 ` Kathiravan Thirumoorthy
@ 2025-03-14 20:01 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2025-03-14 20:01 UTC (permalink / raw)
To: mturquette, sboyd, dmitry.baryshkov, quic_srichara, quic_varada,
linux-arm-msm, linux-clk, linux-kernel, Manikanta Mylavarapu
On Thu, 06 Mar 2025 16:59:00 +0530, Manikanta Mylavarapu wrote:
> The divider values in the sdcc1_apps frequency table were incorrectly
> updated, assuming the frequency of gpll2_out_main to be 1152MHz.
> However, the frequency of the gpll2_out_main clock is actually 576MHz
> (gpll2/2).
>
> Due to these incorrect divider values, the sdcc1_apps clock is running
> at half of the expected frequency.
>
> [...]
Applied, thanks!
[1/1] drivers: clk: qcom: ipq5424: fix the freq table of sdcc1_apps clock
commit: e9ed0ac3ccba65c17ed0d59c77a340a75abc317b
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-14 20:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-06 11:29 [PATCH v1] drivers: clk: qcom: ipq5424: fix the freq table of sdcc1_apps clock Manikanta Mylavarapu
2025-03-10 10:00 ` Kathiravan Thirumoorthy
2025-03-14 20:01 ` Bjorn Andersson
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®