Skip to content

Commit

Permalink
ARM: dts: vf610-twr: Add simple-card support.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xiubo Li authored and Shawn Guo committed Feb 20, 2014
1 parent c5d571e commit 8128c4f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions arch/arm/boot/dts/vf610-twr.dts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,35 @@
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 {
Expand Down Expand Up @@ -88,6 +117,7 @@
status = "okay";

codec: sgtl5000@0a {
#sound-dai-cells = <0>;
compatible = "fsl,sgtl5000";
reg = <0x0a>;
VDDA-supply = <&reg_3p3v>;
Expand Down Expand Up @@ -165,6 +195,7 @@
};

&sai2 {
#sound-dai-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai2>;
status = "okay";
Expand Down

0 comments on commit 8128c4f

Please sign in to comment.