[PW_SID:1139870] clk: spacemit: fix PLL init and add K3 1.8 GHz rates - #2409
[PW_SID:1139870] clk: spacemit: fix PLL init and add K3 1.8 GHz rates#2409linux-riscv-bot wants to merge 3 commits into
Conversation
The PLL and PLLA init callbacks gate off and reprogram a PLL when its firmware configuration is absent from the rate table. However, they leave the PLL gated off after updating the registers. Re-enable the PLL to complete the sequence and propagate any lock timeout to clock registration. Fixes: 1b72c59 ("clk: spacemit: Add clock support for SpacemiT K1 SoC") Fixes: 3a08623 ("clk: spacemit: ccu_pll: add plla type clock") Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The K3 SoC may not remain stable when its A100 CPU clusters operate persistently at 2 GHz. Updated U-Boot firmware therefore configures their C2 and C3 clock domains at 1.8 GHz during early initialization. PLL5 feeds C2 and PLL8 feeds C3, but 2 GHz is currently the only entry in both rate tables. Add 1.8 GHz as the first entry in the PLL5 and PLL8 rate tables, switching the driver default from 2 GHz to 1.8 GHz. Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[1/2] clk: spacemit: re-enable PLLs after init" |
|
Patch 1: "[1/2] clk: spacemit: re-enable PLLs after init" |
|
Patch 1: "[1/2] clk: spacemit: re-enable PLLs after init" |
|
Patch 1: "[1/2] clk: spacemit: re-enable PLLs after init" |
|
Patch 1: "[1/2] clk: spacemit: re-enable PLLs after init" |
|
Patch 1: "[1/2] clk: spacemit: re-enable PLLs after init" |
|
Patch 1: "[1/2] clk: spacemit: re-enable PLLs after init" |
|
Patch 1: "[1/2] clk: spacemit: re-enable PLLs after init" |
|
Patch 1: "[1/2] clk: spacemit: re-enable PLLs after init" |
|
Patch 1: "[1/2] clk: spacemit: re-enable PLLs after init" |
|
Patch 1: "[1/2] clk: spacemit: re-enable PLLs after init" |
|
Patch 1: "[1/2] clk: spacemit: re-enable PLLs after init" |
|
Patch 2: "[2/2] clk: spacemit: k3: add 1.8 GHz PLL5 and PLL8 rates" |
|
Patch 2: "[2/2] clk: spacemit: k3: add 1.8 GHz PLL5 and PLL8 rates" |
|
Patch 2: "[2/2] clk: spacemit: k3: add 1.8 GHz PLL5 and PLL8 rates" |
|
Patch 2: "[2/2] clk: spacemit: k3: add 1.8 GHz PLL5 and PLL8 rates" |
|
Patch 2: "[2/2] clk: spacemit: k3: add 1.8 GHz PLL5 and PLL8 rates" |
|
Patch 2: "[2/2] clk: spacemit: k3: add 1.8 GHz PLL5 and PLL8 rates" |
|
Patch 2: "[2/2] clk: spacemit: k3: add 1.8 GHz PLL5 and PLL8 rates" |
|
Patch 2: "[2/2] clk: spacemit: k3: add 1.8 GHz PLL5 and PLL8 rates" |
|
Patch 2: "[2/2] clk: spacemit: k3: add 1.8 GHz PLL5 and PLL8 rates" |
|
Patch 2: "[2/2] clk: spacemit: k3: add 1.8 GHz PLL5 and PLL8 rates" |
|
Patch 2: "[2/2] clk: spacemit: k3: add 1.8 GHz PLL5 and PLL8 rates" |
|
Patch 2: "[2/2] clk: spacemit: k3: add 1.8 GHz PLL5 and PLL8 rates" |
abf8962 to
9fa746d
Compare
PR for series 1139870 applied to workflow__riscv__fixes
Name: clk: spacemit: fix PLL init and add K3 1.8 GHz rates
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1139870
Version: 1