clk: ti: clk-k3-pll: Add additional robustness steps to the PLL sequence
authorManorit Chawdhry <m-chawdhry@ti.com>
Thu, 21 Nov 2024 12:02:53 +0000 (17:32 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 6 Dec 2024 22:38:16 +0000 (16:38 -0600)
commit79d91e77f4c23c052f086e920311f5a3c703cfc0
treefcd340b80b4648809ebe7559840ec94a76542aa4
parentd6cd643c4e6182f1bf3ae6c3db8a22913c752bc5
clk: ti: clk-k3-pll: Add additional robustness steps to the PLL sequence

Based on the recommendation from HW team make modifications to
the sequence for more robustness.

- Unlock the PLL registers
- Enable external bypass
- Disable the PLL
- Program pllm and pllf
- Program Ref divider
- Enable other PLL controls like DSM_EN, DAC_EN,etc
- Enable calibration if available
- Enable PLL
- Wait for PLL lock and Calibration lock
- Remove external bypass

Re-write the full sequence from scratch as the previous sequence was way
off and keep it in a single commit for bisectability.

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
drivers/clk/ti/clk-k3-pll.c