[v1,3/3] mips: dts: ingenic: x1000: Add AIC device tree node

Message ID 20230509124238.195191-3-aidanmacdonald.0x0@gmail.com
State New
Headers
Series [v1,1/3] ASoC: jz4740-i2s: Add support for X1000 SoC |

Commit Message

Aidan MacDonald May 9, 2023, 12:42 p.m. UTC
  Add a node for the on-board I2S audio controller.

Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
---
 arch/mips/boot/dts/ingenic/x1000.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
  

Comments

Thomas Bogendoerfer May 23, 2023, 9:08 a.m. UTC | #1
On Tue, May 09, 2023 at 01:42:38PM +0100, Aidan MacDonald wrote:
> Add a node for the on-board I2S audio controller.
> 
> Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
> ---
>  arch/mips/boot/dts/ingenic/x1000.dtsi | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/arch/mips/boot/dts/ingenic/x1000.dtsi b/arch/mips/boot/dts/ingenic/x1000.dtsi
> index 42e69664efd9..cc264cfff826 100644
> --- a/arch/mips/boot/dts/ingenic/x1000.dtsi
> +++ b/arch/mips/boot/dts/ingenic/x1000.dtsi
> @@ -417,4 +417,22 @@ otg: usb@13500000 {
>  
>  		status = "disabled";
>  	};
> +
> +	aic: audio-controller@10020000 {
> +		compatible = "ingenic,x1000-i2s";
> +		reg = <0x10020000 0x38>;
> +
> +		#sound-dai-cells = <0>;
> +
> +		interrupt-parent = <&intc>;
> +		interrupts = <1>;
> +
> +		clocks = <&cgu X1000_CLK_AIC>,
> +			 <&cgu X1000_CLK_I2S>;
> +		clock-names = "aic", "i2s";
> +
> +		dmas = <&pdma X1000_DMA_I2S0_RX 0xffffffff>,
> +			   <&pdma X1000_DMA_I2S0_TX 0xffffffff>;
> +		dma-names = "rx", "tx";
> +	};
>  };
> -- 
> 2.39.2

applied to mips-next.

Thomas.
  

Patch

diff --git a/arch/mips/boot/dts/ingenic/x1000.dtsi b/arch/mips/boot/dts/ingenic/x1000.dtsi
index 42e69664efd9..cc264cfff826 100644
--- a/arch/mips/boot/dts/ingenic/x1000.dtsi
+++ b/arch/mips/boot/dts/ingenic/x1000.dtsi
@@ -417,4 +417,22 @@  otg: usb@13500000 {
 
 		status = "disabled";
 	};
+
+	aic: audio-controller@10020000 {
+		compatible = "ingenic,x1000-i2s";
+		reg = <0x10020000 0x38>;
+
+		#sound-dai-cells = <0>;
+
+		interrupt-parent = <&intc>;
+		interrupts = <1>;
+
+		clocks = <&cgu X1000_CLK_AIC>,
+			 <&cgu X1000_CLK_I2S>;
+		clock-names = "aic", "i2s";
+
+		dmas = <&pdma X1000_DMA_I2S0_RX 0xffffffff>,
+			   <&pdma X1000_DMA_I2S0_TX 0xffffffff>;
+		dma-names = "rx", "tx";
+	};
 };