linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] dt-bindings: clock: mt7622: Add AFE_MRGIF clock
@ 2025-07-24  8:39 AngeloGioacchino Del Regno
  2025-07-24  8:39 ` [PATCH 2/3] clk: mediatek: mt7622-aud: Add missing " AngeloGioacchino Del Regno
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-07-24  8:39 UTC (permalink / raw)
  To: robh
  Cc: krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
	mturquette, sboyd, geert+renesas, u.kleine-koenig, devicetree,
	linux-kernel, linux-arm-kernel, linux-mediatek, linux-clk, kernel

Add the missing AFE Merge Interface clock to MT7622 to make use of
it in the audio subsystem.

While at it, also remove the useless CLK_AUDIO_NR_CLK definition.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 include/dt-bindings/clock/mt7622-clk.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/dt-bindings/clock/mt7622-clk.h b/include/dt-bindings/clock/mt7622-clk.h
index c12e7eab0788..a173eb132892 100644
--- a/include/dt-bindings/clock/mt7622-clk.h
+++ b/include/dt-bindings/clock/mt7622-clk.h
@@ -228,7 +228,7 @@
 #define CLK_AUDIO_MEM_ASRC4		44
 #define CLK_AUDIO_MEM_ASRC5		45
 #define CLK_AUDIO_AFE_CONN		46
-#define CLK_AUDIO_NR_CLK		47
+#define CLK_AUDIO_AFE_MRGIF		47
 
 /* SSUSBSYS */
 
-- 
2.50.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/3] clk: mediatek: mt7622-aud: Add missing AFE_MRGIF clock
  2025-07-24  8:39 [PATCH 1/3] dt-bindings: clock: mt7622: Add AFE_MRGIF clock AngeloGioacchino Del Regno
@ 2025-07-24  8:39 ` AngeloGioacchino Del Regno
  2025-07-24  8:39 ` [PATCH 3/3] arm64: dts: mediatek: mt7622: Add missing audio_mrgif_pd clock AngeloGioacchino Del Regno
  2025-07-25 23:12 ` [PATCH 1/3] dt-bindings: clock: mt7622: Add AFE_MRGIF clock Rob Herring (Arm)
  2 siblings, 0 replies; 4+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-07-24  8:39 UTC (permalink / raw)
  To: robh
  Cc: krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
	mturquette, sboyd, geert+renesas, u.kleine-koenig, devicetree,
	linux-kernel, linux-arm-kernel, linux-mediatek, linux-clk, kernel

Add the AFE Merge Interface clock used for the audio subsystem.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 drivers/clk/mediatek/clk-mt7622-aud.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/mediatek/clk-mt7622-aud.c b/drivers/clk/mediatek/clk-mt7622-aud.c
index 931a0598e598..a4ea5e20efa2 100644
--- a/drivers/clk/mediatek/clk-mt7622-aud.c
+++ b/drivers/clk/mediatek/clk-mt7622-aud.c
@@ -75,6 +75,7 @@ static const struct mtk_gate audio_clks[] = {
 	GATE_AUDIO1(CLK_AUDIO_A1SYS, "audio_a1sys", "a1sys_hp_sel", 21),
 	GATE_AUDIO1(CLK_AUDIO_A2SYS, "audio_a2sys", "a2sys_hp_sel", 22),
 	GATE_AUDIO1(CLK_AUDIO_AFE_CONN, "audio_afe_conn", "a1sys_hp_sel", 23),
+	GATE_AUDIO1(CLK_AUDIO_AFE_MRGIF, "audio_afe_mrgif", "aud_mux1_sel", 25),
 	/* AUDIO2 */
 	GATE_AUDIO2(CLK_AUDIO_UL1, "audio_ul1", "a1sys_hp_sel", 0),
 	GATE_AUDIO2(CLK_AUDIO_UL2, "audio_ul2", "a1sys_hp_sel", 1),
-- 
2.50.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/3] arm64: dts: mediatek: mt7622: Add missing audio_mrgif_pd clock
  2025-07-24  8:39 [PATCH 1/3] dt-bindings: clock: mt7622: Add AFE_MRGIF clock AngeloGioacchino Del Regno
  2025-07-24  8:39 ` [PATCH 2/3] clk: mediatek: mt7622-aud: Add missing " AngeloGioacchino Del Regno
@ 2025-07-24  8:39 ` AngeloGioacchino Del Regno
  2025-07-25 23:12 ` [PATCH 1/3] dt-bindings: clock: mt7622: Add AFE_MRGIF clock Rob Herring (Arm)
  2 siblings, 0 replies; 4+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-07-24  8:39 UTC (permalink / raw)
  To: robh
  Cc: krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
	mturquette, sboyd, geert+renesas, u.kleine-koenig, devicetree,
	linux-kernel, linux-arm-kernel, linux-mediatek, linux-clk, kernel

Add the missing audio merge interface clock to the audio-controller
node to enable the ability to merge AFE connections.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
index 917fa39a74f8..308c23b9de28 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
@@ -650,7 +650,8 @@ afe: audio-controller {
 				 <&audsys CLK_AUDIO_AFE>,
 				 <&audsys CLK_AUDIO_AFE_CONN>,
 				 <&audsys CLK_AUDIO_A1SYS>,
-				 <&audsys CLK_AUDIO_A2SYS>;
+				 <&audsys CLK_AUDIO_A2SYS>,
+				 <&audsys CLK_AUDIO_AFE_MRGIF>;
 
 			clock-names = "infra_sys_audio_clk",
 				      "top_audio_mux1_sel",
@@ -684,7 +685,8 @@ afe: audio-controller {
 				      "audio_afe_pd",
 				      "audio_afe_conn_pd",
 				      "audio_a1sys_pd",
-				      "audio_a2sys_pd";
+				      "audio_a2sys_pd",
+				      "audio_mrgif_pd";
 
 			assigned-clocks = <&topckgen CLK_TOP_A1SYS_HP_SEL>,
 					  <&topckgen CLK_TOP_A2SYS_HP_SEL>,
-- 
2.50.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/3] dt-bindings: clock: mt7622: Add AFE_MRGIF clock
  2025-07-24  8:39 [PATCH 1/3] dt-bindings: clock: mt7622: Add AFE_MRGIF clock AngeloGioacchino Del Regno
  2025-07-24  8:39 ` [PATCH 2/3] clk: mediatek: mt7622-aud: Add missing " AngeloGioacchino Del Regno
  2025-07-24  8:39 ` [PATCH 3/3] arm64: dts: mediatek: mt7622: Add missing audio_mrgif_pd clock AngeloGioacchino Del Regno
@ 2025-07-25 23:12 ` Rob Herring (Arm)
  2 siblings, 0 replies; 4+ messages in thread
From: Rob Herring (Arm) @ 2025-07-25 23:12 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno
  Cc: u.kleine-koenig, mturquette, linux-clk, linux-kernel, sboyd,
	krzk+dt, linux-arm-kernel, geert+renesas, kernel, devicetree,
	linux-mediatek, conor+dt, matthias.bgg


On Thu, 24 Jul 2025 10:39:05 +0200, AngeloGioacchino Del Regno wrote:
> Add the missing AFE Merge Interface clock to MT7622 to make use of
> it in the audio subsystem.
> 
> While at it, also remove the useless CLK_AUDIO_NR_CLK definition.
> 
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
>  include/dt-bindings/clock/mt7622-clk.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-07-25 23:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-24  8:39 [PATCH 1/3] dt-bindings: clock: mt7622: Add AFE_MRGIF clock AngeloGioacchino Del Regno
2025-07-24  8:39 ` [PATCH 2/3] clk: mediatek: mt7622-aud: Add missing " AngeloGioacchino Del Regno
2025-07-24  8:39 ` [PATCH 3/3] arm64: dts: mediatek: mt7622: Add missing audio_mrgif_pd clock AngeloGioacchino Del Regno
2025-07-25 23:12 ` [PATCH 1/3] dt-bindings: clock: mt7622: Add AFE_MRGIF clock Rob Herring (Arm)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).