clk: qcom: apss-ipq-pll: fix PLL rate for IPQ5018
authorGabor Juhos <j4g8y7@gmail.com>
Tue, 26 Mar 2024 13:34:11 +0000 (14:34 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 8 May 2024 02:10:17 +0000 (21:10 -0500)
commitc55f7ee2ec239b6afd8639c7ac06493876deb0ea
treed70975f5388589dbb186d4b4bbce755e1701e0e4
parent07fb0a76bb757990b99fc2ab78ad7d1709cc441d
clk: qcom: apss-ipq-pll: fix PLL rate for IPQ5018

According to ipq5018.dtsi, the maximum supported rate by the
CPU is 1.008 GHz on the IPQ5018 platform, however the current
configuration of the PLL results in 1.2 GHz rate.

Change the 'L' value in the PLL configuration to limit the
rate to 1.008 GHz. The downstream kernel also uses the same
value [1]. Also add a comment to indicate the desired
frequency.

[1] https://git.codelinaro.org/clo/qsdk/oss/kernel/linux-ipq-5.4/-/blob/NHSS.QSDK.12.4/drivers/clk/qcom/apss-ipq5018.c?ref_type=heads#L151

Fixes: 50492f929486 ("clk: qcom: apss-ipq-pll: add support for IPQ5018")
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240326-fix-ipq5018-apss-pll-rate-v1-1-82ab31c9da7e@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/apss-ipq-pll.c