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
43 description: List of widget names for which pin switches should be created.
44 $ref: /schemas/types.yaml#/definitions/string-array
47 description: User specified audio sound widgets.
48 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
50 # Only valid for some compatibles (see allOf if below)
57 Each subnode represents a dai link. Subnodes of each dai links would be
64 description: Indicates dai-link name and PCM stream name.
65 $ref: /schemas/types.yaml#/definitions/string
69 description: Holds subnode which indicates cpu dai.
76 description: Holds subnode which indicates platform dai.
83 description: Holds subnode which indicates codec dai.
94 additionalProperties: false
106 - qcom,apq8016-sbc-sndcard
107 - qcom,msm8916-qdsp6-sndcard
112 - description: Microphone I/O mux register address
113 - description: Speaker I/O mux register address
128 additionalProperties: false
133 #include <dt-bindings/sound/qcom,q6afe.h>
134 #include <dt-bindings/sound/qcom,q6asm.h>
136 compatible = "qcom,qrb5165-rb5-sndcard";
137 model = "Qualcomm-qrb5165-RB5-WSA8815-Speakers-DMIC0";
138 audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
139 "SpkrRight IN", "WSA_SPK2 OUT",
140 "VA DMIC0", "vdd-micb",
141 "VA DMIC1", "vdd-micb";
144 link-name = "MultiMedia0";
146 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
151 link-name = "MultiMedia2";
153 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
158 link-name = "MultiMedia3";
160 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
165 link-name = "HDMI Playback";
167 sound-dai = <&q6afedai TERTIARY_MI2S_RX>;
171 sound-dai = <&q6routing>;
175 sound-dai = <<9611_codec 0>;
180 link-name = "WSA Playback";
182 sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>;
186 sound-dai = <&q6routing>;
190 sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro>;
195 link-name = "VA Capture";
197 sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>;
201 sound-dai = <&q6routing>;
205 sound-dai = <&vamacro 0>;
211 #include <dt-bindings/sound/qcom,lpass.h>
213 compatible = "qcom,apq8016-sbc-sndcard";
214 reg = <0x07702000 0x4>, <0x07702004 0x4>;
215 reg-names = "mic-iomux", "spkr-iomux";
219 "AMIC2", "MIC BIAS Internal2",
220 "AMIC3", "MIC BIAS External1";
222 pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>;
223 pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>;
224 pinctrl-names = "default", "sleep";
226 quaternary-dai-link {
227 link-name = "ADV7533";
229 sound-dai = <&lpass MI2S_QUATERNARY>;
232 sound-dai = <&adv_bridge 0>;
239 sound-dai = <&lpass MI2S_PRIMARY>;
242 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
247 link-name = "WCD-Capture";
249 sound-dai = <&lpass MI2S_TERTIARY>;
252 sound-dai = <&lpass_codec 1>, <&wcd_codec 1>;
258 #include <dt-bindings/sound/qcom,q6afe.h>
259 #include <dt-bindings/sound/qcom,q6asm.h>
261 compatible = "qcom,msm8916-qdsp6-sndcard";
262 reg = <0x07702000 0x4>, <0x07702004 0x4>;
263 reg-names = "mic-iomux", "spkr-iomux";
267 "Speaker", "Speaker",
268 "Headphone", "Headphones";
269 pin-switches = "Speaker";
271 "Speaker", "Speaker Amp OUT",
272 "Speaker Amp IN", "HPH_R",
273 "Headphones", "HPH_L",
274 "Headphones", "HPH_R",
275 "AMIC1", "MIC BIAS Internal1",
276 "AMIC2", "MIC BIAS Internal2",
277 "AMIC3", "MIC BIAS Internal3";
278 aux-devs = <&speaker_amp>;
280 pinctrl-names = "default", "sleep";
281 pinctrl-0 = <&cdc_pdm_lines_act>;
282 pinctrl-1 = <&cdc_pdm_lines_sus>;
285 link-name = "MultiMedia1";
287 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
292 link-name = "Primary MI2S";
294 sound-dai = <&q6afedai PRIMARY_MI2S_RX>;
297 sound-dai = <&q6routing>;
300 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;