[Letux-kernel] [RFC v2 3/5] MIPS: DTS: jz4780: add definition for for i2s and codec
H. Nikolaus Schaller
hns at goldelico.com
Sun May 2 11:16:20 CEST 2021
jz4780 has an AC97/I2S intetrface and aa built-in i2s audio codec.
Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>
---
arch/mips/boot/dts/ingenic/jz4780.dtsi | 33 ++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi b/arch/mips/boot/dts/ingenic/jz4780.dtsi
index dea58fdd638d8..e73a9d5814512 100644
--- a/arch/mips/boot/dts/ingenic/jz4780.dtsi
+++ b/arch/mips/boot/dts/ingenic/jz4780.dtsi
@@ -279,6 +279,39 @@ spidev at 0 {
};
};
+ /* it is not clear if there is an i2s1 - it is mentioned in power control and interrupts
+ (AIC0 and AIC1) but there is no base address known */
+ i2s0: i2s at 10020000 {
+ compatible = "ingenic,jz4780-i2s";
+ reg = <0x10020000 0x94>;
+
+ #sound-dai-cells = <0>;
+
+ interrupt-parent = <&intc>;
+ interrupts = <1>;
+
+ clocks = <&cgu JZ4780_CLK_AIC>, <&cgu JZ4780_CLK_I2SPLL>;
+ clock-names = "aic", "i2s";
+
+ dmas = <&dma JZ4780_DMA_I2S0_RX 0xffffffff>, <&dma JZ4780_DMA_I2S0_TX 0xffffffff>;
+ dma-names = "rx", "tx";
+
+ };
+
+ codec: audio-codec at 100200a4 {
+ compatible = "ingenic,jz4780-codec";
+ reg = <0x100200a4 0x8>;
+
+ #sound-dai-cells = <0>;
+
+ /* Programming Manual: CODEC shares the interrupt with AIC module. */
+ interrupt-parent = <&intc>;
+ interrupts = <1>; /* assume AIC0 interrupt */
+
+ clocks = <&cgu JZ4780_CLK_I2SPLL>;
+ clock-names = "i2s";
+ };
+
uart0: serial at 10030000 {
compatible = "ingenic,jz4780-uart";
reg = <0x10030000 0x100>;
--
2.26.2
More information about the Letux-kernel
mailing list