[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250814200953.1969944-1-da@libre.computer>
Date: Thu, 14 Aug 2025 16:09:53 -0400
From: Da Xue <da@...re.computer>
To: Neil Armstrong <neil.armstrong@...aro.org>,
Jerome Brunet <jbrunet@...libre.com>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Kevin Hilman <khilman@...libre.com>,
Martin Blumenstingl <martin.blumenstingl@...glemail.com>
Cc: Da Xue <da@...re.computer>,
linux-amlogic@...ts.infradead.org,
linux-clk@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] clk: meson-g12a: fix bit range for fixed sys and hifi pll
The bit range 17:0 does not match the datasheet for A311D / S905D3.
Change the bit range to 19:0 for FIX and HIFI PLLs to match datasheet.
There's no frac for sys pll so add that as well.
Signed-off-by: Da Xue <da@...re.computer>
---
drivers/clk/meson/g12a.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c
index 66f0e817e416..f78cca619ca5 100644
--- a/drivers/clk/meson/g12a.c
+++ b/drivers/clk/meson/g12a.c
@@ -157,7 +157,7 @@ static struct clk_regmap g12a_fixed_pll_dco = {
.frac = {
.reg_off = HHI_FIX_PLL_CNTL1,
.shift = 0,
- .width = 17,
+ .width = 19,
},
.l = {
.reg_off = HHI_FIX_PLL_CNTL0,
@@ -223,6 +223,11 @@ static struct clk_regmap g12a_sys_pll_dco = {
.shift = 10,
.width = 5,
},
+ .frac = {
+ .reg_off = HHI_SYS_PLL_CNTL1,
+ .shift = 0,
+ .width = 19,
+ },
.l = {
.reg_off = HHI_SYS_PLL_CNTL0,
.shift = 31,
@@ -1901,7 +1906,7 @@ static struct clk_regmap g12a_hifi_pll_dco = {
.frac = {
.reg_off = HHI_HIFI_PLL_CNTL1,
.shift = 0,
- .width = 17,
+ .width = 19,
},
.l = {
.reg_off = HHI_HIFI_PLL_CNTL0,
--
2.47.2
Powered by blists - more mailing lists