Skip to contentSkip to conversation

clk: meson: g12a: fix gp0 and hifi ranges

PATCH Superseded Jerome Brunet 2 participants 3 messages Mar 25, 2019 – Mar 29, 2019

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jerome Brunet

author maintainer
#0 lore raw

PATCH 1/1 clk: meson: g12a: fix gp0 and hifi ranges

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, so lets use this value until we have a good reason to put something else.

Fixes 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller")
---
 drivers/clk/meson/g12a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/meson/g12a.c +1 -1
index 0e1ce8c03259..d3f53a9b97dc 100644
@@ -151,7 +151,7 @@ static struct clk_regmap g12a_sys_pll = {
 };
 
 static const struct pll_mult_range g12a_gp0_pll_mult_range = {
-	.min = 55,
+	.min = 60,
 	.max = 255,
 };
 
Signature · 1 line
2.20.1
Acked-by on v1 1/1
#1 lore raw
Quoted 17 lines · Jerome Brunet

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, so lets use this value until we have a good reason to put something else.

Fixes 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller")
---
 drivers/clk/meson/g12a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/meson/g12a.c +0 -0
index 0e1ce8c03259..d3f53a9b97dc 100644

drivers/clk/meson/g12a.c static struct clk_regmap g12a_sys_pll = { · line 157

Quoted 8 lines
drivers/clk/meson/g12a.c +1 -1
@@ -151,7 +151,7 @@ static struct clk_regmap g12a_sys_pll = {
 };
 
 static const struct pll_mult_range g12a_gp0_pll_mult_range = {
-	.min = 55,
+	.min = 60,
 	.max = 255,
 };
 

And applied to fixes/drivers !

Neil

#2 lore raw
Quoted 29 lines · Neil Armstrong
Quoted 17 lines · Jerome Brunet

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, so lets use this value until we have a good reason to put something else.

Fixes 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller")
---
 drivers/clk/meson/g12a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/meson/g12a.c +0 -0
index 0e1ce8c03259..d3f53a9b97dc 100644

drivers/clk/meson/g12a.c static struct clk_regmap g12a_sys_pll = { · line 157

Quoted 8 lines
drivers/clk/meson/g12a.c +1 -1
@@ -151,7 +151,7 @@ static struct clk_regmap g12a_sys_pll = {
 };
 
 static const struct pll_mult_range g12a_gp0_pll_mult_range = {
-	.min = 55,
+	.min = 60,
 	.max = 255,
 };
 
Quoted 4 lines

And applied to fixes/drivers !

Neil

Seems this will need more work,
unapplied from fixes/drivers

Neil