[PATCH v2 6/7] ARM: dts: chameleonv3: Add Chameleon v3 audio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add dts nodes for i2s, audio codec, and simple-audio-card devices.

Signed-off-by: Paweł Anikiel <pan@xxxxxxxxxxxx>
---
 .../boot/dts/socfpga_arria10_chameleonv3.dts  | 56 +++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts b/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts
index f0483ef46a36..a69819e26144 100644
--- a/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts
+++ b/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts
@@ -15,6 +15,61 @@ aliases {
 		i2c0 = &i2c0;
 		i2c1 = &i2c1;
 	};
+
+	soc {
+		i2s0: i2s@c0060300 {
+			compatible = "google,chv3-i2s";
+			reg = <0xc0060300 0x100>,
+			      <0xc0060f00 0x10>;
+			interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
+			#sound-dai-cells = <0>;
+		};
+
+		i2s1: i2s@c0060400 {
+			compatible = "google,chv3-i2s";
+			reg = <0xc0060400 0x100>,
+			      <0xc0060f10 0x10>;
+			interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
+			#sound-dai-cells = <0>;
+		};
+	};
+
+	sound {
+		compatible = "simple-audio-card";
+		simple-audio-card,name = "chv3-audio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		simple-audio-card,dai-link@0 {
+			reg = <0>;
+			cpu {
+				sound-dai = <&i2s0>;
+			};
+			codec {
+				sound-dai = <&chv3_codec>;
+			};
+		};
+
+		simple-audio-card,dai-link@1 {
+			reg = <1>;
+			format = "i2s";
+			cpu {
+				sound-dai = <&i2s1>;
+			};
+			codec {
+				sound-dai = <&ssm2603>;
+				bitclock-master;
+				frame-master;
+				system-clock-frequency = <22579200>;
+				mclk-fs = <512>;
+			};
+		};
+	};
+
+	chv3_codec: audio-codec {
+		compatible = "google,chv3-codec";
+		#sound-dai-cells = <0>;
+	};
 };
 
 &gmac0 {
@@ -39,6 +94,7 @@ &i2c0 {
 	ssm2603: audio-codec@1a {
 		compatible = "adi,ssm2603";
 		reg = <0x1a>;
+		#sound-dai-cells = <0>;
 	};
 };
 
-- 
2.40.1.521.gf1e218fcd8-goog




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux