Nicolin Chen | 708b435 | 2014-07-30 19:27:38 +0800 | [diff] [blame] | 1 | Freescale Generic ASoC Sound Card with ASRC support |
| 2 | |
| 3 | The Freescale Generic ASoC Sound Card can be used, ideally, for all Freescale |
| 4 | SoCs connecting with external CODECs. |
| 5 | |
| 6 | The idea of this generic sound card is a bit like ASoC Simple Card. However, |
| 7 | for Freescale SoCs (especially those released in recent years), most of them |
| 8 | have ASRC (Documentation/devicetree/bindings/sound/fsl,asrc.txt) inside. And |
| 9 | this is a specific feature that might be painstakingly controlled and merged |
| 10 | into the Simple Card. |
| 11 | |
| 12 | So having this generic sound card allows all Freescale SoC users to benefit |
| 13 | from the simplification of a new card support and the capability of the wide |
| 14 | sample rates support through ASRC. |
| 15 | |
Maciej S. Szmigiero | 50760ca | 2015-09-19 02:00:25 +0200 | [diff] [blame] | 16 | Note: 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 Chen | 708b435 | 2014-07-30 19:27:38 +0800 | [diff] [blame] | 20 | |
| 21 | |
| 22 | The compatible list for this generic sound card currently: |
Maciej S. Szmigiero | 50760ca | 2015-09-19 02:00:25 +0200 | [diff] [blame] | 23 | "fsl,imx-audio-ac97" |
| 24 | |
Nicolin Chen | 708b435 | 2014-07-30 19:27:38 +0800 | [diff] [blame] | 25 | "fsl,imx-audio-cs42888" |
| 26 | |
Felipe F. Tonello | 57e756d | 2016-01-29 11:01:00 +0000 | [diff] [blame] | 27 | "fsl,imx-audio-cs427x" |
| 28 | (compatible with CS4271 and CS4272) |
| 29 | |
Nicolin Chen | 708b435 | 2014-07-30 19:27:38 +0800 | [diff] [blame] | 30 | "fsl,imx-audio-wm8962" |
Nicolin Chen | 708b435 | 2014-07-30 19:27:38 +0800 | [diff] [blame] | 31 | |
| 32 | "fsl,imx-audio-sgtl5000" |
| 33 | (compatible with Documentation/devicetree/bindings/sound/imx-audio-sgtl5000.txt) |
| 34 | |
Xiubo Li | 2935bf4 | 2016-01-15 13:33:08 +0800 | [diff] [blame] | 35 | "fsl,imx-audio-wm8960" |
| 36 | |
Shengjiu Wang | 56d6663 | 2020-06-17 12:48:24 +0800 | [diff] [blame] | 37 | "fsl,imx-audio-mqs" |
| 38 | |
Shengjiu Wang | 3b3372f | 2020-06-23 14:52:47 +0800 | [diff] [blame] | 39 | "fsl,imx-audio-wm8524" |
| 40 | |
Matthias Schiffer | 6d3029e | 2020-08-21 09:11:52 +0200 | [diff] [blame] | 41 | "fsl,imx-audio-tlv320aic32x4" |
| 42 | |
Shengjiu Wang | 0b3355b | 2020-11-30 11:57:48 +0800 | [diff] [blame] | 43 | "fsl,imx-audio-si476x" |
| 44 | |
Shengjiu Wang | df8077c | 2021-03-17 21:05:03 +0800 | [diff] [blame] | 45 | "fsl,imx-audio-wm8958" |
| 46 | |
Nicolin Chen | 708b435 | 2014-07-30 19:27:38 +0800 | [diff] [blame] | 47 | Required properties: |
| 48 | |
| 49 | - compatible : Contains one of entries in the compatible list. |
| 50 | |
| 51 | - model : The user-visible name of this sound complex |
| 52 | |
| 53 | - audio-cpu : The phandle of an CPU DAI controller |
| 54 | |
| 55 | - audio-codec : The phandle of an audio codec |
| 56 | |
Shengjiu Wang | 56d6663 | 2020-06-17 12:48:24 +0800 | [diff] [blame] | 57 | Optional properties: |
| 58 | |
| 59 | - audio-asrc : The phandle of ASRC. It can be absent if there's no |
| 60 | need to add ASRC support via DPCM. |
| 61 | |
Nicolin Chen | 708b435 | 2014-07-30 19:27:38 +0800 | [diff] [blame] | 62 | - audio-routing : A list of the connections between audio components. |
| 63 | Each entry is a pair of strings, the first being the |
| 64 | connection's sink, the second being the connection's |
| 65 | source. There're a few pre-designed board connectors: |
| 66 | * Line Out Jack |
| 67 | * Line In Jack |
| 68 | * Headphone Jack |
| 69 | * Mic Jack |
| 70 | * Ext Spk |
| 71 | * AMIC (stands for Analog Microphone Jack) |
| 72 | * DMIC (stands for Digital Microphone Jack) |
| 73 | |
| 74 | Note: The "Mic Jack" and "AMIC" are redundant while |
Andrea Gelmini | 6dca83f | 2016-05-21 13:39:54 +0200 | [diff] [blame] | 75 | coexisting in order to support the old bindings |
Nicolin Chen | 708b435 | 2014-07-30 19:27:38 +0800 | [diff] [blame] | 76 | of wm8962 and sgtl5000. |
| 77 | |
Shengjiu Wang | c3c058a | 2020-07-15 22:09:38 +0800 | [diff] [blame] | 78 | - hp-det-gpio : The GPIO that detect headphones are plugged in |
| 79 | - mic-det-gpio : The GPIO that detect microphones are plugged in |
Shengjiu Wang | ca16835 | 2020-07-21 11:41:50 +0800 | [diff] [blame] | 80 | - bitclock-master : Indicates dai-link bit clock master; for details see simple-card.yaml. |
| 81 | - frame-master : Indicates dai-link frame master; for details see simple-card.yaml. |
| 82 | - dai-format : audio format, for details see simple-card.yaml. |
| 83 | - frame-inversion : dai-link uses frame clock inversion, for details see simple-card.yaml. |
| 84 | - bitclock-inversion : dai-link uses bit clock inversion, for details see simple-card.yaml. |
Shengjiu Wang | c3c058a | 2020-07-15 22:09:38 +0800 | [diff] [blame] | 85 | |
Felipe F. Tonello | 57e756d | 2016-01-29 11:01:00 +0000 | [diff] [blame] | 86 | Optional unless SSI is selected as a CPU DAI: |
| 87 | |
| 88 | - mux-int-port : The internal port of the i.MX audio muxer (AUDMUX) |
| 89 | |
| 90 | - mux-ext-port : The external port of the i.MX audio muxer |
| 91 | |
Nicolin Chen | 708b435 | 2014-07-30 19:27:38 +0800 | [diff] [blame] | 92 | Example: |
| 93 | sound-cs42888 { |
| 94 | compatible = "fsl,imx-audio-cs42888"; |
| 95 | model = "cs42888-audio"; |
| 96 | audio-cpu = <&esai>; |
| 97 | audio-asrc = <&asrc>; |
| 98 | audio-codec = <&cs42888>; |
| 99 | audio-routing = |
| 100 | "Line Out Jack", "AOUT1L", |
| 101 | "Line Out Jack", "AOUT1R", |
| 102 | "Line Out Jack", "AOUT2L", |
| 103 | "Line Out Jack", "AOUT2R", |
| 104 | "Line Out Jack", "AOUT3L", |
| 105 | "Line Out Jack", "AOUT3R", |
| 106 | "Line Out Jack", "AOUT4L", |
| 107 | "Line Out Jack", "AOUT4R", |
| 108 | "AIN1L", "Line In Jack", |
| 109 | "AIN1R", "Line In Jack", |
| 110 | "AIN2L", "Line In Jack", |
| 111 | "AIN2R", "Line In Jack"; |
| 112 | }; |