blob: 943b36d1b81b62e5eb53ae5a92707b1ea3c645fa [file] [log] [blame]
Nicolin Chen708b4352014-07-30 19:27:38 +08001Freescale Generic ASoC Sound Card with ASRC support
2
3The Freescale Generic ASoC Sound Card can be used, ideally, for all Freescale
4SoCs connecting with external CODECs.
5
6The idea of this generic sound card is a bit like ASoC Simple Card. However,
7for Freescale SoCs (especially those released in recent years), most of them
8have ASRC (Documentation/devicetree/bindings/sound/fsl,asrc.txt) inside. And
9this is a specific feature that might be painstakingly controlled and merged
10into the Simple Card.
11
12So having this generic sound card allows all Freescale SoC users to benefit
13from the simplification of a new card support and the capability of the wide
14sample rates support through ASRC.
15
Maciej S. Szmigiero50760ca2015-09-19 02:00:25 +020016Note: The card is initially designed for those sound cards who use AC'97, I2S
17 and PCM DAI formats. However, it'll be also possible to support those non
18 AC'97/I2S/PCM type sound cards, such as S/PDIF audio and HDMI audio, as
19 long as the driver has been properly upgraded.
Nicolin Chen708b4352014-07-30 19:27:38 +080020
21
22The compatible list for this generic sound card currently:
Maciej S. Szmigiero50760ca2015-09-19 02:00:25 +020023 "fsl,imx-audio-ac97"
24
Nicolin Chen708b4352014-07-30 19:27:38 +080025 "fsl,imx-audio-cs42888"
26
Felipe F. Tonello57e756d2016-01-29 11:01:00 +000027 "fsl,imx-audio-cs427x"
28 (compatible with CS4271 and CS4272)
29
Nicolin Chen708b4352014-07-30 19:27:38 +080030 "fsl,imx-audio-wm8962"
31 (compatible with Documentation/devicetree/bindings/sound/imx-audio-wm8962.txt)
32
33 "fsl,imx-audio-sgtl5000"
34 (compatible with Documentation/devicetree/bindings/sound/imx-audio-sgtl5000.txt)
35
36Required properties:
37
38 - compatible : Contains one of entries in the compatible list.
39
40 - model : The user-visible name of this sound complex
41
42 - audio-cpu : The phandle of an CPU DAI controller
43
44 - audio-codec : The phandle of an audio codec
45
46 - audio-routing : A list of the connections between audio components.
47 Each entry is a pair of strings, the first being the
48 connection's sink, the second being the connection's
49 source. There're a few pre-designed board connectors:
50 * Line Out Jack
51 * Line In Jack
52 * Headphone Jack
53 * Mic Jack
54 * Ext Spk
55 * AMIC (stands for Analog Microphone Jack)
56 * DMIC (stands for Digital Microphone Jack)
57
58 Note: The "Mic Jack" and "AMIC" are redundant while
59 coexsiting in order to support the old bindings
60 of wm8962 and sgtl5000.
61
62Optional properties:
63
64 - audio-asrc : The phandle of ASRC. It can be absent if there's no
65 need to add ASRC support via DPCM.
66
Felipe F. Tonello57e756d2016-01-29 11:01:00 +000067Optional unless SSI is selected as a CPU DAI:
68
69 - mux-int-port : The internal port of the i.MX audio muxer (AUDMUX)
70
71 - mux-ext-port : The external port of the i.MX audio muxer
72
Nicolin Chen708b4352014-07-30 19:27:38 +080073Example:
74sound-cs42888 {
75 compatible = "fsl,imx-audio-cs42888";
76 model = "cs42888-audio";
77 audio-cpu = <&esai>;
78 audio-asrc = <&asrc>;
79 audio-codec = <&cs42888>;
80 audio-routing =
81 "Line Out Jack", "AOUT1L",
82 "Line Out Jack", "AOUT1R",
83 "Line Out Jack", "AOUT2L",
84 "Line Out Jack", "AOUT2R",
85 "Line Out Jack", "AOUT3L",
86 "Line Out Jack", "AOUT3R",
87 "Line Out Jack", "AOUT4L",
88 "Line Out Jack", "AOUT4R",
89 "AIN1L", "Line In Jack",
90 "AIN1R", "Line In Jack",
91 "AIN2L", "Line In Jack",
92 "AIN2R", "Line In Jack";
93};