1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/sound/qcom,apq8016-sbc-sndcard.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm APQ8016 and similar sound cards
10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
11 - Stephan Gerhold <stephan@gerhold.net>
16 - qcom,apq8016-sbc-sndcard
17 - qcom,msm8916-qdsp6-sndcard
21 - description: Microphone I/O mux register address
22 - description: Speaker I/O mux register address
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
58 Each subnode represents a dai link. Subnodes of each dai links would be
65 description: Indicates dai-link name and PCM stream name.
66 $ref: /schemas/types.yaml#/definitions/string
70 description: Holds subnode which indicates cpu dai.
72 additionalProperties: false
79 description: Holds subnode which indicates platform dai.
81 additionalProperties: false
88 description: Holds subnode which indicates codec dai.
90 additionalProperties: false
101 additionalProperties: false
109 additionalProperties: false
113 #include <dt-bindings/sound/qcom,lpass.h>
115 compatible = "qcom,apq8016-sbc-sndcard";
116 reg = <0x07702000 0x4>, <0x07702004 0x4>;
117 reg-names = "mic-iomux", "spkr-iomux";
121 "AMIC2", "MIC BIAS Internal2",
122 "AMIC3", "MIC BIAS External1";
124 pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>;
125 pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>;
126 pinctrl-names = "default", "sleep";
128 quaternary-dai-link {
129 link-name = "ADV7533";
131 sound-dai = <&lpass MI2S_QUATERNARY>;
134 sound-dai = <&adv_bridge 0>;
141 sound-dai = <&lpass MI2S_PRIMARY>;
144 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
149 link-name = "WCD-Capture";
151 sound-dai = <&lpass MI2S_TERTIARY>;
154 sound-dai = <&lpass_codec 1>, <&wcd_codec 1>;
160 #include <dt-bindings/sound/qcom,q6afe.h>
161 #include <dt-bindings/sound/qcom,q6asm.h>
163 compatible = "qcom,msm8916-qdsp6-sndcard";
164 reg = <0x07702000 0x4>, <0x07702004 0x4>;
165 reg-names = "mic-iomux", "spkr-iomux";
169 "Speaker", "Speaker",
170 "Headphone", "Headphones";
171 pin-switches = "Speaker";
173 "Speaker", "Speaker Amp OUT",
174 "Speaker Amp IN", "HPH_R",
175 "Headphones", "HPH_L",
176 "Headphones", "HPH_R",
177 "AMIC1", "MIC BIAS Internal1",
178 "AMIC2", "MIC BIAS Internal2",
179 "AMIC3", "MIC BIAS Internal3";
180 aux-devs = <&speaker_amp>;
182 pinctrl-names = "default", "sleep";
183 pinctrl-0 = <&cdc_pdm_lines_act>;
184 pinctrl-1 = <&cdc_pdm_lines_sus>;
187 link-name = "MultiMedia1";
189 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
194 link-name = "Primary MI2S";
196 sound-dai = <&q6afedai PRIMARY_MI2S_RX>;
199 sound-dai = <&q6routing>;
202 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;