* [PATCH v2 0/3] Fix the ENCP clock select field on GXBB, G12A and S4
@ 2026-10-29 18:37 Carlo Caione
2026-10-29 18:37 ` [PATCH v2 1/3] clk: meson: gxbb: fix ENCP clock selection Carlo Caione
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Carlo Caione @ 2026-10-29 18:37 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Stephen Boyd, Brian Masney,
Kevin Hilman, Martin Blumenstingl, Jian Hu, Yu Tu
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
Carlo Caione, Chuan Liu
The GXBB, G12A and S4 clock drivers place the ENCP clock select at
VID_CLK_DIV[23:20] instead of [27:24]. Fix it in the three drivers.
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
---
Changes in v2:
- Reword the S4 commit message and the cover letter: S4 has no ENCT
encoder (Chuan, Jerome)
- Add Chuan's Reviewed-by to the S4 patch
- Link to v1: https://patch.msgid.link/20261022-upstream-clk-encp-sel-shift-v1-0-f1b1e10a3d84@baylibre.com
---
Carlo Caione (3):
clk: meson: gxbb: fix ENCP clock selection
clk: meson: g12a: fix ENCP clock selection
clk: meson: s4: fix ENCP clock selection
drivers/clk/meson/g12a.c | 2 +-
drivers/clk/meson/gxbb.c | 2 +-
drivers/clk/meson/s4-peripherals.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
base-commit: 363f97a1ce635b86be7fd263d56a040fbd87bdbb
change-id: 20261022-upstream-clk-encp-sel-shift-fde7ac3b8ce7
Best regards,
--
Carlo Caione <ccaione@baylibre.com>
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/3] clk: meson: gxbb: fix ENCP clock selection
2026-10-29 18:37 [PATCH v2 0/3] Fix the ENCP clock select field on GXBB, G12A and S4 Carlo Caione
@ 2026-10-29 18:37 ` Carlo Caione
2026-10-29 18:37 ` [PATCH v2 2/3] clk: meson: g12a: " Carlo Caione
2026-10-29 18:37 ` [PATCH v2 3/3] clk: meson: s4: " Carlo Caione
2 siblings, 0 replies; 4+ messages in thread
From: Carlo Caione @ 2026-10-29 18:37 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Stephen Boyd, Brian Masney,
Kevin Hilman, Martin Blumenstingl, Jian Hu, Yu Tu
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, Carlo Caione
The ENCP clock uses ENCT's settings by mistake. Change the selector
from bits [23:20] to [27:24].
See the S905X datasheet revision 0.2, page 70.
Fixes: a8080f247bcd ("clk: meson-gxbb: Add video clocks")
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
---
drivers/clk/meson/gxbb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c
index 7a7b104182ff..b483164955b9 100644
--- a/drivers/clk/meson/gxbb.c
+++ b/drivers/clk/meson/gxbb.c
@@ -2370,7 +2370,7 @@ static struct clk_regmap gxbb_cts_encp_sel = {
.data = &(struct clk_regmap_mux_data){
.offset = HHI_VID_CLK_DIV,
.mask = 0xf,
- .shift = 20,
+ .shift = 24,
.table = gxbb_cts_parents_val_table,
},
.hw.init = &(struct clk_init_data){
--
2.56.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 2/3] clk: meson: g12a: fix ENCP clock selection
2026-10-29 18:37 [PATCH v2 0/3] Fix the ENCP clock select field on GXBB, G12A and S4 Carlo Caione
2026-10-29 18:37 ` [PATCH v2 1/3] clk: meson: gxbb: fix ENCP clock selection Carlo Caione
@ 2026-10-29 18:37 ` Carlo Caione
2026-10-29 18:37 ` [PATCH v2 3/3] clk: meson: s4: " Carlo Caione
2 siblings, 0 replies; 4+ messages in thread
From: Carlo Caione @ 2026-10-29 18:37 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Stephen Boyd, Brian Masney,
Kevin Hilman, Martin Blumenstingl, Jian Hu, Yu Tu
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, Carlo Caione
The ENCP clock uses ENCT's settings by mistake. Change the selector
from bits [23:20] to [27:24].
See the S905D3 datasheet 0.2, Table 6-109.
Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller")
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
---
drivers/clk/meson/g12a.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c
index d0d4c7b6dc82..fdf41572be84 100644
--- a/drivers/clk/meson/g12a.c
+++ b/drivers/clk/meson/g12a.c
@@ -3666,7 +3666,7 @@ static struct clk_regmap g12a_cts_encp_sel = {
.data = &(struct clk_regmap_mux_data){
.offset = HHI_VID_CLK_DIV,
.mask = 0xf,
- .shift = 20,
+ .shift = 24,
.table = g12a_cts_parents_val_table,
},
.hw.init = &(struct clk_init_data){
--
2.56.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 3/3] clk: meson: s4: fix ENCP clock selection
2026-10-29 18:37 [PATCH v2 0/3] Fix the ENCP clock select field on GXBB, G12A and S4 Carlo Caione
2026-10-29 18:37 ` [PATCH v2 1/3] clk: meson: gxbb: fix ENCP clock selection Carlo Caione
2026-10-29 18:37 ` [PATCH v2 2/3] clk: meson: g12a: " Carlo Caione
@ 2026-10-29 18:37 ` Carlo Caione
2 siblings, 0 replies; 4+ messages in thread
From: Carlo Caione @ 2026-10-29 18:37 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Stephen Boyd, Brian Masney,
Kevin Hilman, Martin Blumenstingl, Jian Hu, Yu Tu
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
Carlo Caione, Chuan Liu
The ENCP clock uses the wrong selector bits. Change them from [23:20]
to [27:24].
See the S905Y4 datasheet v0.7, Table 7-58.
Fixes: 57b55c76aaf1 ("clk: meson: S4: add support for Amlogic S4 SoC peripheral clock controller")
Reviewed-by: Chuan Liu <chuan.liu@amlogic.com>
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
---
drivers/clk/meson/s4-peripherals.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/meson/s4-peripherals.c b/drivers/clk/meson/s4-peripherals.c
index ba41fcd90588..33573eb85927 100644
--- a/drivers/clk/meson/s4-peripherals.c
+++ b/drivers/clk/meson/s4-peripherals.c
@@ -1114,7 +1114,7 @@ static struct clk_regmap s4_cts_encp_sel = {
.data = &(struct clk_regmap_mux_data){
.offset = CLKCTRL_VID_CLK_DIV,
.mask = 0xf,
- .shift = 20,
+ .shift = 24,
.table = s4_cts_parents_val_table,
},
.hw.init = &(struct clk_init_data){
--
2.56.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-10-29 18:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-29 18:37 [PATCH v2 0/3] Fix the ENCP clock select field on GXBB, G12A and S4 Carlo Caione
2026-10-29 18:37 ` [PATCH v2 1/3] clk: meson: gxbb: fix ENCP clock selection Carlo Caione
2026-10-29 18:37 ` [PATCH v2 2/3] clk: meson: g12a: " Carlo Caione
2026-10-29 18:37 ` [PATCH v2 3/3] clk: meson: s4: " Carlo Caione
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®