ARM: dts: vf610-twr: Add simple-card support.
authorXiubo Li <Li.Xiubo@freescale.com>
Wed, 19 Feb 2014 07:42:31 +0000 (15:42 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Thu, 20 Feb 2014 01:35:39 +0000 (09:35 +0800)
This patch adds and enables simple-card support in DT node.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/vf610-twr.dts

index 0105501ac55e1aee64fd01db08e8399f87ae375b..da52ed7eefa2e614a06c4f542a7425cedbcc2278 100644 (file)
                        regulator-always-on;
                };
        };
+
+       sound {
+               compatible = "simple-audio-card";
+               simple-audio-card,format = "i2s";
+               simple-audio-card,widgets =
+                       "Microphone", "Microphone Jack",
+                       "Headphone", "Headphone Jack",
+                       "Speaker", "Speaker Ext",
+                       "Line", "Line In Jack";
+               simple-audio-card,routing =
+                       "MIC_IN", "Microphone Jack",
+                       "Microphone Jack", "Mic Bias",
+                       "LINE_IN", "Line In Jack",
+                       "Headphone Jack", "HP_OUT",
+                       "Speaker Ext", "LINE_OUT";
+
+               simple-audio-card,cpu {
+                       sound-dai = <&sai2>;
+                       master-clkdir-out;
+                       frame-master;
+                       bitclock-master;
+               };
+
+               simple-audio-card,codec {
+                       sound-dai = <&codec>;
+                       frame-master;
+                       bitclock-master;
+               };
+       };
 };
 
 &dspi0 {
        status = "okay";
 
        codec: sgtl5000@0a {
+              #sound-dai-cells = <0>;
               compatible = "fsl,sgtl5000";
               reg = <0x0a>;
               VDDA-supply = <&reg_3p3v>;
 };
 
 &sai2 {
+       #sound-dai-cells = <0>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_sai2>;
        status = "okay";