[Letux-kernel] [RFC 2/5] MIPS: DTS: CI20: provide sound

H. Nikolaus Schaller hns at goldelico.com
Fri Apr 30 18:55:23 CEST 2021


Use a simple-audio-card that connects the internal codec
to the i2s interface.

Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>
---
 arch/mips/boot/dts/ingenic/ci20.dts | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts
index f39e137370614..e52ef7ddac502 100644
--- a/arch/mips/boot/dts/ingenic/ci20.dts
+++ b/arch/mips/boot/dts/ingenic/ci20.dts
@@ -67,6 +67,34 @@ led3 {
 		};
 	};
 
+	sound {
+		compatible = "simple-audio-card";
+
+		simple-audio-card,name = "CI20";
+		simple-audio-card,format = "i2s";
+
+		simple-audio-card,widgets =
+			"Speaker", "Speaker",
+			"Microphone", "Mic";
+		simple-audio-card,routing =
+			"MIC", "Mic",
+			"Speaker", "OUTL",
+			"Speaker", "OUTR",
+			"INL", "LOUT",
+			"INR", "ROUT";
+
+		simple-audio-card,bitclock-master = <&dai_codec>;
+		simple-audio-card,frame-master = <&dai_codec>;
+
+		dai_cpu: simple-audio-card,cpu {
+			sound-dai = <&i2s0>;
+		};
+
+		dai_codec: simple-audio-card,codec {
+			sound-dai = <&codec>;
+		};
+	};
+
 	eth0_power: fixedregulator at 0 {
 		compatible = "regulator-fixed";
 
-- 
2.26.2



More information about the Letux-kernel mailing list