* [PATCH 0/2] Add Amlogic S4 audio clock controller support.
@ 2026-11-27 9:11 ` Jiebing Chen
0 siblings, 0 replies; 15+ messages in thread
From: Jiebing Chen via B4 Relay @ 2026-11-27 9:11 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
devicetree, Jiebing Chen
S4 uses the existing AXG audio clock driver and reuses the SM1 and
G12A clock hardware. Pad clock and data selection is done by pinmux,
so those pad clocks are not registered. The controller has an internal
reset line, like G12A and SM1, and an audio power domain that must be
enabled before use. The new compatible is amlogic,s4-audio-clkc;
power-domains is required for S4 and forbidden for the other
compatibles.
Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com>
---
Jiebing Chen (2):
clk: meson: axg_audio: add S4 support
ASoC:dt-bindings:clock: Add audio power domain for S4 soc
.../bindings/clock/amlogic,axg-audio-clkc.yaml | 17 +++
drivers/clk/meson/axg-audio.c | 165 +++++++++++++++++++++
2 files changed, 182 insertions(+)
---
base-commit: a0c666c25aeefd16f4b088c6549a6fb6b65a8a1d
change-id: 20261127-clock_audio-76eed7ee7ca2
Best regards,
--
Jiebing Chen <jiebing.chen@amlogic.com>
^ permalink raw reply [flat|nested] 15+ messages in thread* [PATCH 0/2] Add Amlogic S4 audio clock controller support. @ 2026-11-27 9:11 ` Jiebing Chen 0 siblings, 0 replies; 15+ messages in thread From: Jiebing Chen via B4 Relay @ 2026-11-27 9:11 UTC (permalink / raw) To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd, Kevin Hilman, Martin Blumenstingl, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, devicetree, Jiebing Chen S4 uses the existing AXG audio clock driver and reuses the SM1 and G12A clock hardware. Pad clock and data selection is done by pinmux, so those pad clocks are not registered. The controller has an internal reset line, like G12A and SM1, and an audio power domain that must be enabled before use. The new compatible is amlogic,s4-audio-clkc; power-domains is required for S4 and forbidden for the other compatibles. Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> --- Jiebing Chen (2): clk: meson: axg_audio: add S4 support ASoC:dt-bindings:clock: Add audio power domain for S4 soc .../bindings/clock/amlogic,axg-audio-clkc.yaml | 17 +++ drivers/clk/meson/axg-audio.c | 165 +++++++++++++++++++++ 2 files changed, 182 insertions(+) --- base-commit: a0c666c25aeefd16f4b088c6549a6fb6b65a8a1d change-id: 20261127-clock_audio-76eed7ee7ca2 Best regards, -- Jiebing Chen <jiebing.chen@amlogic.com> _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 0/2] Add Amlogic S4 audio clock controller support. @ 2026-11-27 9:11 ` Jiebing Chen 0 siblings, 0 replies; 15+ messages in thread From: Jiebing Chen @ 2026-11-27 9:11 UTC (permalink / raw) To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd, Kevin Hilman, Martin Blumenstingl, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, devicetree, Jiebing Chen S4 uses the existing AXG audio clock driver and reuses the SM1 and G12A clock hardware. Pad clock and data selection is done by pinmux, so those pad clocks are not registered. The controller has an internal reset line, like G12A and SM1, and an audio power domain that must be enabled before use. The new compatible is amlogic,s4-audio-clkc; power-domains is required for S4 and forbidden for the other compatibles. Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> --- Jiebing Chen (2): clk: meson: axg_audio: add S4 support ASoC:dt-bindings:clock: Add audio power domain for S4 soc .../bindings/clock/amlogic,axg-audio-clkc.yaml | 17 +++ drivers/clk/meson/axg-audio.c | 165 +++++++++++++++++++++ 2 files changed, 182 insertions(+) --- base-commit: a0c666c25aeefd16f4b088c6549a6fb6b65a8a1d change-id: 20261127-clock_audio-76eed7ee7ca2 Best regards, -- Jiebing Chen <jiebing.chen@amlogic.com> ^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 1/2] clk: meson: axg_audio: add S4 support 2026-11-27 9:11 ` Jiebing Chen (?) @ 2026-11-27 9:11 ` Jiebing Chen -1 siblings, 0 replies; 15+ messages in thread From: Jiebing Chen via B4 Relay @ 2026-11-27 9:11 UTC (permalink / raw) To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd, Kevin Hilman, Martin Blumenstingl, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, devicetree, Jiebing Chen From: Jiebing Chen <jiebing.chen@amlogic.com> Add S4 support the axg audio clock controllers, Compared with the previous version, the selection of the audio's clock and data pad will be designed in the form of pinmux control. The purpose of doing this is to distinguish between clock control and pin control selection. Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> --- drivers/clk/meson/axg-audio.c | 165 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) diff --git a/drivers/clk/meson/axg-audio.c b/drivers/clk/meson/axg-audio.c index fd7eca652261..ab8c05b0509e 100644 --- a/drivers/clk/meson/axg-audio.c +++ b/drivers/clk/meson/axg-audio.c @@ -1150,6 +1150,159 @@ static struct clk_hw *g12a_audio_hw_clks[] = { [AUD_CLKID_TOP] = &axg_aud_top, }; +/* + * Array of all S4 clocks provided by this provider + * The input clocks of the controller will be populated at runtime + */ +static struct clk_hw *s4_audio_hw_clks[] = { + [AUD_CLKID_DDR_ARB] = &ddr_arb.hw, + [AUD_CLKID_PDM] = &pdm.hw, + [AUD_CLKID_TDMIN_A] = &tdmin_a.hw, + [AUD_CLKID_TDMIN_B] = &tdmin_b.hw, + [AUD_CLKID_TDMIN_C] = &tdmin_c.hw, + [AUD_CLKID_TDMIN_LB] = &tdmin_lb.hw, + [AUD_CLKID_TDMOUT_A] = &tdmout_a.hw, + [AUD_CLKID_TDMOUT_B] = &tdmout_b.hw, + [AUD_CLKID_TDMOUT_C] = &tdmout_c.hw, + [AUD_CLKID_FRDDR_A] = &frddr_a.hw, + [AUD_CLKID_FRDDR_B] = &frddr_b.hw, + [AUD_CLKID_FRDDR_C] = &frddr_c.hw, + [AUD_CLKID_TODDR_A] = &toddr_a.hw, + [AUD_CLKID_TODDR_B] = &toddr_b.hw, + [AUD_CLKID_TODDR_C] = &toddr_c.hw, + [AUD_CLKID_LOOPBACK] = &loopback.hw, + [AUD_CLKID_SPDIFIN] = &spdifin.hw, + [AUD_CLKID_SPDIFOUT] = &spdifout.hw, + [AUD_CLKID_RESAMPLE] = &resample.hw, + [AUD_CLKID_SPDIFOUT_B] = &spdifout_b.hw, + [AUD_CLKID_MST_A_MCLK_SEL] = &sm1_mst_a_mclk_sel.hw, + [AUD_CLKID_MST_B_MCLK_SEL] = &sm1_mst_b_mclk_sel.hw, + [AUD_CLKID_MST_C_MCLK_SEL] = &sm1_mst_c_mclk_sel.hw, + [AUD_CLKID_MST_D_MCLK_SEL] = &sm1_mst_d_mclk_sel.hw, + [AUD_CLKID_MST_E_MCLK_SEL] = &sm1_mst_e_mclk_sel.hw, + [AUD_CLKID_MST_F_MCLK_SEL] = &sm1_mst_f_mclk_sel.hw, + [AUD_CLKID_MST_A_MCLK_DIV] = &sm1_mst_a_mclk_div.hw, + [AUD_CLKID_MST_B_MCLK_DIV] = &sm1_mst_b_mclk_div.hw, + [AUD_CLKID_MST_C_MCLK_DIV] = &sm1_mst_c_mclk_div.hw, + [AUD_CLKID_MST_D_MCLK_DIV] = &sm1_mst_d_mclk_div.hw, + [AUD_CLKID_MST_E_MCLK_DIV] = &sm1_mst_e_mclk_div.hw, + [AUD_CLKID_MST_F_MCLK_DIV] = &sm1_mst_f_mclk_div.hw, + [AUD_CLKID_MST_A_MCLK] = &sm1_mst_a_mclk.hw, + [AUD_CLKID_MST_B_MCLK] = &sm1_mst_b_mclk.hw, + [AUD_CLKID_MST_C_MCLK] = &sm1_mst_c_mclk.hw, + [AUD_CLKID_MST_D_MCLK] = &sm1_mst_d_mclk.hw, + [AUD_CLKID_MST_E_MCLK] = &sm1_mst_e_mclk.hw, + [AUD_CLKID_MST_F_MCLK] = &sm1_mst_f_mclk.hw, + [AUD_CLKID_SPDIFOUT_CLK_SEL] = &spdifout_clk_sel.hw, + [AUD_CLKID_SPDIFOUT_CLK_DIV] = &spdifout_clk_div.hw, + [AUD_CLKID_SPDIFOUT_CLK] = &spdifout_clk.hw, + [AUD_CLKID_SPDIFOUT_B_CLK_SEL] = &spdifout_b_clk_sel.hw, + [AUD_CLKID_SPDIFOUT_B_CLK_DIV] = &spdifout_b_clk_div.hw, + [AUD_CLKID_SPDIFOUT_B_CLK] = &spdifout_b_clk.hw, + [AUD_CLKID_SPDIFIN_CLK_SEL] = &spdifin_clk_sel.hw, + [AUD_CLKID_SPDIFIN_CLK_DIV] = &spdifin_clk_div.hw, + [AUD_CLKID_SPDIFIN_CLK] = &spdifin_clk.hw, + [AUD_CLKID_PDM_DCLK_SEL] = &pdm_dclk_sel.hw, + [AUD_CLKID_PDM_DCLK_DIV] = &pdm_dclk_div.hw, + [AUD_CLKID_PDM_DCLK] = &pdm_dclk.hw, + [AUD_CLKID_PDM_SYSCLK_SEL] = &pdm_sysclk_sel.hw, + [AUD_CLKID_PDM_SYSCLK_DIV] = &pdm_sysclk_div.hw, + [AUD_CLKID_PDM_SYSCLK] = &pdm_sysclk.hw, + [AUD_CLKID_MST_A_SCLK_PRE_EN] = &mst_a_sclk_pre_en.hw, + [AUD_CLKID_MST_B_SCLK_PRE_EN] = &mst_b_sclk_pre_en.hw, + [AUD_CLKID_MST_C_SCLK_PRE_EN] = &mst_c_sclk_pre_en.hw, + [AUD_CLKID_MST_D_SCLK_PRE_EN] = &mst_d_sclk_pre_en.hw, + [AUD_CLKID_MST_E_SCLK_PRE_EN] = &mst_e_sclk_pre_en.hw, + [AUD_CLKID_MST_F_SCLK_PRE_EN] = &mst_f_sclk_pre_en.hw, + [AUD_CLKID_MST_A_SCLK_DIV] = &mst_a_sclk_div.hw, + [AUD_CLKID_MST_B_SCLK_DIV] = &mst_b_sclk_div.hw, + [AUD_CLKID_MST_C_SCLK_DIV] = &mst_c_sclk_div.hw, + [AUD_CLKID_MST_D_SCLK_DIV] = &mst_d_sclk_div.hw, + [AUD_CLKID_MST_E_SCLK_DIV] = &mst_e_sclk_div.hw, + [AUD_CLKID_MST_F_SCLK_DIV] = &mst_f_sclk_div.hw, + [AUD_CLKID_MST_A_SCLK_POST_EN] = &mst_a_sclk_post_en.hw, + [AUD_CLKID_MST_B_SCLK_POST_EN] = &mst_b_sclk_post_en.hw, + [AUD_CLKID_MST_C_SCLK_POST_EN] = &mst_c_sclk_post_en.hw, + [AUD_CLKID_MST_D_SCLK_POST_EN] = &mst_d_sclk_post_en.hw, + [AUD_CLKID_MST_E_SCLK_POST_EN] = &mst_e_sclk_post_en.hw, + [AUD_CLKID_MST_F_SCLK_POST_EN] = &mst_f_sclk_post_en.hw, + [AUD_CLKID_MST_A_SCLK] = &mst_a_sclk.hw, + [AUD_CLKID_MST_B_SCLK] = &mst_b_sclk.hw, + [AUD_CLKID_MST_C_SCLK] = &mst_c_sclk.hw, + [AUD_CLKID_MST_D_SCLK] = &mst_d_sclk.hw, + [AUD_CLKID_MST_E_SCLK] = &mst_e_sclk.hw, + [AUD_CLKID_MST_F_SCLK] = &mst_f_sclk.hw, + [AUD_CLKID_MST_A_LRCLK_DIV] = &mst_a_lrclk_div.hw, + [AUD_CLKID_MST_B_LRCLK_DIV] = &mst_b_lrclk_div.hw, + [AUD_CLKID_MST_C_LRCLK_DIV] = &mst_c_lrclk_div.hw, + [AUD_CLKID_MST_D_LRCLK_DIV] = &mst_d_lrclk_div.hw, + [AUD_CLKID_MST_E_LRCLK_DIV] = &mst_e_lrclk_div.hw, + [AUD_CLKID_MST_F_LRCLK_DIV] = &mst_f_lrclk_div.hw, + [AUD_CLKID_MST_A_LRCLK] = &mst_a_lrclk.hw, + [AUD_CLKID_MST_B_LRCLK] = &mst_b_lrclk.hw, + [AUD_CLKID_MST_C_LRCLK] = &mst_c_lrclk.hw, + [AUD_CLKID_MST_D_LRCLK] = &mst_d_lrclk.hw, + [AUD_CLKID_MST_E_LRCLK] = &mst_e_lrclk.hw, + [AUD_CLKID_MST_F_LRCLK] = &mst_f_lrclk.hw, + [AUD_CLKID_TDMIN_A_SCLK_SEL] = &tdmin_a_sclk_sel.hw, + [AUD_CLKID_TDMIN_B_SCLK_SEL] = &tdmin_b_sclk_sel.hw, + [AUD_CLKID_TDMIN_C_SCLK_SEL] = &tdmin_c_sclk_sel.hw, + [AUD_CLKID_TDMIN_LB_SCLK_SEL] = &tdmin_lb_sclk_sel.hw, + [AUD_CLKID_TDMOUT_A_SCLK_SEL] = &tdmout_a_sclk_sel.hw, + [AUD_CLKID_TDMOUT_B_SCLK_SEL] = &tdmout_b_sclk_sel.hw, + [AUD_CLKID_TDMOUT_C_SCLK_SEL] = &tdmout_c_sclk_sel.hw, + [AUD_CLKID_TDMIN_A_SCLK_PRE_EN] = &tdmin_a_sclk_pre_en.hw, + [AUD_CLKID_TDMIN_B_SCLK_PRE_EN] = &tdmin_b_sclk_pre_en.hw, + [AUD_CLKID_TDMIN_C_SCLK_PRE_EN] = &tdmin_c_sclk_pre_en.hw, + [AUD_CLKID_TDMIN_LB_SCLK_PRE_EN] = &tdmin_lb_sclk_pre_en.hw, + [AUD_CLKID_TDMOUT_A_SCLK_PRE_EN] = &tdmout_a_sclk_pre_en.hw, + [AUD_CLKID_TDMOUT_B_SCLK_PRE_EN] = &tdmout_b_sclk_pre_en.hw, + [AUD_CLKID_TDMOUT_C_SCLK_PRE_EN] = &tdmout_c_sclk_pre_en.hw, + [AUD_CLKID_TDMIN_A_SCLK_POST_EN] = &tdmin_a_sclk_post_en.hw, + [AUD_CLKID_TDMIN_B_SCLK_POST_EN] = &tdmin_b_sclk_post_en.hw, + [AUD_CLKID_TDMIN_C_SCLK_POST_EN] = &tdmin_c_sclk_post_en.hw, + [AUD_CLKID_TDMIN_LB_SCLK_POST_EN] = &tdmin_lb_sclk_post_en.hw, + [AUD_CLKID_TDMOUT_A_SCLK_POST_EN] = &tdmout_a_sclk_post_en.hw, + [AUD_CLKID_TDMOUT_B_SCLK_POST_EN] = &tdmout_b_sclk_post_en.hw, + [AUD_CLKID_TDMOUT_C_SCLK_POST_EN] = &tdmout_c_sclk_post_en.hw, + [AUD_CLKID_TDMIN_A_SCLK] = &tdmin_a_sclk.hw, + [AUD_CLKID_TDMIN_B_SCLK] = &tdmin_b_sclk.hw, + [AUD_CLKID_TDMIN_C_SCLK] = &tdmin_c_sclk.hw, + [AUD_CLKID_TDMIN_LB_SCLK] = &tdmin_lb_sclk.hw, + [AUD_CLKID_TDMOUT_A_SCLK] = &g12a_tdmout_a_sclk.hw, + [AUD_CLKID_TDMOUT_B_SCLK] = &g12a_tdmout_b_sclk.hw, + [AUD_CLKID_TDMOUT_C_SCLK] = &g12a_tdmout_c_sclk.hw, + [AUD_CLKID_TDMIN_A_LRCLK] = &tdmin_a_lrclk.hw, + [AUD_CLKID_TDMIN_B_LRCLK] = &tdmin_b_lrclk.hw, + [AUD_CLKID_TDMIN_C_LRCLK] = &tdmin_c_lrclk.hw, + [AUD_CLKID_TDMIN_LB_LRCLK] = &tdmin_lb_lrclk.hw, + [AUD_CLKID_TDMOUT_A_LRCLK] = &tdmout_a_lrclk.hw, + [AUD_CLKID_TDMOUT_B_LRCLK] = &tdmout_b_lrclk.hw, + [AUD_CLKID_TDMOUT_C_LRCLK] = &tdmout_c_lrclk.hw, + [AUD_CLKID_TOP] = &sm1_aud_top.hw, + [AUD_CLKID_TORAM] = &toram.hw, + [AUD_CLKID_EQDRC] = &eqdrc.hw, + [AUD_CLKID_RESAMPLE_B] = &resample_b.hw, + [AUD_CLKID_TOVAD] = &tovad.hw, + [AUD_CLKID_LOCKER] = &locker.hw, + [AUD_CLKID_SPDIFIN_LB] = &spdifin_lb.hw, + [AUD_CLKID_FRDDR_D] = &frddr_d.hw, + [AUD_CLKID_TODDR_D] = &toddr_d.hw, + [AUD_CLKID_LOOPBACK_B] = &loopback_b.hw, + [AUD_CLKID_CLK81_EN] = &sm1_clk81_en.hw, + [AUD_CLKID_SYSCLK_A_DIV] = &sm1_sysclk_a_div.hw, + [AUD_CLKID_SYSCLK_A_EN] = &sm1_sysclk_a_en.hw, + [AUD_CLKID_SYSCLK_B_DIV] = &sm1_sysclk_b_div.hw, + [AUD_CLKID_SYSCLK_B_EN] = &sm1_sysclk_b_en.hw, + [AUD_CLKID_EARCRX] = &earcrx.hw, + [AUD_CLKID_EARCRX_CMDC_SEL] = &sm1_earcrx_cmdc_clk_sel.hw, + [AUD_CLKID_EARCRX_CMDC_DIV] = &sm1_earcrx_cmdc_clk_div.hw, + [AUD_CLKID_EARCRX_CMDC] = &sm1_earcrx_cmdc_clk.hw, + [AUD_CLKID_EARCRX_DMAC_SEL] = &sm1_earcrx_dmac_clk_sel.hw, + [AUD_CLKID_EARCRX_DMAC_DIV] = &sm1_earcrx_dmac_clk_div.hw, + [AUD_CLKID_EARCRX_DMAC] = &sm1_earcrx_dmac_clk.hw, +}; + /* * Array of all SM1 clocks provided by this provider * The input clocks of the controller will be populated at runtime @@ -1410,6 +1563,15 @@ static const struct audioclk_data g12a_audioclk_data = { .max_register = AUDIO_CLK_SPDIFOUT_B_CTRL, }; +static const struct audioclk_data s4_audioclk_data = { + .hw_clks = { + .hws = s4_audio_hw_clks, + .num = ARRAY_SIZE(s4_audio_hw_clks), + }, + .rst_drvname = "rst-sm1", + .max_register = AUDIO_EARCRX_DMAC_CLK_CTRL, +}; + static const struct audioclk_data sm1_audioclk_data = { .hw_clks = { .hws = sm1_audio_hw_clks, @@ -1426,6 +1588,9 @@ static const struct of_device_id clkc_match_table[] = { }, { .compatible = "amlogic,g12a-audio-clkc", .data = &g12a_audioclk_data + }, { + .compatible = "amlogic,s4-audio-clkc", + .data = &s4_audioclk_data }, { .compatible = "amlogic,sm1-audio-clkc", .data = &sm1_audioclk_data -- 2.52.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 1/2] clk: meson: axg_audio: add S4 support @ 2026-11-27 9:11 ` Jiebing Chen 0 siblings, 0 replies; 15+ messages in thread From: Jiebing Chen via B4 Relay @ 2026-11-27 9:11 UTC (permalink / raw) To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd, Kevin Hilman, Martin Blumenstingl, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, devicetree, Jiebing Chen From: Jiebing Chen <jiebing.chen@amlogic.com> Add S4 support the axg audio clock controllers, Compared with the previous version, the selection of the audio's clock and data pad will be designed in the form of pinmux control. The purpose of doing this is to distinguish between clock control and pin control selection. Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> --- drivers/clk/meson/axg-audio.c | 165 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) diff --git a/drivers/clk/meson/axg-audio.c b/drivers/clk/meson/axg-audio.c index fd7eca652261..ab8c05b0509e 100644 --- a/drivers/clk/meson/axg-audio.c +++ b/drivers/clk/meson/axg-audio.c @@ -1150,6 +1150,159 @@ static struct clk_hw *g12a_audio_hw_clks[] = { [AUD_CLKID_TOP] = &axg_aud_top, }; +/* + * Array of all S4 clocks provided by this provider + * The input clocks of the controller will be populated at runtime + */ +static struct clk_hw *s4_audio_hw_clks[] = { + [AUD_CLKID_DDR_ARB] = &ddr_arb.hw, + [AUD_CLKID_PDM] = &pdm.hw, + [AUD_CLKID_TDMIN_A] = &tdmin_a.hw, + [AUD_CLKID_TDMIN_B] = &tdmin_b.hw, + [AUD_CLKID_TDMIN_C] = &tdmin_c.hw, + [AUD_CLKID_TDMIN_LB] = &tdmin_lb.hw, + [AUD_CLKID_TDMOUT_A] = &tdmout_a.hw, + [AUD_CLKID_TDMOUT_B] = &tdmout_b.hw, + [AUD_CLKID_TDMOUT_C] = &tdmout_c.hw, + [AUD_CLKID_FRDDR_A] = &frddr_a.hw, + [AUD_CLKID_FRDDR_B] = &frddr_b.hw, + [AUD_CLKID_FRDDR_C] = &frddr_c.hw, + [AUD_CLKID_TODDR_A] = &toddr_a.hw, + [AUD_CLKID_TODDR_B] = &toddr_b.hw, + [AUD_CLKID_TODDR_C] = &toddr_c.hw, + [AUD_CLKID_LOOPBACK] = &loopback.hw, + [AUD_CLKID_SPDIFIN] = &spdifin.hw, + [AUD_CLKID_SPDIFOUT] = &spdifout.hw, + [AUD_CLKID_RESAMPLE] = &resample.hw, + [AUD_CLKID_SPDIFOUT_B] = &spdifout_b.hw, + [AUD_CLKID_MST_A_MCLK_SEL] = &sm1_mst_a_mclk_sel.hw, + [AUD_CLKID_MST_B_MCLK_SEL] = &sm1_mst_b_mclk_sel.hw, + [AUD_CLKID_MST_C_MCLK_SEL] = &sm1_mst_c_mclk_sel.hw, + [AUD_CLKID_MST_D_MCLK_SEL] = &sm1_mst_d_mclk_sel.hw, + [AUD_CLKID_MST_E_MCLK_SEL] = &sm1_mst_e_mclk_sel.hw, + [AUD_CLKID_MST_F_MCLK_SEL] = &sm1_mst_f_mclk_sel.hw, + [AUD_CLKID_MST_A_MCLK_DIV] = &sm1_mst_a_mclk_div.hw, + [AUD_CLKID_MST_B_MCLK_DIV] = &sm1_mst_b_mclk_div.hw, + [AUD_CLKID_MST_C_MCLK_DIV] = &sm1_mst_c_mclk_div.hw, + [AUD_CLKID_MST_D_MCLK_DIV] = &sm1_mst_d_mclk_div.hw, + [AUD_CLKID_MST_E_MCLK_DIV] = &sm1_mst_e_mclk_div.hw, + [AUD_CLKID_MST_F_MCLK_DIV] = &sm1_mst_f_mclk_div.hw, + [AUD_CLKID_MST_A_MCLK] = &sm1_mst_a_mclk.hw, + [AUD_CLKID_MST_B_MCLK] = &sm1_mst_b_mclk.hw, + [AUD_CLKID_MST_C_MCLK] = &sm1_mst_c_mclk.hw, + [AUD_CLKID_MST_D_MCLK] = &sm1_mst_d_mclk.hw, + [AUD_CLKID_MST_E_MCLK] = &sm1_mst_e_mclk.hw, + [AUD_CLKID_MST_F_MCLK] = &sm1_mst_f_mclk.hw, + [AUD_CLKID_SPDIFOUT_CLK_SEL] = &spdifout_clk_sel.hw, + [AUD_CLKID_SPDIFOUT_CLK_DIV] = &spdifout_clk_div.hw, + [AUD_CLKID_SPDIFOUT_CLK] = &spdifout_clk.hw, + [AUD_CLKID_SPDIFOUT_B_CLK_SEL] = &spdifout_b_clk_sel.hw, + [AUD_CLKID_SPDIFOUT_B_CLK_DIV] = &spdifout_b_clk_div.hw, + [AUD_CLKID_SPDIFOUT_B_CLK] = &spdifout_b_clk.hw, + [AUD_CLKID_SPDIFIN_CLK_SEL] = &spdifin_clk_sel.hw, + [AUD_CLKID_SPDIFIN_CLK_DIV] = &spdifin_clk_div.hw, + [AUD_CLKID_SPDIFIN_CLK] = &spdifin_clk.hw, + [AUD_CLKID_PDM_DCLK_SEL] = &pdm_dclk_sel.hw, + [AUD_CLKID_PDM_DCLK_DIV] = &pdm_dclk_div.hw, + [AUD_CLKID_PDM_DCLK] = &pdm_dclk.hw, + [AUD_CLKID_PDM_SYSCLK_SEL] = &pdm_sysclk_sel.hw, + [AUD_CLKID_PDM_SYSCLK_DIV] = &pdm_sysclk_div.hw, + [AUD_CLKID_PDM_SYSCLK] = &pdm_sysclk.hw, + [AUD_CLKID_MST_A_SCLK_PRE_EN] = &mst_a_sclk_pre_en.hw, + [AUD_CLKID_MST_B_SCLK_PRE_EN] = &mst_b_sclk_pre_en.hw, + [AUD_CLKID_MST_C_SCLK_PRE_EN] = &mst_c_sclk_pre_en.hw, + [AUD_CLKID_MST_D_SCLK_PRE_EN] = &mst_d_sclk_pre_en.hw, + [AUD_CLKID_MST_E_SCLK_PRE_EN] = &mst_e_sclk_pre_en.hw, + [AUD_CLKID_MST_F_SCLK_PRE_EN] = &mst_f_sclk_pre_en.hw, + [AUD_CLKID_MST_A_SCLK_DIV] = &mst_a_sclk_div.hw, + [AUD_CLKID_MST_B_SCLK_DIV] = &mst_b_sclk_div.hw, + [AUD_CLKID_MST_C_SCLK_DIV] = &mst_c_sclk_div.hw, + [AUD_CLKID_MST_D_SCLK_DIV] = &mst_d_sclk_div.hw, + [AUD_CLKID_MST_E_SCLK_DIV] = &mst_e_sclk_div.hw, + [AUD_CLKID_MST_F_SCLK_DIV] = &mst_f_sclk_div.hw, + [AUD_CLKID_MST_A_SCLK_POST_EN] = &mst_a_sclk_post_en.hw, + [AUD_CLKID_MST_B_SCLK_POST_EN] = &mst_b_sclk_post_en.hw, + [AUD_CLKID_MST_C_SCLK_POST_EN] = &mst_c_sclk_post_en.hw, + [AUD_CLKID_MST_D_SCLK_POST_EN] = &mst_d_sclk_post_en.hw, + [AUD_CLKID_MST_E_SCLK_POST_EN] = &mst_e_sclk_post_en.hw, + [AUD_CLKID_MST_F_SCLK_POST_EN] = &mst_f_sclk_post_en.hw, + [AUD_CLKID_MST_A_SCLK] = &mst_a_sclk.hw, + [AUD_CLKID_MST_B_SCLK] = &mst_b_sclk.hw, + [AUD_CLKID_MST_C_SCLK] = &mst_c_sclk.hw, + [AUD_CLKID_MST_D_SCLK] = &mst_d_sclk.hw, + [AUD_CLKID_MST_E_SCLK] = &mst_e_sclk.hw, + [AUD_CLKID_MST_F_SCLK] = &mst_f_sclk.hw, + [AUD_CLKID_MST_A_LRCLK_DIV] = &mst_a_lrclk_div.hw, + [AUD_CLKID_MST_B_LRCLK_DIV] = &mst_b_lrclk_div.hw, + [AUD_CLKID_MST_C_LRCLK_DIV] = &mst_c_lrclk_div.hw, + [AUD_CLKID_MST_D_LRCLK_DIV] = &mst_d_lrclk_div.hw, + [AUD_CLKID_MST_E_LRCLK_DIV] = &mst_e_lrclk_div.hw, + [AUD_CLKID_MST_F_LRCLK_DIV] = &mst_f_lrclk_div.hw, + [AUD_CLKID_MST_A_LRCLK] = &mst_a_lrclk.hw, + [AUD_CLKID_MST_B_LRCLK] = &mst_b_lrclk.hw, + [AUD_CLKID_MST_C_LRCLK] = &mst_c_lrclk.hw, + [AUD_CLKID_MST_D_LRCLK] = &mst_d_lrclk.hw, + [AUD_CLKID_MST_E_LRCLK] = &mst_e_lrclk.hw, + [AUD_CLKID_MST_F_LRCLK] = &mst_f_lrclk.hw, + [AUD_CLKID_TDMIN_A_SCLK_SEL] = &tdmin_a_sclk_sel.hw, + [AUD_CLKID_TDMIN_B_SCLK_SEL] = &tdmin_b_sclk_sel.hw, + [AUD_CLKID_TDMIN_C_SCLK_SEL] = &tdmin_c_sclk_sel.hw, + [AUD_CLKID_TDMIN_LB_SCLK_SEL] = &tdmin_lb_sclk_sel.hw, + [AUD_CLKID_TDMOUT_A_SCLK_SEL] = &tdmout_a_sclk_sel.hw, + [AUD_CLKID_TDMOUT_B_SCLK_SEL] = &tdmout_b_sclk_sel.hw, + [AUD_CLKID_TDMOUT_C_SCLK_SEL] = &tdmout_c_sclk_sel.hw, + [AUD_CLKID_TDMIN_A_SCLK_PRE_EN] = &tdmin_a_sclk_pre_en.hw, + [AUD_CLKID_TDMIN_B_SCLK_PRE_EN] = &tdmin_b_sclk_pre_en.hw, + [AUD_CLKID_TDMIN_C_SCLK_PRE_EN] = &tdmin_c_sclk_pre_en.hw, + [AUD_CLKID_TDMIN_LB_SCLK_PRE_EN] = &tdmin_lb_sclk_pre_en.hw, + [AUD_CLKID_TDMOUT_A_SCLK_PRE_EN] = &tdmout_a_sclk_pre_en.hw, + [AUD_CLKID_TDMOUT_B_SCLK_PRE_EN] = &tdmout_b_sclk_pre_en.hw, + [AUD_CLKID_TDMOUT_C_SCLK_PRE_EN] = &tdmout_c_sclk_pre_en.hw, + [AUD_CLKID_TDMIN_A_SCLK_POST_EN] = &tdmin_a_sclk_post_en.hw, + [AUD_CLKID_TDMIN_B_SCLK_POST_EN] = &tdmin_b_sclk_post_en.hw, + [AUD_CLKID_TDMIN_C_SCLK_POST_EN] = &tdmin_c_sclk_post_en.hw, + [AUD_CLKID_TDMIN_LB_SCLK_POST_EN] = &tdmin_lb_sclk_post_en.hw, + [AUD_CLKID_TDMOUT_A_SCLK_POST_EN] = &tdmout_a_sclk_post_en.hw, + [AUD_CLKID_TDMOUT_B_SCLK_POST_EN] = &tdmout_b_sclk_post_en.hw, + [AUD_CLKID_TDMOUT_C_SCLK_POST_EN] = &tdmout_c_sclk_post_en.hw, + [AUD_CLKID_TDMIN_A_SCLK] = &tdmin_a_sclk.hw, + [AUD_CLKID_TDMIN_B_SCLK] = &tdmin_b_sclk.hw, + [AUD_CLKID_TDMIN_C_SCLK] = &tdmin_c_sclk.hw, + [AUD_CLKID_TDMIN_LB_SCLK] = &tdmin_lb_sclk.hw, + [AUD_CLKID_TDMOUT_A_SCLK] = &g12a_tdmout_a_sclk.hw, + [AUD_CLKID_TDMOUT_B_SCLK] = &g12a_tdmout_b_sclk.hw, + [AUD_CLKID_TDMOUT_C_SCLK] = &g12a_tdmout_c_sclk.hw, + [AUD_CLKID_TDMIN_A_LRCLK] = &tdmin_a_lrclk.hw, + [AUD_CLKID_TDMIN_B_LRCLK] = &tdmin_b_lrclk.hw, + [AUD_CLKID_TDMIN_C_LRCLK] = &tdmin_c_lrclk.hw, + [AUD_CLKID_TDMIN_LB_LRCLK] = &tdmin_lb_lrclk.hw, + [AUD_CLKID_TDMOUT_A_LRCLK] = &tdmout_a_lrclk.hw, + [AUD_CLKID_TDMOUT_B_LRCLK] = &tdmout_b_lrclk.hw, + [AUD_CLKID_TDMOUT_C_LRCLK] = &tdmout_c_lrclk.hw, + [AUD_CLKID_TOP] = &sm1_aud_top.hw, + [AUD_CLKID_TORAM] = &toram.hw, + [AUD_CLKID_EQDRC] = &eqdrc.hw, + [AUD_CLKID_RESAMPLE_B] = &resample_b.hw, + [AUD_CLKID_TOVAD] = &tovad.hw, + [AUD_CLKID_LOCKER] = &locker.hw, + [AUD_CLKID_SPDIFIN_LB] = &spdifin_lb.hw, + [AUD_CLKID_FRDDR_D] = &frddr_d.hw, + [AUD_CLKID_TODDR_D] = &toddr_d.hw, + [AUD_CLKID_LOOPBACK_B] = &loopback_b.hw, + [AUD_CLKID_CLK81_EN] = &sm1_clk81_en.hw, + [AUD_CLKID_SYSCLK_A_DIV] = &sm1_sysclk_a_div.hw, + [AUD_CLKID_SYSCLK_A_EN] = &sm1_sysclk_a_en.hw, + [AUD_CLKID_SYSCLK_B_DIV] = &sm1_sysclk_b_div.hw, + [AUD_CLKID_SYSCLK_B_EN] = &sm1_sysclk_b_en.hw, + [AUD_CLKID_EARCRX] = &earcrx.hw, + [AUD_CLKID_EARCRX_CMDC_SEL] = &sm1_earcrx_cmdc_clk_sel.hw, + [AUD_CLKID_EARCRX_CMDC_DIV] = &sm1_earcrx_cmdc_clk_div.hw, + [AUD_CLKID_EARCRX_CMDC] = &sm1_earcrx_cmdc_clk.hw, + [AUD_CLKID_EARCRX_DMAC_SEL] = &sm1_earcrx_dmac_clk_sel.hw, + [AUD_CLKID_EARCRX_DMAC_DIV] = &sm1_earcrx_dmac_clk_div.hw, + [AUD_CLKID_EARCRX_DMAC] = &sm1_earcrx_dmac_clk.hw, +}; + /* * Array of all SM1 clocks provided by this provider * The input clocks of the controller will be populated at runtime @@ -1410,6 +1563,15 @@ static const struct audioclk_data g12a_audioclk_data = { .max_register = AUDIO_CLK_SPDIFOUT_B_CTRL, }; +static const struct audioclk_data s4_audioclk_data = { + .hw_clks = { + .hws = s4_audio_hw_clks, + .num = ARRAY_SIZE(s4_audio_hw_clks), + }, + .rst_drvname = "rst-sm1", + .max_register = AUDIO_EARCRX_DMAC_CLK_CTRL, +}; + static const struct audioclk_data sm1_audioclk_data = { .hw_clks = { .hws = sm1_audio_hw_clks, @@ -1426,6 +1588,9 @@ static const struct of_device_id clkc_match_table[] = { }, { .compatible = "amlogic,g12a-audio-clkc", .data = &g12a_audioclk_data + }, { + .compatible = "amlogic,s4-audio-clkc", + .data = &s4_audioclk_data }, { .compatible = "amlogic,sm1-audio-clkc", .data = &sm1_audioclk_data -- 2.52.0 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 1/2] clk: meson: axg_audio: add S4 support @ 2026-11-27 9:11 ` Jiebing Chen 0 siblings, 0 replies; 15+ messages in thread From: Jiebing Chen @ 2026-11-27 9:11 UTC (permalink / raw) To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd, Kevin Hilman, Martin Blumenstingl, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, devicetree, Jiebing Chen Add S4 support the axg audio clock controllers, Compared with the previous version, the selection of the audio's clock and data pad will be designed in the form of pinmux control. The purpose of doing this is to distinguish between clock control and pin control selection. Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> --- drivers/clk/meson/axg-audio.c | 165 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) diff --git a/drivers/clk/meson/axg-audio.c b/drivers/clk/meson/axg-audio.c index fd7eca652261..ab8c05b0509e 100644 --- a/drivers/clk/meson/axg-audio.c +++ b/drivers/clk/meson/axg-audio.c @@ -1150,6 +1150,159 @@ static struct clk_hw *g12a_audio_hw_clks[] = { [AUD_CLKID_TOP] = &axg_aud_top, }; +/* + * Array of all S4 clocks provided by this provider + * The input clocks of the controller will be populated at runtime + */ +static struct clk_hw *s4_audio_hw_clks[] = { + [AUD_CLKID_DDR_ARB] = &ddr_arb.hw, + [AUD_CLKID_PDM] = &pdm.hw, + [AUD_CLKID_TDMIN_A] = &tdmin_a.hw, + [AUD_CLKID_TDMIN_B] = &tdmin_b.hw, + [AUD_CLKID_TDMIN_C] = &tdmin_c.hw, + [AUD_CLKID_TDMIN_LB] = &tdmin_lb.hw, + [AUD_CLKID_TDMOUT_A] = &tdmout_a.hw, + [AUD_CLKID_TDMOUT_B] = &tdmout_b.hw, + [AUD_CLKID_TDMOUT_C] = &tdmout_c.hw, + [AUD_CLKID_FRDDR_A] = &frddr_a.hw, + [AUD_CLKID_FRDDR_B] = &frddr_b.hw, + [AUD_CLKID_FRDDR_C] = &frddr_c.hw, + [AUD_CLKID_TODDR_A] = &toddr_a.hw, + [AUD_CLKID_TODDR_B] = &toddr_b.hw, + [AUD_CLKID_TODDR_C] = &toddr_c.hw, + [AUD_CLKID_LOOPBACK] = &loopback.hw, + [AUD_CLKID_SPDIFIN] = &spdifin.hw, + [AUD_CLKID_SPDIFOUT] = &spdifout.hw, + [AUD_CLKID_RESAMPLE] = &resample.hw, + [AUD_CLKID_SPDIFOUT_B] = &spdifout_b.hw, + [AUD_CLKID_MST_A_MCLK_SEL] = &sm1_mst_a_mclk_sel.hw, + [AUD_CLKID_MST_B_MCLK_SEL] = &sm1_mst_b_mclk_sel.hw, + [AUD_CLKID_MST_C_MCLK_SEL] = &sm1_mst_c_mclk_sel.hw, + [AUD_CLKID_MST_D_MCLK_SEL] = &sm1_mst_d_mclk_sel.hw, + [AUD_CLKID_MST_E_MCLK_SEL] = &sm1_mst_e_mclk_sel.hw, + [AUD_CLKID_MST_F_MCLK_SEL] = &sm1_mst_f_mclk_sel.hw, + [AUD_CLKID_MST_A_MCLK_DIV] = &sm1_mst_a_mclk_div.hw, + [AUD_CLKID_MST_B_MCLK_DIV] = &sm1_mst_b_mclk_div.hw, + [AUD_CLKID_MST_C_MCLK_DIV] = &sm1_mst_c_mclk_div.hw, + [AUD_CLKID_MST_D_MCLK_DIV] = &sm1_mst_d_mclk_div.hw, + [AUD_CLKID_MST_E_MCLK_DIV] = &sm1_mst_e_mclk_div.hw, + [AUD_CLKID_MST_F_MCLK_DIV] = &sm1_mst_f_mclk_div.hw, + [AUD_CLKID_MST_A_MCLK] = &sm1_mst_a_mclk.hw, + [AUD_CLKID_MST_B_MCLK] = &sm1_mst_b_mclk.hw, + [AUD_CLKID_MST_C_MCLK] = &sm1_mst_c_mclk.hw, + [AUD_CLKID_MST_D_MCLK] = &sm1_mst_d_mclk.hw, + [AUD_CLKID_MST_E_MCLK] = &sm1_mst_e_mclk.hw, + [AUD_CLKID_MST_F_MCLK] = &sm1_mst_f_mclk.hw, + [AUD_CLKID_SPDIFOUT_CLK_SEL] = &spdifout_clk_sel.hw, + [AUD_CLKID_SPDIFOUT_CLK_DIV] = &spdifout_clk_div.hw, + [AUD_CLKID_SPDIFOUT_CLK] = &spdifout_clk.hw, + [AUD_CLKID_SPDIFOUT_B_CLK_SEL] = &spdifout_b_clk_sel.hw, + [AUD_CLKID_SPDIFOUT_B_CLK_DIV] = &spdifout_b_clk_div.hw, + [AUD_CLKID_SPDIFOUT_B_CLK] = &spdifout_b_clk.hw, + [AUD_CLKID_SPDIFIN_CLK_SEL] = &spdifin_clk_sel.hw, + [AUD_CLKID_SPDIFIN_CLK_DIV] = &spdifin_clk_div.hw, + [AUD_CLKID_SPDIFIN_CLK] = &spdifin_clk.hw, + [AUD_CLKID_PDM_DCLK_SEL] = &pdm_dclk_sel.hw, + [AUD_CLKID_PDM_DCLK_DIV] = &pdm_dclk_div.hw, + [AUD_CLKID_PDM_DCLK] = &pdm_dclk.hw, + [AUD_CLKID_PDM_SYSCLK_SEL] = &pdm_sysclk_sel.hw, + [AUD_CLKID_PDM_SYSCLK_DIV] = &pdm_sysclk_div.hw, + [AUD_CLKID_PDM_SYSCLK] = &pdm_sysclk.hw, + [AUD_CLKID_MST_A_SCLK_PRE_EN] = &mst_a_sclk_pre_en.hw, + [AUD_CLKID_MST_B_SCLK_PRE_EN] = &mst_b_sclk_pre_en.hw, + [AUD_CLKID_MST_C_SCLK_PRE_EN] = &mst_c_sclk_pre_en.hw, + [AUD_CLKID_MST_D_SCLK_PRE_EN] = &mst_d_sclk_pre_en.hw, + [AUD_CLKID_MST_E_SCLK_PRE_EN] = &mst_e_sclk_pre_en.hw, + [AUD_CLKID_MST_F_SCLK_PRE_EN] = &mst_f_sclk_pre_en.hw, + [AUD_CLKID_MST_A_SCLK_DIV] = &mst_a_sclk_div.hw, + [AUD_CLKID_MST_B_SCLK_DIV] = &mst_b_sclk_div.hw, + [AUD_CLKID_MST_C_SCLK_DIV] = &mst_c_sclk_div.hw, + [AUD_CLKID_MST_D_SCLK_DIV] = &mst_d_sclk_div.hw, + [AUD_CLKID_MST_E_SCLK_DIV] = &mst_e_sclk_div.hw, + [AUD_CLKID_MST_F_SCLK_DIV] = &mst_f_sclk_div.hw, + [AUD_CLKID_MST_A_SCLK_POST_EN] = &mst_a_sclk_post_en.hw, + [AUD_CLKID_MST_B_SCLK_POST_EN] = &mst_b_sclk_post_en.hw, + [AUD_CLKID_MST_C_SCLK_POST_EN] = &mst_c_sclk_post_en.hw, + [AUD_CLKID_MST_D_SCLK_POST_EN] = &mst_d_sclk_post_en.hw, + [AUD_CLKID_MST_E_SCLK_POST_EN] = &mst_e_sclk_post_en.hw, + [AUD_CLKID_MST_F_SCLK_POST_EN] = &mst_f_sclk_post_en.hw, + [AUD_CLKID_MST_A_SCLK] = &mst_a_sclk.hw, + [AUD_CLKID_MST_B_SCLK] = &mst_b_sclk.hw, + [AUD_CLKID_MST_C_SCLK] = &mst_c_sclk.hw, + [AUD_CLKID_MST_D_SCLK] = &mst_d_sclk.hw, + [AUD_CLKID_MST_E_SCLK] = &mst_e_sclk.hw, + [AUD_CLKID_MST_F_SCLK] = &mst_f_sclk.hw, + [AUD_CLKID_MST_A_LRCLK_DIV] = &mst_a_lrclk_div.hw, + [AUD_CLKID_MST_B_LRCLK_DIV] = &mst_b_lrclk_div.hw, + [AUD_CLKID_MST_C_LRCLK_DIV] = &mst_c_lrclk_div.hw, + [AUD_CLKID_MST_D_LRCLK_DIV] = &mst_d_lrclk_div.hw, + [AUD_CLKID_MST_E_LRCLK_DIV] = &mst_e_lrclk_div.hw, + [AUD_CLKID_MST_F_LRCLK_DIV] = &mst_f_lrclk_div.hw, + [AUD_CLKID_MST_A_LRCLK] = &mst_a_lrclk.hw, + [AUD_CLKID_MST_B_LRCLK] = &mst_b_lrclk.hw, + [AUD_CLKID_MST_C_LRCLK] = &mst_c_lrclk.hw, + [AUD_CLKID_MST_D_LRCLK] = &mst_d_lrclk.hw, + [AUD_CLKID_MST_E_LRCLK] = &mst_e_lrclk.hw, + [AUD_CLKID_MST_F_LRCLK] = &mst_f_lrclk.hw, + [AUD_CLKID_TDMIN_A_SCLK_SEL] = &tdmin_a_sclk_sel.hw, + [AUD_CLKID_TDMIN_B_SCLK_SEL] = &tdmin_b_sclk_sel.hw, + [AUD_CLKID_TDMIN_C_SCLK_SEL] = &tdmin_c_sclk_sel.hw, + [AUD_CLKID_TDMIN_LB_SCLK_SEL] = &tdmin_lb_sclk_sel.hw, + [AUD_CLKID_TDMOUT_A_SCLK_SEL] = &tdmout_a_sclk_sel.hw, + [AUD_CLKID_TDMOUT_B_SCLK_SEL] = &tdmout_b_sclk_sel.hw, + [AUD_CLKID_TDMOUT_C_SCLK_SEL] = &tdmout_c_sclk_sel.hw, + [AUD_CLKID_TDMIN_A_SCLK_PRE_EN] = &tdmin_a_sclk_pre_en.hw, + [AUD_CLKID_TDMIN_B_SCLK_PRE_EN] = &tdmin_b_sclk_pre_en.hw, + [AUD_CLKID_TDMIN_C_SCLK_PRE_EN] = &tdmin_c_sclk_pre_en.hw, + [AUD_CLKID_TDMIN_LB_SCLK_PRE_EN] = &tdmin_lb_sclk_pre_en.hw, + [AUD_CLKID_TDMOUT_A_SCLK_PRE_EN] = &tdmout_a_sclk_pre_en.hw, + [AUD_CLKID_TDMOUT_B_SCLK_PRE_EN] = &tdmout_b_sclk_pre_en.hw, + [AUD_CLKID_TDMOUT_C_SCLK_PRE_EN] = &tdmout_c_sclk_pre_en.hw, + [AUD_CLKID_TDMIN_A_SCLK_POST_EN] = &tdmin_a_sclk_post_en.hw, + [AUD_CLKID_TDMIN_B_SCLK_POST_EN] = &tdmin_b_sclk_post_en.hw, + [AUD_CLKID_TDMIN_C_SCLK_POST_EN] = &tdmin_c_sclk_post_en.hw, + [AUD_CLKID_TDMIN_LB_SCLK_POST_EN] = &tdmin_lb_sclk_post_en.hw, + [AUD_CLKID_TDMOUT_A_SCLK_POST_EN] = &tdmout_a_sclk_post_en.hw, + [AUD_CLKID_TDMOUT_B_SCLK_POST_EN] = &tdmout_b_sclk_post_en.hw, + [AUD_CLKID_TDMOUT_C_SCLK_POST_EN] = &tdmout_c_sclk_post_en.hw, + [AUD_CLKID_TDMIN_A_SCLK] = &tdmin_a_sclk.hw, + [AUD_CLKID_TDMIN_B_SCLK] = &tdmin_b_sclk.hw, + [AUD_CLKID_TDMIN_C_SCLK] = &tdmin_c_sclk.hw, + [AUD_CLKID_TDMIN_LB_SCLK] = &tdmin_lb_sclk.hw, + [AUD_CLKID_TDMOUT_A_SCLK] = &g12a_tdmout_a_sclk.hw, + [AUD_CLKID_TDMOUT_B_SCLK] = &g12a_tdmout_b_sclk.hw, + [AUD_CLKID_TDMOUT_C_SCLK] = &g12a_tdmout_c_sclk.hw, + [AUD_CLKID_TDMIN_A_LRCLK] = &tdmin_a_lrclk.hw, + [AUD_CLKID_TDMIN_B_LRCLK] = &tdmin_b_lrclk.hw, + [AUD_CLKID_TDMIN_C_LRCLK] = &tdmin_c_lrclk.hw, + [AUD_CLKID_TDMIN_LB_LRCLK] = &tdmin_lb_lrclk.hw, + [AUD_CLKID_TDMOUT_A_LRCLK] = &tdmout_a_lrclk.hw, + [AUD_CLKID_TDMOUT_B_LRCLK] = &tdmout_b_lrclk.hw, + [AUD_CLKID_TDMOUT_C_LRCLK] = &tdmout_c_lrclk.hw, + [AUD_CLKID_TOP] = &sm1_aud_top.hw, + [AUD_CLKID_TORAM] = &toram.hw, + [AUD_CLKID_EQDRC] = &eqdrc.hw, + [AUD_CLKID_RESAMPLE_B] = &resample_b.hw, + [AUD_CLKID_TOVAD] = &tovad.hw, + [AUD_CLKID_LOCKER] = &locker.hw, + [AUD_CLKID_SPDIFIN_LB] = &spdifin_lb.hw, + [AUD_CLKID_FRDDR_D] = &frddr_d.hw, + [AUD_CLKID_TODDR_D] = &toddr_d.hw, + [AUD_CLKID_LOOPBACK_B] = &loopback_b.hw, + [AUD_CLKID_CLK81_EN] = &sm1_clk81_en.hw, + [AUD_CLKID_SYSCLK_A_DIV] = &sm1_sysclk_a_div.hw, + [AUD_CLKID_SYSCLK_A_EN] = &sm1_sysclk_a_en.hw, + [AUD_CLKID_SYSCLK_B_DIV] = &sm1_sysclk_b_div.hw, + [AUD_CLKID_SYSCLK_B_EN] = &sm1_sysclk_b_en.hw, + [AUD_CLKID_EARCRX] = &earcrx.hw, + [AUD_CLKID_EARCRX_CMDC_SEL] = &sm1_earcrx_cmdc_clk_sel.hw, + [AUD_CLKID_EARCRX_CMDC_DIV] = &sm1_earcrx_cmdc_clk_div.hw, + [AUD_CLKID_EARCRX_CMDC] = &sm1_earcrx_cmdc_clk.hw, + [AUD_CLKID_EARCRX_DMAC_SEL] = &sm1_earcrx_dmac_clk_sel.hw, + [AUD_CLKID_EARCRX_DMAC_DIV] = &sm1_earcrx_dmac_clk_div.hw, + [AUD_CLKID_EARCRX_DMAC] = &sm1_earcrx_dmac_clk.hw, +}; + /* * Array of all SM1 clocks provided by this provider * The input clocks of the controller will be populated at runtime @@ -1410,6 +1563,15 @@ static const struct audioclk_data g12a_audioclk_data = { .max_register = AUDIO_CLK_SPDIFOUT_B_CTRL, }; +static const struct audioclk_data s4_audioclk_data = { + .hw_clks = { + .hws = s4_audio_hw_clks, + .num = ARRAY_SIZE(s4_audio_hw_clks), + }, + .rst_drvname = "rst-sm1", + .max_register = AUDIO_EARCRX_DMAC_CLK_CTRL, +}; + static const struct audioclk_data sm1_audioclk_data = { .hw_clks = { .hws = sm1_audio_hw_clks, @@ -1426,6 +1588,9 @@ static const struct of_device_id clkc_match_table[] = { }, { .compatible = "amlogic,g12a-audio-clkc", .data = &g12a_audioclk_data + }, { + .compatible = "amlogic,s4-audio-clkc", + .data = &s4_audioclk_data }, { .compatible = "amlogic,sm1-audio-clkc", .data = &sm1_audioclk_data -- 2.52.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 2/2] ASoC:dt-bindings:clock: Add audio power domain for S4 soc 2026-11-27 9:11 ` Jiebing Chen (?) @ 2026-11-27 9:11 ` Jiebing Chen via B4 Relay -1 siblings, 0 replies; 15+ messages in thread From: Jiebing Chen via B4 Relay @ 2026-11-27 9:11 UTC (permalink / raw) To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd, Kevin Hilman, Martin Blumenstingl, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, devicetree, Jiebing Chen From: Jiebing Chen <jiebing.chen@amlogic.com> The audio power domain has been found on S4 device. It must be enabled prior to audio operations. Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> --- .../bindings/clock/amlogic,axg-audio-clkc.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml index fd7982dd4cea..75ddaf8d8091 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml +++ b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml @@ -20,6 +20,7 @@ properties: enum: - amlogic,axg-audio-clkc - amlogic,g12a-audio-clkc + - amlogic,s4-audio-clkc - amlogic,sm1-audio-clkc '#clock-cells': @@ -100,6 +101,9 @@ properties: resets: description: internal reset line + power-domains: + maxItems: 1 + required: - compatible - '#clock-cells' @@ -115,6 +119,7 @@ allOf: contains: enum: - amlogic,g12a-audio-clkc + - amlogic,s4-audio-clkc - amlogic,sm1-audio-clkc then: required: @@ -122,6 +127,18 @@ allOf: else: properties: '#reset-cells': false + - if: + properties: + compatible: + contains: + enum: + - amlogic,s4-audio-clkc + then: + required: + - power-domains + else: + properties: + power-domains: false additionalProperties: false -- 2.52.0 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 2/2] ASoC:dt-bindings:clock: Add audio power domain for S4 soc @ 2026-11-27 9:11 ` Jiebing Chen via B4 Relay 0 siblings, 0 replies; 15+ messages in thread From: Jiebing Chen @ 2026-11-27 9:11 UTC (permalink / raw) To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd, Kevin Hilman, Martin Blumenstingl, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, devicetree, Jiebing Chen The audio power domain has been found on S4 device. It must be enabled prior to audio operations. Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> --- .../bindings/clock/amlogic,axg-audio-clkc.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml index fd7982dd4cea..75ddaf8d8091 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml +++ b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml @@ -20,6 +20,7 @@ properties: enum: - amlogic,axg-audio-clkc - amlogic,g12a-audio-clkc + - amlogic,s4-audio-clkc - amlogic,sm1-audio-clkc '#clock-cells': @@ -100,6 +101,9 @@ properties: resets: description: internal reset line + power-domains: + maxItems: 1 + required: - compatible - '#clock-cells' @@ -115,6 +119,7 @@ allOf: contains: enum: - amlogic,g12a-audio-clkc + - amlogic,s4-audio-clkc - amlogic,sm1-audio-clkc then: required: @@ -122,6 +127,18 @@ allOf: else: properties: '#reset-cells': false + - if: + properties: + compatible: + contains: + enum: + - amlogic,s4-audio-clkc + then: + required: + - power-domains + else: + properties: + power-domains: false additionalProperties: false -- 2.52.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 2/2] ASoC:dt-bindings:clock: Add audio power domain for S4 soc @ 2026-11-27 9:11 ` Jiebing Chen via B4 Relay 0 siblings, 0 replies; 15+ messages in thread From: Jiebing Chen via B4 Relay @ 2026-11-27 9:11 UTC (permalink / raw) To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd, Kevin Hilman, Martin Blumenstingl, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, devicetree, Jiebing Chen From: Jiebing Chen <jiebing.chen@amlogic.com> The audio power domain has been found on S4 device. It must be enabled prior to audio operations. Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> --- .../bindings/clock/amlogic,axg-audio-clkc.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml index fd7982dd4cea..75ddaf8d8091 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml +++ b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml @@ -20,6 +20,7 @@ properties: enum: - amlogic,axg-audio-clkc - amlogic,g12a-audio-clkc + - amlogic,s4-audio-clkc - amlogic,sm1-audio-clkc '#clock-cells': @@ -100,6 +101,9 @@ properties: resets: description: internal reset line + power-domains: + maxItems: 1 + required: - compatible - '#clock-cells' @@ -115,6 +119,7 @@ allOf: contains: enum: - amlogic,g12a-audio-clkc + - amlogic,s4-audio-clkc - amlogic,sm1-audio-clkc then: required: @@ -122,6 +127,18 @@ allOf: else: properties: '#reset-cells': false + - if: + properties: + compatible: + contains: + enum: + - amlogic,s4-audio-clkc + then: + required: + - power-domains + else: + properties: + power-domains: false additionalProperties: false -- 2.52.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH 2/2] ASoC:dt-bindings:clock: Add audio power domain for S4 soc 2026-11-27 9:11 ` Jiebing Chen via B4 Relay @ 2026-11-27 9:20 ` sashiko-bot -1 siblings, 0 replies; 15+ messages in thread From: sashiko-bot @ 2026-11-27 9:20 UTC (permalink / raw) To: Jiebing Chen Cc: linux-amlogic, linux-clk, devicetree, robh, conor+dt, neil.armstrong Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] dt-bindings: clock: axg-audio-clkc: commit message omits new S4 compatible -- commit 62315ecd63c9b45b3693effbf5ae0227a2b31af3 Author: Jiebing Chen <jiebing.chen@amlogic.com> > ASoC:dt-bindings:clock: Add audio power domain for S4 soc > > The audio power domain has been found on S4 device. > It must be enabled prior to audio operations. > > Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> > diff --git a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml > index fd7982dd4ceab..75ddaf8d80917 100644 > --- a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml > +++ b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml > @@ -20,6 +20,7 @@ properties: > enum: > - amlogic,axg-audio-clkc > - amlogic,g12a-audio-clkc > + - amlogic,s4-audio-clkc > - amlogic,sm1-audio-clkc [ ... ] > @@ -115,6 +119,7 @@ allOf: > contains: > enum: > - amlogic,g12a-audio-clkc > + - amlogic,s4-audio-clkc > - amlogic,sm1-audio-clkc > then: > required: [Severity: Low] In addition to adding power-domains, this patch introduces the amlogic,s4-audio-clkc compatible string and adds it to the #reset-cells requirement, which the commit title and message do not mention. Also, the subject prefix "ASoC:dt-bindings:clock:" prepends "ASoC:" to a clock binding and omits spaces after the colons instead of using "dt-bindings: clock:". -- Sashiko AI review · https://sashiko.dev/#/patchset/20261127-clock_audio-v1-0-cf3ccf6b2bf0@amlogic.com?part=2 ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/2] ASoC:dt-bindings:clock: Add audio power domain for S4 soc @ 2026-11-27 9:20 ` sashiko-bot 0 siblings, 0 replies; 15+ messages in thread From: sashiko-bot @ 2026-11-27 9:20 UTC (permalink / raw) To: Jiebing Chen Cc: linux-amlogic, linux-clk, devicetree, robh, conor+dt, neil.armstrong Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] dt-bindings: clock: axg-audio-clkc: commit message omits new S4 compatible -- commit 62315ecd63c9b45b3693effbf5ae0227a2b31af3 Author: Jiebing Chen <jiebing.chen@amlogic.com> > ASoC:dt-bindings:clock: Add audio power domain for S4 soc > > The audio power domain has been found on S4 device. > It must be enabled prior to audio operations. > > Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> > diff --git a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml > index fd7982dd4ceab..75ddaf8d80917 100644 > --- a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml > +++ b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml > @@ -20,6 +20,7 @@ properties: > enum: > - amlogic,axg-audio-clkc > - amlogic,g12a-audio-clkc > + - amlogic,s4-audio-clkc > - amlogic,sm1-audio-clkc [ ... ] > @@ -115,6 +119,7 @@ allOf: > contains: > enum: > - amlogic,g12a-audio-clkc > + - amlogic,s4-audio-clkc > - amlogic,sm1-audio-clkc > then: > required: [Severity: Low] In addition to adding power-domains, this patch introduces the amlogic,s4-audio-clkc compatible string and adds it to the #reset-cells requirement, which the commit title and message do not mention. Also, the subject prefix "ASoC:dt-bindings:clock:" prepends "ASoC:" to a clock binding and omits spaces after the colons instead of using "dt-bindings: clock:". -- Sashiko AI review · https://sashiko.dev/#/patchset/20261127-clock_audio-v1-0-cf3ccf6b2bf0@amlogic.com?part=2 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/2] Add Amlogic S4 audio clock controller support. 2026-11-27 9:11 ` Jiebing Chen @ 2026-11-27 9:33 ` Jerome Brunet -1 siblings, 0 replies; 15+ messages in thread From: Jerome Brunet @ 2026-11-27 9:33 UTC (permalink / raw) To: Jiebing Chen via B4 Relay, Neil Armstrong, Michael Turquette, Stephen Boyd, Kevin Hilman, Martin Blumenstingl, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, devicetree, Jiebing Chen On ven. 27 nov. 2026 at 17:11, Jiebing Chen via B4 Relay <devnull+jiebing.chen.amlogic.com@kernel.org> wrote: > S4 uses the existing AXG audio clock driver and reuses the SM1 and > G12A clock hardware. Pad clock and data selection is done by pinmux, > so those pad clocks are not registered. The controller has an internal > reset line, like G12A and SM1, and an audio power domain that must be > enabled before use. The new compatible is amlogic,s4-audio-clkc; > power-domains is required for S4 and forbidden for the other > compatibles. > > Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> > --- > Jiebing Chen (2): > clk: meson: axg_audio: add S4 support > ASoC:dt-bindings:clock: Add audio power domain for S4 soc This title is messed up - Remove ASoC and proper spacing please. Also you did not collect the trailer given on the v8 by Krzysztof. Next time you send something like this, keep the series numbering please. This could either be a v8 RESEND or v9. Like this, it looks brand new, which it isn't. > > .../bindings/clock/amlogic,axg-audio-clkc.yaml | 17 +++ > drivers/clk/meson/axg-audio.c | 165 +++++++++++++++++++++ > 2 files changed, 182 insertions(+) > --- > base-commit: a0c666c25aeefd16f4b088c6549a6fb6b65a8a1d > change-id: 20261127-clock_audio-76eed7ee7ca2 > > Best regards, > -- > Jiebing Chen <jiebing.chen@amlogic.com> > > > > _______________________________________________ > linux-amlogic mailing list > linux-amlogic@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-amlogic -- Jerome ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/2] Add Amlogic S4 audio clock controller support. @ 2026-11-27 9:33 ` Jerome Brunet 0 siblings, 0 replies; 15+ messages in thread From: Jerome Brunet @ 2026-11-27 9:33 UTC (permalink / raw) To: Jiebing Chen via B4 Relay, Neil Armstrong, Michael Turquette, Stephen Boyd, Kevin Hilman, Martin Blumenstingl, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, devicetree, Jiebing Chen On ven. 27 nov. 2026 at 17:11, Jiebing Chen via B4 Relay <devnull+jiebing.chen.amlogic.com@kernel.org> wrote: > S4 uses the existing AXG audio clock driver and reuses the SM1 and > G12A clock hardware. Pad clock and data selection is done by pinmux, > so those pad clocks are not registered. The controller has an internal > reset line, like G12A and SM1, and an audio power domain that must be > enabled before use. The new compatible is amlogic,s4-audio-clkc; > power-domains is required for S4 and forbidden for the other > compatibles. > > Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> > --- > Jiebing Chen (2): > clk: meson: axg_audio: add S4 support > ASoC:dt-bindings:clock: Add audio power domain for S4 soc This title is messed up - Remove ASoC and proper spacing please. Also you did not collect the trailer given on the v8 by Krzysztof. Next time you send something like this, keep the series numbering please. This could either be a v8 RESEND or v9. Like this, it looks brand new, which it isn't. > > .../bindings/clock/amlogic,axg-audio-clkc.yaml | 17 +++ > drivers/clk/meson/axg-audio.c | 165 +++++++++++++++++++++ > 2 files changed, 182 insertions(+) > --- > base-commit: a0c666c25aeefd16f4b088c6549a6fb6b65a8a1d > change-id: 20261127-clock_audio-76eed7ee7ca2 > > Best regards, > -- > Jiebing Chen <jiebing.chen@amlogic.com> > > > > _______________________________________________ > linux-amlogic mailing list > linux-amlogic@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-amlogic -- Jerome _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/2] Add Amlogic S4 audio clock controller support. 2026-11-27 9:33 ` Jerome Brunet @ 2026-11-30 2:00 ` Jiebing Chen -1 siblings, 0 replies; 15+ messages in thread From: Jiebing Chen @ 2026-11-30 2:00 UTC (permalink / raw) To: Jerome Brunet, Jiebing Chen via B4 Relay, Neil Armstrong, Michael Turquette, Stephen Boyd, Kevin Hilman, Martin Blumenstingl, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, devicetree 在 2026/11/27 17:33, Jerome Brunet 写道: > [ EXTERNAL EMAIL ] > > On ven. 27 nov. 2026 at 17:11, Jiebing Chen via B4 Relay <devnull+jiebing.chen.amlogic.com@kernel.org> wrote: > >> S4 uses the existing AXG audio clock driver and reuses the SM1 and >> G12A clock hardware. Pad clock and data selection is done by pinmux, >> so those pad clocks are not registered. The controller has an internal >> reset line, like G12A and SM1, and an audio power domain that must be >> enabled before use. The new compatible is amlogic,s4-audio-clkc; >> power-domains is required for S4 and forbidden for the other >> compatibles. >> >> Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> >> --- >> Jiebing Chen (2): >> clk: meson: axg_audio: add S4 support >> ASoC:dt-bindings:clock: Add audio power domain for S4 soc > This title is messed up - Remove ASoC and proper spacing please. > Also you did not collect the trailer given on the v8 by Krzysztof. > > Next time you send something like this, keep the series numbering > please. This could either be a v8 RESEND or v9. Like this, it looks > brand new, which it isn't. oh, sorry, I understand. I will separate out the clk changes based on the branch used for the previous v8 submission and resend a standalone patch containing only the clk modifications. > >> .../bindings/clock/amlogic,axg-audio-clkc.yaml | 17 +++ >> drivers/clk/meson/axg-audio.c | 165 +++++++++++++++++++++ >> 2 files changed, 182 insertions(+) >> --- >> base-commit: a0c666c25aeefd16f4b088c6549a6fb6b65a8a1d >> change-id: 20261127-clock_audio-76eed7ee7ca2 >> >> Best regards, >> -- >> Jiebing Chen <jiebing.chen@amlogic.com> >> >> >> >> _______________________________________________ >> linux-amlogic mailing list >> linux-amlogic@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-amlogic > -- > Jerome ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/2] Add Amlogic S4 audio clock controller support. @ 2026-11-30 2:00 ` Jiebing Chen 0 siblings, 0 replies; 15+ messages in thread From: Jiebing Chen @ 2026-11-30 2:00 UTC (permalink / raw) To: Jerome Brunet, Jiebing Chen via B4 Relay, Neil Armstrong, Michael Turquette, Stephen Boyd, Kevin Hilman, Martin Blumenstingl, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel, devicetree 在 2026/11/27 17:33, Jerome Brunet 写道: > [ EXTERNAL EMAIL ] > > On ven. 27 nov. 2026 at 17:11, Jiebing Chen via B4 Relay <devnull+jiebing.chen.amlogic.com@kernel.org> wrote: > >> S4 uses the existing AXG audio clock driver and reuses the SM1 and >> G12A clock hardware. Pad clock and data selection is done by pinmux, >> so those pad clocks are not registered. The controller has an internal >> reset line, like G12A and SM1, and an audio power domain that must be >> enabled before use. The new compatible is amlogic,s4-audio-clkc; >> power-domains is required for S4 and forbidden for the other >> compatibles. >> >> Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com> >> --- >> Jiebing Chen (2): >> clk: meson: axg_audio: add S4 support >> ASoC:dt-bindings:clock: Add audio power domain for S4 soc > This title is messed up - Remove ASoC and proper spacing please. > Also you did not collect the trailer given on the v8 by Krzysztof. > > Next time you send something like this, keep the series numbering > please. This could either be a v8 RESEND or v9. Like this, it looks > brand new, which it isn't. oh, sorry, I understand. I will separate out the clk changes based on the branch used for the previous v8 submission and resend a standalone patch containing only the clk modifications. > >> .../bindings/clock/amlogic,axg-audio-clkc.yaml | 17 +++ >> drivers/clk/meson/axg-audio.c | 165 +++++++++++++++++++++ >> 2 files changed, 182 insertions(+) >> --- >> base-commit: a0c666c25aeefd16f4b088c6549a6fb6b65a8a1d >> change-id: 20261127-clock_audio-76eed7ee7ca2 >> >> Best regards, >> -- >> Jiebing Chen <jiebing.chen@amlogic.com> >> >> >> >> _______________________________________________ >> linux-amlogic mailing list >> linux-amlogic@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-amlogic > -- > Jerome _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2026-11-30 2:00 UTC | newest] Thread overview: 15+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-11-27 9:11 [PATCH 0/2] Add Amlogic S4 audio clock controller support Jiebing Chen via B4 Relay 2026-11-27 9:11 ` Jiebing Chen via B4 Relay 2026-11-27 9:11 ` Jiebing Chen 2026-11-27 9:11 ` [PATCH 1/2] clk: meson: axg_audio: add S4 support Jiebing Chen via B4 Relay 2026-11-27 9:11 ` Jiebing Chen via B4 Relay 2026-11-27 9:11 ` Jiebing Chen 2026-11-27 9:11 ` [PATCH 2/2] ASoC:dt-bindings:clock: Add audio power domain for S4 soc Jiebing Chen via B4 Relay 2026-11-27 9:11 ` Jiebing Chen 2026-11-27 9:11 ` Jiebing Chen via B4 Relay 2026-11-27 9:20 ` sashiko-bot 2026-11-27 9:20 ` sashiko-bot 2026-11-27 9:33 ` [PATCH 0/2] Add Amlogic S4 audio clock controller support Jerome Brunet 2026-11-27 9:33 ` Jerome Brunet 2026-11-30 2:00 ` Jiebing Chen 2026-11-30 2:00 ` Jiebing Chen
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.