1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/qcom,sm8250.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Technologies Inc. ASoC sound card drivers
10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
13 This bindings describes Qualcomm SoC based sound cards
14 which uses LPASS internal codec for audio.
19 - qcom,apq8016-sbc-sndcard
20 - qcom,msm8916-qdsp6-sndcard
22 - qcom,qrb5165-rb5-sndcard
25 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
27 A list of the connections between audio components. Each entry is a
28 pair of strings, the first being the connection's sink, the second
29 being the connection's source. Valid names could be power supplies,
30 MicBias of codec and the jacks on the board.
33 $ref: /schemas/types.yaml#/definitions/phandle-array
35 List of phandles pointing to auxiliary devices, such
36 as amplifiers, to be added to the sound card.
39 $ref: /schemas/types.yaml#/definitions/string
40 description: User visible long sound card name
42 # Only valid for some compatibles (see allOf if below)
49 Each subnode represents a dai link. Subnodes of each dai links would be
56 description: Indicates dai-link name and PCM stream name.
57 $ref: /schemas/types.yaml#/definitions/string
61 description: Holds subnode which indicates cpu dai.
67 description: Holds subnode which indicates platform dai.
73 description: Holds subnode which indicates codec dai.
82 additionalProperties: false
94 - qcom,apq8016-sbc-sndcard
95 - qcom,msm8916-qdsp6-sndcard
100 - description: Microphone I/O mux register address
101 - description: Speaker I/O mux register address
116 additionalProperties: false
121 #include <dt-bindings/sound/qcom,q6afe.h>
122 #include <dt-bindings/sound/qcom,q6asm.h>
124 compatible = "qcom,qrb5165-rb5-sndcard";
125 model = "Qualcomm-qrb5165-RB5-WSA8815-Speakers-DMIC0";
126 audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
127 "SpkrRight IN", "WSA_SPK2 OUT",
128 "VA DMIC0", "vdd-micb",
129 "VA DMIC1", "vdd-micb";
132 link-name = "MultiMedia0";
134 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
139 link-name = "MultiMedia2";
141 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
146 link-name = "MultiMedia3";
148 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
153 link-name = "HDMI Playback";
155 sound-dai = <&q6afedai TERTIARY_MI2S_RX>;
159 sound-dai = <&q6routing>;
163 sound-dai = <<9611_codec 0>;
168 link-name = "WSA Playback";
170 sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>;
174 sound-dai = <&q6routing>;
178 sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro>;
183 link-name = "VA Capture";
185 sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>;
189 sound-dai = <&q6routing>;
193 sound-dai = <&vamacro 0>;
199 #include <dt-bindings/sound/qcom,lpass.h>
201 compatible = "qcom,apq8016-sbc-sndcard";
202 reg = <0x07702000 0x4>, <0x07702004 0x4>;
203 reg-names = "mic-iomux", "spkr-iomux";
207 "AMIC2", "MIC BIAS Internal2",
208 "AMIC3", "MIC BIAS External1";
210 pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>;
211 pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>;
212 pinctrl-names = "default", "sleep";
214 quaternary-dai-link {
215 link-name = "ADV7533";
217 sound-dai = <&lpass MI2S_QUATERNARY>;
220 sound-dai = <&adv_bridge 0>;
227 sound-dai = <&lpass MI2S_PRIMARY>;
230 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
235 link-name = "WCD-Capture";
237 sound-dai = <&lpass MI2S_TERTIARY>;
240 sound-dai = <&lpass_codec 1>, <&wcd_codec 1>;
246 #include <dt-bindings/sound/qcom,q6afe.h>
247 #include <dt-bindings/sound/qcom,q6asm.h>
249 compatible = "qcom,msm8916-qdsp6-sndcard";
250 reg = <0x07702000 0x4>, <0x07702004 0x4>;
251 reg-names = "mic-iomux", "spkr-iomux";
255 "AMIC1", "MIC BIAS Internal1",
256 "AMIC2", "MIC BIAS Internal2",
257 "AMIC3", "MIC BIAS Internal3";
258 aux-devs = <&speaker_amp>;
260 pinctrl-names = "default", "sleep";
261 pinctrl-0 = <&cdc_pdm_lines_act>;
262 pinctrl-1 = <&cdc_pdm_lines_sus>;
265 link-name = "MultiMedia1";
267 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
272 link-name = "Primary MI2S";
274 sound-dai = <&q6afedai PRIMARY_MI2S_RX>;
277 sound-dai = <&q6routing>;
280 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;