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 - lenovo,yoga-c630-sndcard
20 - qcom,apq8016-sbc-sndcard
22 - qcom,msm8916-qdsp6-sndcard
23 - qcom,qrb5165-rb5-sndcard
24 - qcom,sc8280xp-sndcard
30 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
32 A list of the connections between audio components. Each entry is a
33 pair of strings, the first being the connection's sink, the second
34 being the connection's source. Valid names could be power supplies,
35 MicBias of codec and the jacks on the board.
38 $ref: /schemas/types.yaml#/definitions/phandle-array
40 List of phandles pointing to auxiliary devices, such
41 as amplifiers, to be added to the sound card.
44 $ref: /schemas/types.yaml#/definitions/string
45 description: User visible long sound card name
48 description: List of widget names for which pin switches should be created.
49 $ref: /schemas/types.yaml#/definitions/string-array
52 description: User specified audio sound widgets.
53 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
55 # Only valid for some compatibles (see allOf if below)
62 Each subnode represents a dai link. Subnodes of each dai links would be
69 description: Indicates dai-link name and PCM stream name.
70 $ref: /schemas/types.yaml#/definitions/string
74 description: Holds subnode which indicates cpu dai.
76 additionalProperties: false
83 description: Holds subnode which indicates platform dai.
85 additionalProperties: false
92 description: Holds subnode which indicates codec dai.
94 additionalProperties: false
105 additionalProperties: false
117 - qcom,apq8016-sbc-sndcard
118 - qcom,msm8916-qdsp6-sndcard
123 - description: Microphone I/O mux register address
124 - description: Speaker I/O mux register address
139 additionalProperties: false
144 #include <dt-bindings/sound/qcom,q6afe.h>
145 #include <dt-bindings/sound/qcom,q6asm.h>
147 compatible = "qcom,qrb5165-rb5-sndcard";
148 model = "Qualcomm-qrb5165-RB5-WSA8815-Speakers-DMIC0";
149 audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
150 "SpkrRight IN", "WSA_SPK2 OUT",
151 "VA DMIC0", "vdd-micb",
152 "VA DMIC1", "vdd-micb";
155 link-name = "MultiMedia0";
157 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
162 link-name = "MultiMedia2";
164 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
169 link-name = "MultiMedia3";
171 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
176 link-name = "HDMI Playback";
178 sound-dai = <&q6afedai TERTIARY_MI2S_RX>;
182 sound-dai = <&q6routing>;
186 sound-dai = <<9611_codec 0>;
191 link-name = "WSA Playback";
193 sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>;
197 sound-dai = <&q6routing>;
201 sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro>;
206 link-name = "VA Capture";
208 sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>;
212 sound-dai = <&q6routing>;
216 sound-dai = <&vamacro 0>;
222 #include <dt-bindings/sound/qcom,lpass.h>
224 compatible = "qcom,apq8016-sbc-sndcard";
225 reg = <0x07702000 0x4>, <0x07702004 0x4>;
226 reg-names = "mic-iomux", "spkr-iomux";
230 "AMIC2", "MIC BIAS Internal2",
231 "AMIC3", "MIC BIAS External1";
233 pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>;
234 pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>;
235 pinctrl-names = "default", "sleep";
237 quaternary-dai-link {
238 link-name = "ADV7533";
240 sound-dai = <&lpass MI2S_QUATERNARY>;
243 sound-dai = <&adv_bridge 0>;
250 sound-dai = <&lpass MI2S_PRIMARY>;
253 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
258 link-name = "WCD-Capture";
260 sound-dai = <&lpass MI2S_TERTIARY>;
263 sound-dai = <&lpass_codec 1>, <&wcd_codec 1>;
269 #include <dt-bindings/sound/qcom,q6afe.h>
270 #include <dt-bindings/sound/qcom,q6asm.h>
272 compatible = "qcom,msm8916-qdsp6-sndcard";
273 reg = <0x07702000 0x4>, <0x07702004 0x4>;
274 reg-names = "mic-iomux", "spkr-iomux";
278 "Speaker", "Speaker",
279 "Headphone", "Headphones";
280 pin-switches = "Speaker";
282 "Speaker", "Speaker Amp OUT",
283 "Speaker Amp IN", "HPH_R",
284 "Headphones", "HPH_L",
285 "Headphones", "HPH_R",
286 "AMIC1", "MIC BIAS Internal1",
287 "AMIC2", "MIC BIAS Internal2",
288 "AMIC3", "MIC BIAS Internal3";
289 aux-devs = <&speaker_amp>;
291 pinctrl-names = "default", "sleep";
292 pinctrl-0 = <&cdc_pdm_lines_act>;
293 pinctrl-1 = <&cdc_pdm_lines_sus>;
296 link-name = "MultiMedia1";
298 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
303 link-name = "Primary MI2S";
305 sound-dai = <&q6afedai PRIMARY_MI2S_RX>;
308 sound-dai = <&q6routing>;
311 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;