devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A
@ 2025-02-26 16:45 Laurentiu Mihalcea
  2025-02-26 16:45 ` [PATCH v3 1/4] dt-bindings: clock: imx8mp: add axi clock Laurentiu Mihalcea
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Laurentiu Mihalcea @ 2025-02-26 16:45 UTC (permalink / raw)
  To: Abel Vesa, Peng Fan, Rob Herring, Krzysztof Kozlowski, Shawn Guo,
	Marek Vasut, Stephen Boyd, Shengjiu Wang, Adam Ford
  Cc: Pengutronix Kernel Team, linux-clk, imx, devicetree,
	linux-arm-kernel, linux-kernel

From: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>

Correct the parent of the AUDIOMIX DSP and OCRAM_A clock gates by setting
it to AUDIO_AXI_CLK_ROOT, instead of AUDIO_AHB_CLK_ROOT. Additionally, set
the frequency of AUDIO_AXI_CLK_ROOT to 800MHz instead of the current
400MHz.

---
Changes in v3:
* add missing Fixes tag for binding patch
* improve the commit message of the binding patch
* link to v2: https://lore.kernel.org/imx/20250221190929.31469-1-laurentiumihalcea111@gmail.com/

Changes in v2:
* add Fixes tags
* add Iulia's R-b
* link to v1: https://lore.kernel.org/imx/20250217165718.74619-1-laurentiumihalcea111@gmail.com/
---

Laurentiu Mihalcea (4):
  dt-bindings: clock: imx8mp: add axi clock
  clk: clk-imx8mp-audiomix: fix dsp/ocram_a clock parents
  arm64: dts: imx8mp: add AUDIO_AXI_CLK_ROOT to AUDIOMIX block
  arm64: dts: imx8mp: change AUDIO_AXI_CLK_ROOT freq. to 800MHz

 .../devicetree/bindings/clock/imx8mp-audiomix.yaml     | 10 ++++++----
 arch/arm64/boot/dts/freescale/imx8mp.dtsi              |  7 ++++---
 drivers/clk/imx/clk-imx8mp-audiomix.c                  |  6 +++---
 3 files changed, 13 insertions(+), 10 deletions(-)

-- 
2.34.1


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

* [PATCH v3 1/4] dt-bindings: clock: imx8mp: add axi clock
  2025-02-26 16:45 [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A Laurentiu Mihalcea
@ 2025-02-26 16:45 ` Laurentiu Mihalcea
  2025-02-27  7:48   ` Krzysztof Kozlowski
  2025-02-26 16:45 ` [PATCH v3 2/4] clk: clk-imx8mp-audiomix: fix dsp/ocram_a clock parents Laurentiu Mihalcea
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 12+ messages in thread
From: Laurentiu Mihalcea @ 2025-02-26 16:45 UTC (permalink / raw)
  To: Abel Vesa, Peng Fan, Rob Herring, Krzysztof Kozlowski, Shawn Guo,
	Marek Vasut, Stephen Boyd, Shengjiu Wang, Adam Ford
  Cc: Pengutronix Kernel Team, linux-clk, imx, devicetree,
	linux-arm-kernel, linux-kernel

From: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>

Some components of AUDIOMIX (i.e: DSP, OCRAM_A) are clocked by
AUDIO_AXI_CLK_ROOT. Since the AUDIOMIX block control manages the clock
gates for those components, include their root clock in the list of clocks
consumed by the IP.

Fixes: 95a0aa7bb10e ("dt-bindings: clock: imx8mp: Add audiomix block control")
Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
---
 .../devicetree/bindings/clock/imx8mp-audiomix.yaml     | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/clock/imx8mp-audiomix.yaml b/Documentation/devicetree/bindings/clock/imx8mp-audiomix.yaml
index 6588a17a7d9a..0272c9527037 100644
--- a/Documentation/devicetree/bindings/clock/imx8mp-audiomix.yaml
+++ b/Documentation/devicetree/bindings/clock/imx8mp-audiomix.yaml
@@ -24,8 +24,8 @@ properties:
     maxItems: 1
 
   clocks:
-    minItems: 7
-    maxItems: 7
+    minItems: 8
+    maxItems: 8
 
   clock-names:
     items:
@@ -36,6 +36,7 @@ properties:
       - const: sai5
       - const: sai6
       - const: sai7
+      - const: axi
 
   '#clock-cells':
     const: 1
@@ -72,10 +73,11 @@ examples:
                  <&clk IMX8MP_CLK_SAI3>,
                  <&clk IMX8MP_CLK_SAI5>,
                  <&clk IMX8MP_CLK_SAI6>,
-                 <&clk IMX8MP_CLK_SAI7>;
+                 <&clk IMX8MP_CLK_SAI7>,
+                 <&clk IMX8MP_CLK_AUDIO_AXI_ROOT>;
         clock-names = "ahb",
                       "sai1", "sai2", "sai3",
-                      "sai5", "sai6", "sai7";
+                      "sai5", "sai6", "sai7", "axi";
         power-domains = <&pgc_audio>;
     };
 
-- 
2.34.1


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

* [PATCH v3 2/4] clk: clk-imx8mp-audiomix: fix dsp/ocram_a clock parents
  2025-02-26 16:45 [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A Laurentiu Mihalcea
  2025-02-26 16:45 ` [PATCH v3 1/4] dt-bindings: clock: imx8mp: add axi clock Laurentiu Mihalcea
@ 2025-02-26 16:45 ` Laurentiu Mihalcea
  2025-02-26 16:45 ` [PATCH v3 3/4] arm64: dts: imx8mp: add AUDIO_AXI_CLK_ROOT to AUDIOMIX block Laurentiu Mihalcea
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: Laurentiu Mihalcea @ 2025-02-26 16:45 UTC (permalink / raw)
  To: Abel Vesa, Peng Fan, Rob Herring, Krzysztof Kozlowski, Shawn Guo,
	Marek Vasut, Stephen Boyd, Shengjiu Wang, Adam Ford
  Cc: Pengutronix Kernel Team, linux-clk, imx, devicetree,
	linux-arm-kernel, linux-kernel

From: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>

The DSP and OCRAM_A modules from AUDIOMIX are clocked by
AUDIO_AXI_CLK_ROOT, not AUDIO_AHB_CLK_ROOT. Update the clock data
accordingly.

Fixes: 6cd95f7b151c ("clk: imx: imx8mp: Add audiomix block control")
Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
---
 drivers/clk/imx/clk-imx8mp-audiomix.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/clk/imx/clk-imx8mp-audiomix.c b/drivers/clk/imx/clk-imx8mp-audiomix.c
index c409fc7e0618..775f62dddb11 100644
--- a/drivers/clk/imx/clk-imx8mp-audiomix.c
+++ b/drivers/clk/imx/clk-imx8mp-audiomix.c
@@ -180,14 +180,14 @@ static struct clk_imx8mp_audiomix_sel sels[] = {
 	CLK_GATE("asrc", ASRC_IPG),
 	CLK_GATE("pdm", PDM_IPG),
 	CLK_GATE("earc", EARC_IPG),
-	CLK_GATE("ocrama", OCRAMA_IPG),
+	CLK_GATE_PARENT("ocrama", OCRAMA_IPG, "axi"),
 	CLK_GATE("aud2htx", AUD2HTX_IPG),
 	CLK_GATE_PARENT("earc_phy", EARC_PHY, "sai_pll_out_div2"),
 	CLK_GATE("sdma2", SDMA2_ROOT),
 	CLK_GATE("sdma3", SDMA3_ROOT),
 	CLK_GATE("spba2", SPBA2_ROOT),
-	CLK_GATE("dsp", DSP_ROOT),
-	CLK_GATE("dspdbg", DSPDBG_ROOT),
+	CLK_GATE_PARENT("dsp", DSP_ROOT, "axi"),
+	CLK_GATE_PARENT("dspdbg", DSPDBG_ROOT, "axi"),
 	CLK_GATE("edma", EDMA_ROOT),
 	CLK_GATE_PARENT("audpll", AUDPLL_ROOT, "osc_24m"),
 	CLK_GATE("mu2", MU2_ROOT),
-- 
2.34.1


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

* [PATCH v3 3/4] arm64: dts: imx8mp: add AUDIO_AXI_CLK_ROOT to AUDIOMIX block
  2025-02-26 16:45 [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A Laurentiu Mihalcea
  2025-02-26 16:45 ` [PATCH v3 1/4] dt-bindings: clock: imx8mp: add axi clock Laurentiu Mihalcea
  2025-02-26 16:45 ` [PATCH v3 2/4] clk: clk-imx8mp-audiomix: fix dsp/ocram_a clock parents Laurentiu Mihalcea
@ 2025-02-26 16:45 ` Laurentiu Mihalcea
  2025-03-11  3:04   ` Shawn Guo
  2025-02-26 16:45 ` [PATCH v3 4/4] arm64: dts: imx8mp: change AUDIO_AXI_CLK_ROOT freq. to 800MHz Laurentiu Mihalcea
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 12+ messages in thread
From: Laurentiu Mihalcea @ 2025-02-26 16:45 UTC (permalink / raw)
  To: Abel Vesa, Peng Fan, Rob Herring, Krzysztof Kozlowski, Shawn Guo,
	Marek Vasut, Stephen Boyd, Shengjiu Wang, Adam Ford
  Cc: Pengutronix Kernel Team, linux-clk, imx, devicetree,
	linux-arm-kernel, linux-kernel

From: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>

Needed because the DSP and OCRAM_A components from AUDIOMIX are clocked
by AUDIO_AXI_CLK_ROOT instead of AUDIO_AHB_CLK_ROOT.

Fixes: b86c3afabb4f ("arm64: dts: imx8mp: Add SAI, SDMA, AudioMIX")
Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index e0d3b8cba221..86c3055789ba 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -1619,10 +1619,11 @@ audio_blk_ctrl: clock-controller@30e20000 {
 					 <&clk IMX8MP_CLK_SAI3>,
 					 <&clk IMX8MP_CLK_SAI5>,
 					 <&clk IMX8MP_CLK_SAI6>,
-					 <&clk IMX8MP_CLK_SAI7>;
+					 <&clk IMX8MP_CLK_SAI7>,
+					 <&clk IMX8MP_CLK_AUDIO_AXI_ROOT>;
 				clock-names = "ahb",
 					      "sai1", "sai2", "sai3",
-					      "sai5", "sai6", "sai7";
+					      "sai5", "sai6", "sai7", "axi";
 				power-domains = <&pgc_audio>;
 				assigned-clocks = <&clk IMX8MP_AUDIO_PLL1>,
 						  <&clk IMX8MP_AUDIO_PLL2>;
-- 
2.34.1


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

* [PATCH v3 4/4] arm64: dts: imx8mp: change AUDIO_AXI_CLK_ROOT freq. to 800MHz
  2025-02-26 16:45 [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A Laurentiu Mihalcea
                   ` (2 preceding siblings ...)
  2025-02-26 16:45 ` [PATCH v3 3/4] arm64: dts: imx8mp: add AUDIO_AXI_CLK_ROOT to AUDIOMIX block Laurentiu Mihalcea
@ 2025-02-26 16:45 ` Laurentiu Mihalcea
  2025-03-11  3:04   ` Shawn Guo
  2025-02-27  2:22 ` [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A Peng Fan
  2025-03-03 17:30 ` Abel Vesa
  5 siblings, 1 reply; 12+ messages in thread
From: Laurentiu Mihalcea @ 2025-02-26 16:45 UTC (permalink / raw)
  To: Abel Vesa, Peng Fan, Rob Herring, Krzysztof Kozlowski, Shawn Guo,
	Marek Vasut, Stephen Boyd, Shengjiu Wang, Adam Ford
  Cc: Pengutronix Kernel Team, linux-clk, imx, devicetree,
	linux-arm-kernel, linux-kernel

From: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>

AUDIO_AXI_CLK_ROOT can't run at currently requested 600MHz w/ its parent
SYS_PLL1 configured at 800MHz. Configure it to run at 800MHz as some
applications running on the DSP expect the core to run at this frequency
anyways. This change also affects the AUDIOMIX NoC.

Fixes: b739681b3f8b ("arm64: dts: imx8mp: Fix SDMA2/3 clocks")
Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index 86c3055789ba..54147bce3b83 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -834,7 +834,7 @@ pgc_audio: power-domain@5 {
 						assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_800M>,
 									 <&clk IMX8MP_SYS_PLL1_800M>;
 						assigned-clock-rates = <400000000>,
-								       <600000000>;
+								       <800000000>;
 					};
 
 					pgc_gpu2d: power-domain@6 {
-- 
2.34.1


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

* Re: [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A
  2025-02-26 16:45 [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A Laurentiu Mihalcea
                   ` (3 preceding siblings ...)
  2025-02-26 16:45 ` [PATCH v3 4/4] arm64: dts: imx8mp: change AUDIO_AXI_CLK_ROOT freq. to 800MHz Laurentiu Mihalcea
@ 2025-02-27  2:22 ` Peng Fan
  2025-03-03 17:30 ` Abel Vesa
  5 siblings, 0 replies; 12+ messages in thread
From: Peng Fan @ 2025-02-27  2:22 UTC (permalink / raw)
  To: Laurentiu Mihalcea
  Cc: Abel Vesa, Peng Fan, Rob Herring, Krzysztof Kozlowski, Shawn Guo,
	Marek Vasut, Stephen Boyd, Shengjiu Wang, Adam Ford,
	Pengutronix Kernel Team, linux-clk, imx, devicetree,
	linux-arm-kernel, linux-kernel

On Wed, Feb 26, 2025 at 11:45:09AM -0500, Laurentiu Mihalcea wrote:
>From: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
>
>Correct the parent of the AUDIOMIX DSP and OCRAM_A clock gates by setting
>it to AUDIO_AXI_CLK_ROOT, instead of AUDIO_AHB_CLK_ROOT. Additionally, set
>the frequency of AUDIO_AXI_CLK_ROOT to 800MHz instead of the current
>400MHz.
>
>---
>Changes in v3:
>* add missing Fixes tag for binding patch
>* improve the commit message of the binding patch
>* link to v2: https://lore.kernel.org/imx/20250221190929.31469-1-laurentiumihalcea111@gmail.com/
>
>Changes in v2:
>* add Fixes tags
>* add Iulia's R-b
>* link to v1: https://lore.kernel.org/imx/20250217165718.74619-1-laurentiumihalcea111@gmail.com/
>---
>
>Laurentiu Mihalcea (4):
>  dt-bindings: clock: imx8mp: add axi clock
>  clk: clk-imx8mp-audiomix: fix dsp/ocram_a clock parents
>  arm64: dts: imx8mp: add AUDIO_AXI_CLK_ROOT to AUDIOMIX block
>  arm64: dts: imx8mp: change AUDIO_AXI_CLK_ROOT freq. to 800MHz
>
> .../devicetree/bindings/clock/imx8mp-audiomix.yaml     | 10 ++++++----
> arch/arm64/boot/dts/freescale/imx8mp.dtsi              |  7 ++++---
> drivers/clk/imx/clk-imx8mp-audiomix.c                  |  6 +++---
> 3 files changed, 13 insertions(+), 10 deletions(-)

For the patchset:
Reviewed-by: Peng Fan <peng.fan@nxp.com>

>
>-- 
>2.34.1
>

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

* Re: [PATCH v3 1/4] dt-bindings: clock: imx8mp: add axi clock
  2025-02-26 16:45 ` [PATCH v3 1/4] dt-bindings: clock: imx8mp: add axi clock Laurentiu Mihalcea
@ 2025-02-27  7:48   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-27  7:48 UTC (permalink / raw)
  To: Laurentiu Mihalcea
  Cc: Abel Vesa, Peng Fan, Rob Herring, Krzysztof Kozlowski, Shawn Guo,
	Marek Vasut, Stephen Boyd, Shengjiu Wang, Adam Ford,
	Pengutronix Kernel Team, linux-clk, imx, devicetree,
	linux-arm-kernel, linux-kernel

On Wed, Feb 26, 2025 at 11:45:10AM -0500, Laurentiu Mihalcea wrote:
> From: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
> 
> Some components of AUDIOMIX (i.e: DSP, OCRAM_A) are clocked by
> AUDIO_AXI_CLK_ROOT. Since the AUDIOMIX block control manages the clock
> gates for those components, include their root clock in the list of clocks
> consumed by the IP.
> 
> Fixes: 95a0aa7bb10e ("dt-bindings: clock: imx8mp: Add audiomix block control")
> Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
> Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
> ---
>  .../devicetree/bindings/clock/imx8mp-audiomix.yaml     | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A
  2025-02-26 16:45 [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A Laurentiu Mihalcea
                   ` (4 preceding siblings ...)
  2025-02-27  2:22 ` [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A Peng Fan
@ 2025-03-03 17:30 ` Abel Vesa
  2025-03-03 17:33   ` Abel Vesa
  5 siblings, 1 reply; 12+ messages in thread
From: Abel Vesa @ 2025-03-03 17:30 UTC (permalink / raw)
  To: Abel Vesa, Peng Fan, Rob Herring, Krzysztof Kozlowski, Shawn Guo,
	Marek Vasut, Stephen Boyd, Shengjiu Wang, Adam Ford,
	Laurentiu Mihalcea
  Cc: Pengutronix Kernel Team, linux-clk, imx, devicetree,
	linux-arm-kernel, linux-kernel


On Wed, 26 Feb 2025 11:45:09 -0500, Laurentiu Mihalcea wrote:
> Correct the parent of the AUDIOMIX DSP and OCRAM_A clock gates by setting
> it to AUDIO_AXI_CLK_ROOT, instead of AUDIO_AHB_CLK_ROOT. Additionally, set
> the frequency of AUDIO_AXI_CLK_ROOT to 800MHz instead of the current
> 400MHz.
> 

Applied, thanks!

[1/4] dt-bindings: clock: imx8mp: add axi clock
      commit: 2471a101938b0d1835b1983df08daeb98eef1205
[2/4] clk: clk-imx8mp-audiomix: fix dsp/ocram_a clock parents
      commit: 91be7d27099dedf813b80702e4ca117d1fb38ce6
[3/4] arm64: dts: imx8mp: add AUDIO_AXI_CLK_ROOT to AUDIOMIX block
      (no commit info)
[4/4] arm64: dts: imx8mp: change AUDIO_AXI_CLK_ROOT freq. to 800MHz
      (no commit info)

Best regards,
-- 
Abel Vesa <abel.vesa@linaro.org>


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

* Re: [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A
  2025-03-03 17:30 ` Abel Vesa
@ 2025-03-03 17:33   ` Abel Vesa
  2025-03-04 15:34     ` Laurentiu Mihalcea
  0 siblings, 1 reply; 12+ messages in thread
From: Abel Vesa @ 2025-03-03 17:33 UTC (permalink / raw)
  To: Abel Vesa, Peng Fan, Rob Herring, Krzysztof Kozlowski, Shawn Guo,
	Marek Vasut, Stephen Boyd, Shengjiu Wang, Adam Ford,
	Laurentiu Mihalcea
  Cc: Pengutronix Kernel Team, linux-clk, imx, devicetree,
	linux-arm-kernel, linux-kernel

On 25-03-03 19:30:58, Abel Vesa wrote:
> 
> On Wed, 26 Feb 2025 11:45:09 -0500, Laurentiu Mihalcea wrote:
> > Correct the parent of the AUDIOMIX DSP and OCRAM_A clock gates by setting
> > it to AUDIO_AXI_CLK_ROOT, instead of AUDIO_AHB_CLK_ROOT. Additionally, set
> > the frequency of AUDIO_AXI_CLK_ROOT to 800MHz instead of the current
> > 400MHz.
> > 
> 
> Applied, thanks!
> 
> [1/4] dt-bindings: clock: imx8mp: add axi clock
>       commit: 2471a101938b0d1835b1983df08daeb98eef1205
> [2/4] clk: clk-imx8mp-audiomix: fix dsp/ocram_a clock parents
>       commit: 91be7d27099dedf813b80702e4ca117d1fb38ce6
> [3/4] arm64: dts: imx8mp: add AUDIO_AXI_CLK_ROOT to AUDIOMIX block
>       (no commit info)
> [4/4] arm64: dts: imx8mp: change AUDIO_AXI_CLK_ROOT freq. to 800MHz
>       (no commit info)

Applied only patches 1 and 2.

My b4 setup messed up. Sorry.

> 
> Best regards,
> -- 
> Abel Vesa <abel.vesa@linaro.org>
> 

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

* Re: [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A
  2025-03-03 17:33   ` Abel Vesa
@ 2025-03-04 15:34     ` Laurentiu Mihalcea
  0 siblings, 0 replies; 12+ messages in thread
From: Laurentiu Mihalcea @ 2025-03-04 15:34 UTC (permalink / raw)
  To: Abel Vesa, Abel Vesa, Peng Fan, Rob Herring, Krzysztof Kozlowski,
	Shawn Guo, Marek Vasut, Stephen Boyd, Shengjiu Wang, Adam Ford
  Cc: Pengutronix Kernel Team, linux-clk, imx, devicetree,
	linux-arm-kernel, linux-kernel



On 3/3/2025 7:33 PM, Abel Vesa wrote:
> On 25-03-03 19:30:58, Abel Vesa wrote:
>> On Wed, 26 Feb 2025 11:45:09 -0500, Laurentiu Mihalcea wrote:
>>> Correct the parent of the AUDIOMIX DSP and OCRAM_A clock gates by setting
>>> it to AUDIO_AXI_CLK_ROOT, instead of AUDIO_AHB_CLK_ROOT. Additionally, set
>>> the frequency of AUDIO_AXI_CLK_ROOT to 800MHz instead of the current
>>> 400MHz.
>>>
>> Applied, thanks!
>>
>> [1/4] dt-bindings: clock: imx8mp: add axi clock
>>       commit: 2471a101938b0d1835b1983df08daeb98eef1205
>> [2/4] clk: clk-imx8mp-audiomix: fix dsp/ocram_a clock parents
>>       commit: 91be7d27099dedf813b80702e4ca117d1fb38ce6
>> [3/4] arm64: dts: imx8mp: add AUDIO_AXI_CLK_ROOT to AUDIOMIX block
>>       (no commit info)
>> [4/4] arm64: dts: imx8mp: change AUDIO_AXI_CLK_ROOT freq. to 800MHz
>>       (no commit info)
> Applied only patches 1 and 2.
>
> My b4 setup messed up. Sorry.
would it be possible to also have patch no. 3 merged via the IMX CLK tree? I'd like to at least keep the first 3 patches together as they all fix the issue of OCRAM_A/DSP clocks having the wrong parent. if not, Shawn would you mind picking up patches 3 and 4? Thanks!

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

* Re: [PATCH v3 3/4] arm64: dts: imx8mp: add AUDIO_AXI_CLK_ROOT to AUDIOMIX block
  2025-02-26 16:45 ` [PATCH v3 3/4] arm64: dts: imx8mp: add AUDIO_AXI_CLK_ROOT to AUDIOMIX block Laurentiu Mihalcea
@ 2025-03-11  3:04   ` Shawn Guo
  0 siblings, 0 replies; 12+ messages in thread
From: Shawn Guo @ 2025-03-11  3:04 UTC (permalink / raw)
  To: Laurentiu Mihalcea
  Cc: Abel Vesa, Peng Fan, Rob Herring, Krzysztof Kozlowski, Shawn Guo,
	Marek Vasut, Stephen Boyd, Shengjiu Wang, Adam Ford,
	Pengutronix Kernel Team, linux-clk, imx, devicetree,
	linux-arm-kernel, linux-kernel

On Wed, Feb 26, 2025 at 11:45:12AM -0500, Laurentiu Mihalcea wrote:
> From: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
> 
> Needed because the DSP and OCRAM_A components from AUDIOMIX are clocked
> by AUDIO_AXI_CLK_ROOT instead of AUDIO_AHB_CLK_ROOT.
> 
> Fixes: b86c3afabb4f ("arm64: dts: imx8mp: Add SAI, SDMA, AudioMIX")
> Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
> Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>

Applied, thanks!


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

* Re: [PATCH v3 4/4] arm64: dts: imx8mp: change AUDIO_AXI_CLK_ROOT freq. to 800MHz
  2025-02-26 16:45 ` [PATCH v3 4/4] arm64: dts: imx8mp: change AUDIO_AXI_CLK_ROOT freq. to 800MHz Laurentiu Mihalcea
@ 2025-03-11  3:04   ` Shawn Guo
  0 siblings, 0 replies; 12+ messages in thread
From: Shawn Guo @ 2025-03-11  3:04 UTC (permalink / raw)
  To: Laurentiu Mihalcea
  Cc: Abel Vesa, Peng Fan, Rob Herring, Krzysztof Kozlowski, Shawn Guo,
	Marek Vasut, Stephen Boyd, Shengjiu Wang, Adam Ford,
	Pengutronix Kernel Team, linux-clk, imx, devicetree,
	linux-arm-kernel, linux-kernel

On Wed, Feb 26, 2025 at 11:45:13AM -0500, Laurentiu Mihalcea wrote:
> From: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
> 
> AUDIO_AXI_CLK_ROOT can't run at currently requested 600MHz w/ its parent
> SYS_PLL1 configured at 800MHz. Configure it to run at 800MHz as some
> applications running on the DSP expect the core to run at this frequency
> anyways. This change also affects the AUDIOMIX NoC.
> 
> Fixes: b739681b3f8b ("arm64: dts: imx8mp: Fix SDMA2/3 clocks")
> Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
> Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>

Applied, thanks!


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

end of thread, other threads:[~2025-03-11  3:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26 16:45 [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A Laurentiu Mihalcea
2025-02-26 16:45 ` [PATCH v3 1/4] dt-bindings: clock: imx8mp: add axi clock Laurentiu Mihalcea
2025-02-27  7:48   ` Krzysztof Kozlowski
2025-02-26 16:45 ` [PATCH v3 2/4] clk: clk-imx8mp-audiomix: fix dsp/ocram_a clock parents Laurentiu Mihalcea
2025-02-26 16:45 ` [PATCH v3 3/4] arm64: dts: imx8mp: add AUDIO_AXI_CLK_ROOT to AUDIOMIX block Laurentiu Mihalcea
2025-03-11  3:04   ` Shawn Guo
2025-02-26 16:45 ` [PATCH v3 4/4] arm64: dts: imx8mp: change AUDIO_AXI_CLK_ROOT freq. to 800MHz Laurentiu Mihalcea
2025-03-11  3:04   ` Shawn Guo
2025-02-27  2:22 ` [PATCH v3 0/4] clk: imx8mp: fix parents of AUDIOMIX DSP/OCRAM_A Peng Fan
2025-03-03 17:30 ` Abel Vesa
2025-03-03 17:33   ` Abel Vesa
2025-03-04 15:34     ` Laurentiu Mihalcea

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).