
Introduce support for the Qualcomm IPQ50xx SoC. This series adds support for the following components: - minimal boot support: GCC/pinctrl/watchdog/CPUFreq/SDI (upstreamed) - USB2 (upstreamed) - Thermal/Tsens - PCIe gen2 1&2-lane PHY and controller - PWM and PWM LED - QPIC SPI NAND controller - CMN PLL Block (provider of fixed rate clocks to GCC/ethernet/more.) - Ethernet: IPQ5018 Internal GE PHY (1 gbps) - Remoteproc MPD driver for IPQ5018 (2.4G) & QCN6122 (5/6G) Wifi Co-developed-by: Ziyang Huang <hzyitc@outlook.com> Signed-off-by: Ziyang Huang <hzyitc@outlook.com> Signed-off-by: George Moussalem <george.moussalem@outlook.com> Link: https://github.com/openwrt/openwrt/pull/17182 Signed-off-by: Robert Marko <robimarko@gmail.com>
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From: Gabor Juhos <j4g8y7@gmail.com>
|
|
Subject: [PATCH] clk: qcom: apss-ipq-pll: fix PLL rate for IPQ5018
|
|
Date: Tue, 26 Mar 2024 14:34:11 +0100
|
|
|
|
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>
|
|
---
|
|
drivers/clk/qcom/apss-ipq-pll.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/clk/qcom/apss-ipq-pll.c
|
|
+++ b/drivers/clk/qcom/apss-ipq-pll.c
|
|
@@ -97,7 +97,7 @@ static struct clk_alpha_pll ipq_pll_stro
|
|
};
|
|
|
|
static const struct alpha_pll_config ipq5018_pll_config = {
|
|
- .l = 0x32,
|
|
+ .l = 0x2a,
|
|
.config_ctl_val = 0x4001075b,
|
|
.config_ctl_hi_val = 0x304,
|
|
.main_output_mask = BIT(0),
|