ARM: DTS: da850-evm: Enable audio via simple-card
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 1 Aug 2014 06:13:30 +0000 (09:13 +0300)
committerSekhar Nori <nsekhar@ti.com>
Tue, 26 Aug 2014 10:04:44 +0000 (15:34 +0530)
The audio on the board is using McASP <-> tlv320aic3106 codec and we have
LineIn and LineOut jacks.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/boot/dts/da850-evm.dts

index 41715b495861f0433163deafb5243ce4f3673e83..4f935ad9f27ba208b337b3b911cfc29fb4986c84 100644 (file)
@@ -52,6 +52,7 @@
                                reg = <0x48>;
                        };
                        tlv320aic3106: tlv320aic3106@18 {
+                               #sound-dai-cells = <0>;
                                compatible = "ti,tlv320aic3106";
                                reg = <0x18>;
                                status = "okay";
                regulator-max-microvolt = <5000000>;
                regulator-boot-on;
        };
+
+       sound {
+               compatible = "simple-audio-card";
+               simple-audio-card,name = "DA850/OMAP-L138 EVM";
+               simple-audio-card,widgets =
+                       "Line", "Line In",
+                       "Line", "Line Out";
+               simple-audio-card,routing =
+                       "LINE1L", "Line In",
+                       "LINE1R", "Line In",
+                       "Line Out", "LLOUT",
+                       "Line Out", "RLOUT";
+               simple-audio-card,format = "dsp_b";
+               simple-audio-card,bitclock-master = <&link0_codec>;
+               simple-audio-card,frame-master = <&link0_codec>;
+               simple-audio-card,bitclock-inversion;
+
+               simple-audio-card,cpu {
+                       sound-dai = <&mcasp0>;
+                       system-clock-frequency = <24576000>;
+               };
+
+               link0_codec: simple-audio-card,codec {
+                       sound-dai = <&tlv320aic3106>;
+                       system-clock-frequency = <24576000>;
+               };
+       };
 };
 
 /include/ "tps6507x.dtsi"
 };
 
 &mcasp0 {
+       #sound-dai-cells = <0>;
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&mcasp0_pins>;