All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] mips: dts: ingenic: Remove unnecessary AIC clocks
@ 2023-05-05 14:24 Aidan MacDonald
  2023-05-05 16:53 ` Paul Cercueil
  2023-05-23  9:07 ` Thomas Bogendoerfer
  0 siblings, 2 replies; 3+ messages in thread
From: Aidan MacDonald @ 2023-05-05 14:24 UTC (permalink / raw)
  To: tsbogend
  Cc: paul, robh+dt, krzysztof.kozlowski+dt, linux-mips, devicetree,
	linux-kernel

The "ext" and "pll half" clocks don't belong in the DT. They are
not consumed directly by the AIC and are only used as the parent
clocks of the "i2s" clock. An operating system should be able to
figure out that information itself because it presumably knows the
layout of the clock tree.

Removing these from the DT should be safe from a compatibility
point of view because the jz4740-i2s driver in Linux does not, and
never did depend on them.

Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/all/20221028103418.17578-1-aidanmacdonald.0x0@gmail.com/
---
This is a resend of patch 2/3 from a previous submission which is linked above.

v1->v2: updated commit message

 arch/mips/boot/dts/ingenic/jz4725b.dtsi | 7 ++-----
 arch/mips/boot/dts/ingenic/jz4740.dtsi  | 7 ++-----
 arch/mips/boot/dts/ingenic/jz4770.dtsi  | 5 ++---
 3 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/arch/mips/boot/dts/ingenic/jz4725b.dtsi b/arch/mips/boot/dts/ingenic/jz4725b.dtsi
index e9e48022f631..acbbe8c4664c 100644
--- a/arch/mips/boot/dts/ingenic/jz4725b.dtsi
+++ b/arch/mips/boot/dts/ingenic/jz4725b.dtsi
@@ -198,11 +198,8 @@ aic: audio-controller@10020000 {
 
 		#sound-dai-cells = <0>;
 
-		clocks = <&cgu JZ4725B_CLK_AIC>,
-			 <&cgu JZ4725B_CLK_I2S>,
-			 <&cgu JZ4725B_CLK_EXT>,
-			 <&cgu JZ4725B_CLK_PLL_HALF>;
-		clock-names = "aic", "i2s", "ext", "pll half";
+		clocks = <&cgu JZ4725B_CLK_AIC>, <&cgu JZ4725B_CLK_I2S>;
+		clock-names = "aic", "i2s";
 
 		interrupt-parent = <&intc>;
 		interrupts = <10>;
diff --git a/arch/mips/boot/dts/ingenic/jz4740.dtsi b/arch/mips/boot/dts/ingenic/jz4740.dtsi
index 7f76cba03a08..bdd6f4d82ec9 100644
--- a/arch/mips/boot/dts/ingenic/jz4740.dtsi
+++ b/arch/mips/boot/dts/ingenic/jz4740.dtsi
@@ -192,11 +192,8 @@ aic: audio-controller@10020000 {
 		interrupt-parent = <&intc>;
 		interrupts = <18>;
 
-		clocks = <&cgu JZ4740_CLK_AIC>,
-			 <&cgu JZ4740_CLK_I2S>,
-			 <&cgu JZ4740_CLK_EXT>,
-			 <&cgu JZ4740_CLK_PLL_HALF>;
-		clock-names = "aic", "i2s", "ext", "pll half";
+		clocks = <&cgu JZ4740_CLK_AIC>, <&cgu JZ4740_CLK_I2S>;
+		clock-names = "aic", "i2s";
 
 		dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>;
 		dma-names = "rx", "tx";
diff --git a/arch/mips/boot/dts/ingenic/jz4770.dtsi b/arch/mips/boot/dts/ingenic/jz4770.dtsi
index bda0a3a86ed5..9c0099919db7 100644
--- a/arch/mips/boot/dts/ingenic/jz4770.dtsi
+++ b/arch/mips/boot/dts/ingenic/jz4770.dtsi
@@ -238,9 +238,8 @@ aic: audio-controller@10020000 {
 
 		#sound-dai-cells = <0>;
 
-		clocks = <&cgu JZ4770_CLK_AIC>, <&cgu JZ4770_CLK_I2S>,
-			 <&cgu JZ4770_CLK_EXT>, <&cgu JZ4770_CLK_PLL0>;
-		clock-names = "aic", "i2s", "ext", "pll half";
+		clocks = <&cgu JZ4770_CLK_AIC>, <&cgu JZ4770_CLK_I2S>;
+		clock-names = "aic", "i2s";
 
 		interrupt-parent = <&intc>;
 		interrupts = <34>;
-- 
2.39.2


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

* Re: [PATCH v2] mips: dts: ingenic: Remove unnecessary AIC clocks
  2023-05-05 14:24 [PATCH v2] mips: dts: ingenic: Remove unnecessary AIC clocks Aidan MacDonald
@ 2023-05-05 16:53 ` Paul Cercueil
  2023-05-23  9:07 ` Thomas Bogendoerfer
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Cercueil @ 2023-05-05 16:53 UTC (permalink / raw)
  To: Aidan MacDonald, tsbogend
  Cc: robh+dt, krzysztof.kozlowski+dt, linux-mips, devicetree, linux-kernel

Hi Aidan,

Le vendredi 05 mai 2023 à 15:24 +0100, Aidan MacDonald a écrit :
> The "ext" and "pll half" clocks don't belong in the DT. They are
> not consumed directly by the AIC and are only used as the parent
> clocks of the "i2s" clock. An operating system should be able to
> figure out that information itself because it presumably knows the
> layout of the clock tree.
> 
> Removing these from the DT should be safe from a compatibility
> point of view because the jz4740-i2s driver in Linux does not, and
> never did depend on them.

Agreed.

> Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
> Link:
> https://lore.kernel.org/all/20221028103418.17578-1-aidanmacdonald.0x0@gmail.com/

Reviewed-by: Paul Cercueil <paul@crapouillou.net>

Cheers,
-Paul

> ---
> This is a resend of patch 2/3 from a previous submission which is
> linked above.
> 
> v1->v2: updated commit message
> 
>  arch/mips/boot/dts/ingenic/jz4725b.dtsi | 7 ++-----
>  arch/mips/boot/dts/ingenic/jz4740.dtsi  | 7 ++-----
>  arch/mips/boot/dts/ingenic/jz4770.dtsi  | 5 ++---
>  3 files changed, 6 insertions(+), 13 deletions(-)
> 
> diff --git a/arch/mips/boot/dts/ingenic/jz4725b.dtsi
> b/arch/mips/boot/dts/ingenic/jz4725b.dtsi
> index e9e48022f631..acbbe8c4664c 100644
> --- a/arch/mips/boot/dts/ingenic/jz4725b.dtsi
> +++ b/arch/mips/boot/dts/ingenic/jz4725b.dtsi
> @@ -198,11 +198,8 @@ aic: audio-controller@10020000 {
>  
>                 #sound-dai-cells = <0>;
>  
> -               clocks = <&cgu JZ4725B_CLK_AIC>,
> -                        <&cgu JZ4725B_CLK_I2S>,
> -                        <&cgu JZ4725B_CLK_EXT>,
> -                        <&cgu JZ4725B_CLK_PLL_HALF>;
> -               clock-names = "aic", "i2s", "ext", "pll half";
> +               clocks = <&cgu JZ4725B_CLK_AIC>, <&cgu
> JZ4725B_CLK_I2S>;
> +               clock-names = "aic", "i2s";
>  
>                 interrupt-parent = <&intc>;
>                 interrupts = <10>;
> diff --git a/arch/mips/boot/dts/ingenic/jz4740.dtsi
> b/arch/mips/boot/dts/ingenic/jz4740.dtsi
> index 7f76cba03a08..bdd6f4d82ec9 100644
> --- a/arch/mips/boot/dts/ingenic/jz4740.dtsi
> +++ b/arch/mips/boot/dts/ingenic/jz4740.dtsi
> @@ -192,11 +192,8 @@ aic: audio-controller@10020000 {
>                 interrupt-parent = <&intc>;
>                 interrupts = <18>;
>  
> -               clocks = <&cgu JZ4740_CLK_AIC>,
> -                        <&cgu JZ4740_CLK_I2S>,
> -                        <&cgu JZ4740_CLK_EXT>,
> -                        <&cgu JZ4740_CLK_PLL_HALF>;
> -               clock-names = "aic", "i2s", "ext", "pll half";
> +               clocks = <&cgu JZ4740_CLK_AIC>, <&cgu
> JZ4740_CLK_I2S>;
> +               clock-names = "aic", "i2s";
>  
>                 dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>;
>                 dma-names = "rx", "tx";
> diff --git a/arch/mips/boot/dts/ingenic/jz4770.dtsi
> b/arch/mips/boot/dts/ingenic/jz4770.dtsi
> index bda0a3a86ed5..9c0099919db7 100644
> --- a/arch/mips/boot/dts/ingenic/jz4770.dtsi
> +++ b/arch/mips/boot/dts/ingenic/jz4770.dtsi
> @@ -238,9 +238,8 @@ aic: audio-controller@10020000 {
>  
>                 #sound-dai-cells = <0>;
>  
> -               clocks = <&cgu JZ4770_CLK_AIC>, <&cgu
> JZ4770_CLK_I2S>,
> -                        <&cgu JZ4770_CLK_EXT>, <&cgu
> JZ4770_CLK_PLL0>;
> -               clock-names = "aic", "i2s", "ext", "pll half";
> +               clocks = <&cgu JZ4770_CLK_AIC>, <&cgu
> JZ4770_CLK_I2S>;
> +               clock-names = "aic", "i2s";
>  
>                 interrupt-parent = <&intc>;
>                 interrupts = <34>;


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

* Re: [PATCH v2] mips: dts: ingenic: Remove unnecessary AIC clocks
  2023-05-05 14:24 [PATCH v2] mips: dts: ingenic: Remove unnecessary AIC clocks Aidan MacDonald
  2023-05-05 16:53 ` Paul Cercueil
@ 2023-05-23  9:07 ` Thomas Bogendoerfer
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Bogendoerfer @ 2023-05-23  9:07 UTC (permalink / raw)
  To: Aidan MacDonald
  Cc: paul, robh+dt, krzysztof.kozlowski+dt, linux-mips, devicetree,
	linux-kernel

On Fri, May 05, 2023 at 03:24:00PM +0100, Aidan MacDonald wrote:
> The "ext" and "pll half" clocks don't belong in the DT. They are
> not consumed directly by the AIC and are only used as the parent
> clocks of the "i2s" clock. An operating system should be able to
> figure out that information itself because it presumably knows the
> layout of the clock tree.
> 
> Removing these from the DT should be safe from a compatibility
> point of view because the jz4740-i2s driver in Linux does not, and
> never did depend on them.
> 
> Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
> Link: https://lore.kernel.org/all/20221028103418.17578-1-aidanmacdonald.0x0@gmail.com/
> ---
> This is a resend of patch 2/3 from a previous submission which is linked above.
> 
> v1->v2: updated commit message
> 
>  arch/mips/boot/dts/ingenic/jz4725b.dtsi | 7 ++-----
>  arch/mips/boot/dts/ingenic/jz4740.dtsi  | 7 ++-----
>  arch/mips/boot/dts/ingenic/jz4770.dtsi  | 5 ++---
>  3 files changed, 6 insertions(+), 13 deletions(-)

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

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

end of thread, other threads:[~2023-05-23  9:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-05 14:24 [PATCH v2] mips: dts: ingenic: Remove unnecessary AIC clocks Aidan MacDonald
2023-05-05 16:53 ` Paul Cercueil
2023-05-23  9:07 ` Thomas Bogendoerfer

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.