File Index
Files and directories
Sign in
FILE

qcom,sm8250.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml YAML
  1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2%YAML 1.2
  3---
  4$id: http://devicetree.org/schemas/sound/qcom,sm8250.yaml#
  5$schema: http://devicetree.org/meta-schemas/core.yaml#
  6
  7title: Qualcomm Technologies Inc. ASoC sound card drivers
  8
  9maintainers:
 10  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
 11
 12description:
 13  This bindings describes Qualcomm SoC based sound cards
 14  which uses LPASS internal codec for audio.
 15
 16properties:
 17  compatible:
 18    oneOf:
 19      - items:
 20          - enum:
 21              - lenovo,yoga-c630-sndcard
 22              - qcom,db845c-sndcard
 23          - const: qcom,sdm845-sndcard
 24      - items:
 25          - enum:
 26              - qcom,kaanapali-sndcard
 27              - qcom,sm8550-sndcard
 28              - qcom,sm8650-sndcard
 29              - qcom,sm8750-sndcard
 30          - const: qcom,sm8450-sndcard
 31      - enum:
 32          - fairphone,fp4-sndcard
 33          - fairphone,fp5-sndcard
 34          - qcom,apq8096-sndcard
 35          - qcom,glymur-sndcard
 36          - qcom,qcm6490-idp-sndcard
 37          - qcom,qcs615-sndcard
 38          - qcom,qcs6490-rb3gen2-sndcard
 39          - qcom,qcs8275-sndcard
 40          - qcom,qcs9075-sndcard
 41          - qcom,qcs9100-sndcard
 42          - qcom,qrb2210-sndcard
 43          - qcom,qrb4210-rb2-sndcard
 44          - qcom,qrb5165-rb5-sndcard
 45          - qcom,sc7180-qdsp6-sndcard
 46          - qcom,sc8280xp-sndcard
 47          - qcom,sdm845-sndcard
 48          - qcom,sm8250-sndcard
 49          - qcom,sm8450-sndcard
 50          - qcom,x1e80100-sndcard
 51
 52  audio-routing:
 53    $ref: /schemas/types.yaml#/definitions/non-unique-string-array
 54    description:
 55      A list of the connections between audio components. Each entry is a
 56      pair of strings, the first being the connection's sink, the second
 57      being the connection's source. Valid names could be power supplies,
 58      MicBias of codec and the jacks on the board.
 59
 60  aux-devs:
 61    $ref: /schemas/types.yaml#/definitions/phandle-array
 62    description: |
 63      List of phandles pointing to auxiliary devices, such
 64      as amplifiers, to be added to the sound card.
 65
 66  model:
 67    $ref: /schemas/types.yaml#/definitions/string
 68    description: User visible long sound card name
 69
 70patternProperties:
 71  ".*-dai-link$":
 72    description:
 73      Each subnode represents a dai link. Subnodes of each dai links would be
 74      cpu/codec dais.
 75
 76    type: object
 77
 78    properties:
 79      link-name:
 80        description: Indicates dai-link name and PCM stream name.
 81        $ref: /schemas/types.yaml#/definitions/string
 82        maxItems: 1
 83
 84      cpu:
 85        description: Holds subnode which indicates cpu dai.
 86        type: object
 87        additionalProperties: false
 88
 89        properties:
 90          sound-dai:
 91            maxItems: 1
 92
 93      platform:
 94        description: Holds subnode which indicates platform dai.
 95        type: object
 96        additionalProperties: false
 97
 98        properties:
 99          sound-dai:
100            maxItems: 1
101
102      codec:
103        description: Holds subnode which indicates codec dai.
104        type: object
105        additionalProperties: false
106
107        properties:
108          sound-dai:
109            minItems: 1
110            maxItems: 8
111
112    required:
113      - link-name
114      - cpu
115
116    additionalProperties: false
117
118required:
119  - compatible
120  - model
121
122additionalProperties: false
123
124examples:
125
126  - |
127    #include <dt-bindings/sound/qcom,q6afe.h>
128    #include <dt-bindings/sound/qcom,q6asm.h>
129    sound {
130        compatible = "qcom,qrb5165-rb5-sndcard";
131        model = "Qualcomm-qrb5165-RB5-WSA8815-Speakers-DMIC0";
132        audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
133                    "SpkrRight IN", "WSA_SPK2 OUT",
134                    "VA DMIC0", "vdd-micb",
135                    "VA DMIC1", "vdd-micb";
136
137        mm1-dai-link {
138            link-name = "MultiMedia0";
139            cpu {
140                sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA1>;
141            };
142        };
143
144        mm2-dai-link {
145            link-name = "MultiMedia2";
146            cpu {
147                sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA2>;
148            };
149        };
150
151        mm3-dai-link {
152            link-name = "MultiMedia3";
153            cpu {
154                sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA3>;
155            };
156        };
157
158        hdmi-dai-link {
159            link-name = "HDMI Playback";
160            cpu {
161                sound-dai = <&q6afedai TERTIARY_MI2S_RX>;
162            };
163
164            platform {
165                sound-dai = <&q6routing>;
166            };
167
168            codec {
169                sound-dai = <&lt9611_codec 0>;
170            };
171        };
172
173        wsa-dai-link {
174            link-name = "WSA Playback";
175            cpu {
176                sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>;
177            };
178
179            platform {
180                sound-dai = <&q6routing>;
181            };
182
183            codec {
184                sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro>;
185            };
186        };
187
188        va-dai-link {
189            link-name = "VA Capture";
190            cpu {
191                sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>;
192            };
193
194            platform {
195                sound-dai = <&q6routing>;
196            };
197
198            codec {
199                sound-dai = <&vamacro 0>;
200            };
201        };
202
203        usb-dai-link {
204            link-name = "USB Playback";
205            cpu {
206                sound-dai = <&q6afedai USB_RX>;
207            };
208
209            codec {
210                sound-dai = <&usbdai USB_RX>;
211            };
212
213            platform {
214                sound-dai = <&q6routing>;
215            };
216        };
217    };
~/ Read-only file preview.