clk: meson: g12a: fix gp0 and hifi ranges
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 29 Apr 2021 09:03:25 +0000 (11:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:16 +0000 (16:56 +0200)
commit28b3837b405fb517be5cb16b820f094bddd2bf71
tree09a504ac5888525fed7ccc30cd3bc9b578aa9a39
parent27e9e0c4681633c1108dc2c0ad982606cb442724
clk: meson: g12a: fix gp0 and hifi ranges

[ Upstream commit bc794f8c56abddf709f1f84fcb2a3c9e7d9cc9b4 ]

While some SoC samples are able to lock with a PLL factor of 55, others
samples can't. ATM, a minimum of 60 appears to work on all the samples
I have tried.

Even with 60, it sometimes takes a long time for the PLL to eventually
lock. The documentation says that the minimum rate of these PLLs DCO
should be 3GHz, a factor of 125. Let's use that to be on the safe side.

With factor range changed, the PLL seems to lock quickly (enough) so far.
It is still unclear if the range was the only reason for the delay.

Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20210429090325.60970-1-jbrunet@baylibre.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/meson/g12a.c