* [PATCH 0/3] Fix the ENCP clock select field on GXBB, G12A and S4
@ 2026-10-22 20:10 Carlo Caione
2026-10-22 20:10 ` [PATCH 1/3] clk: meson: gxbb: fix ENCP clock selection Carlo Caione
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Carlo Caione @ 2026-10-22 20:10 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 GXBB, G12A and S4 clock drivers describe the ENCP clock select with
the field of the ENCT one, VID_CLK_DIV[23:20], instead of [27:24]. Fix
it in the three drivers.
Signed-off-by: Carlo Caione <ccaione@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>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] clk: meson: gxbb: fix ENCP clock selection
2026-10-22 20:10 [PATCH 0/3] Fix the ENCP clock select field on GXBB, G12A and S4 Carlo Caione
@ 2026-10-22 20:10 ` Carlo Caione
2026-10-22 20:10 ` [PATCH 2/3] clk: meson: g12a: " Carlo Caione
2026-10-22 20:10 ` [PATCH 3/3] clk: meson: s4: " Carlo Caione
2 siblings, 0 replies; 5+ messages in thread
From: Carlo Caione @ 2026-10-22 20:10 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/3] clk: meson: g12a: fix ENCP clock selection
2026-10-22 20:10 [PATCH 0/3] Fix the ENCP clock select field on GXBB, G12A and S4 Carlo Caione
2026-10-22 20:10 ` [PATCH 1/3] clk: meson: gxbb: fix ENCP clock selection Carlo Caione
@ 2026-10-22 20:10 ` Carlo Caione
2026-10-22 20:10 ` [PATCH 3/3] clk: meson: s4: " Carlo Caione
2 siblings, 0 replies; 5+ messages in thread
From: Carlo Caione @ 2026-10-22 20:10 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 3/3] clk: meson: s4: fix ENCP clock selection
2026-10-22 20:10 [PATCH 0/3] Fix the ENCP clock select field on GXBB, G12A and S4 Carlo Caione
2026-10-22 20:10 ` [PATCH 1/3] clk: meson: gxbb: fix ENCP clock selection Carlo Caione
2026-10-22 20:10 ` [PATCH 2/3] clk: meson: g12a: " Carlo Caione
@ 2026-10-22 20:10 ` Carlo Caione
2026-10-23 6:00 ` Chuan Liu
2 siblings, 1 reply; 5+ messages in thread
From: Carlo Caione @ 2026-10-22 20:10 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 S905Y4 datasheet v0.7, Table 7-58.
Fixes: 57b55c76aaf1 ("clk: meson: S4: add support for Amlogic S4 SoC peripheral clock controller")
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 3/3] clk: meson: s4: fix ENCP clock selection
2026-10-22 20:10 ` [PATCH 3/3] clk: meson: s4: " Carlo Caione
@ 2026-10-23 6:00 ` Chuan Liu
0 siblings, 0 replies; 5+ messages in thread
From: Chuan Liu @ 2026-10-23 6:00 UTC (permalink / raw)
To: Carlo Caione, 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
Hi Carlo,
Thanks for the fix.
On 10/23/2026 4:10 AM, Carlo Caione wrote:
> [????????? ccaione@baylibre.com ????????? https://aka.ms/LearnAboutSenderIdentification?????????????]
>
> [ EXTERNAL EMAIL ]
>
> The ENCP clock uses ENCT's settings by mistake. Change the selector
> from bits [23:20] to [27:24].
Yes, you are right.
By the way, S4 does not support the ENCT (Encoder for TV Panel) so the
driver does not define the associated clocks.
>
> See the S905Y4 datasheet v0.7, Table 7-58.
>
> Fixes: 57b55c76aaf1 ("clk: meson: S4: add support for Amlogic S4 SoC peripheral clock controller")
> Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Reviewed-by: Chuan Liu <chuan.liu@amlogic.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
--
Best regards,
Chuan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-10-23 6:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22 20:10 [PATCH 0/3] Fix the ENCP clock select field on GXBB, G12A and S4 Carlo Caione
2026-10-22 20:10 ` [PATCH 1/3] clk: meson: gxbb: fix ENCP clock selection Carlo Caione
2026-10-22 20:10 ` [PATCH 2/3] clk: meson: g12a: " Carlo Caione
2026-10-22 20:10 ` [PATCH 3/3] clk: meson: s4: " Carlo Caione
2026-10-23 6:00 ` Chuan Liu
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®