Lines Matching +full:snd +full:- +full:control +full:- +full:invert +full:- +full:range

1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/sound/simple-card.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Kuninori Morimoto <[email protected]>
14 frame-master:
15 description: Indicates dai-link frame master.
18 bitclock-master:
19 description: Indicates dai-link bit clock master
22 frame-inversion:
23 description: dai-link uses frame clock inversion
26 bitclock-inversion:
27 description: dai-link uses bit clock inversion
30 dai-tdm-slot-num:
31 description: see tdm-slot.txt.
34 dai-tdm-slot-width:
35 description: see tdm-slot.txt.
38 system-clock-frequency:
41 mclk-fs, the clock will be set to the calculated mclk frequency
45 system-clock-direction-out:
51 system-clock-fixed:
54 Implied when system-clock-frequency is specified, but can be used when
56 changed. When mclk-fs is also specified, this restricts the device to a
60 mclk-fs:
63 When defined, mclk-fs property defined in dai-link sub nodes are ignored.
66 aux-devs:
70 $ref: /schemas/types.yaml#/definitions/phandle-array
72 convert-rate:
76 convert-channels:
92 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
96 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
98 pin-switches:
100 $ref: /schemas/types.yaml#/definitions/string-array
106 - i2s
107 - right_j
108 - left_j
109 - dsp_a
110 - dsp_b
111 - ac97
112 - pdm
113 - msb
114 - lsb
119 sound-dai:
123 mclk-fs:
124 $ref: "#/definitions/mclk-fs"
127 frame-inversion:
128 $ref: "#/definitions/frame-inversion"
129 bitclock-inversion:
130 $ref: "#/definitions/bitclock-inversion"
131 frame-master:
133 bitclock-master:
136 dai-tdm-slot-num:
137 $ref: "#/definitions/dai-tdm-slot-num"
138 dai-tdm-slot-width:
139 $ref: "#/definitions/dai-tdm-slot-width"
142 system-clock-frequency:
143 $ref: "#/definitions/system-clock-frequency"
144 system-clock-direction-out:
145 $ref: "#/definitions/system-clock-direction-out"
146 system-clock-fixed:
147 $ref: "#/definitions/system-clock-fixed"
149 - sound-dai
151 additional-devs:
156 '^iio-aux(-.+)?$':
158 $ref: audio-iio-aux.yaml#
164 - simple-audio-card
165 - simple-scu-audio-card
167 "#address-cells":
169 "#size-cells":
175 simple-audio-card,name:
179 simple-audio-card,widgets:
181 simple-audio-card,routing:
185 simple-audio-card,frame-master:
186 $ref: "#/definitions/frame-master"
187 simple-audio-card,bitclock-master:
188 $ref: "#/definitions/bitclock-master"
189 simple-audio-card,frame-inversion:
190 $ref: "#/definitions/frame-inversion"
191 simple-audio-card,bitclock-inversion:
192 $ref: "#/definitions/bitclock-inversion"
193 simple-audio-card,format:
195 simple-audio-card,mclk-fs:
196 $ref: "#/definitions/mclk-fs"
197 simple-audio-card,aux-devs:
198 $ref: "#/definitions/aux-devs"
199 simple-audio-card,additional-devs:
200 $ref: "#/definitions/additional-devs"
201 simple-audio-card,convert-rate:
202 $ref: "#/definitions/convert-rate"
203 simple-audio-card,convert-channels:
204 $ref: "#/definitions/convert-channels"
205 simple-audio-card,prefix:
207 simple-audio-card,pin-switches:
208 $ref: "#/definitions/pin-switches"
209 simple-audio-card,hp-det-gpio:
212 simple-audio-card,hp-det-gpios:
214 simple-audio-card,mic-det-gpio:
217 simple-audio-card,mic-det-gpios:
221 "^simple-audio-card,cpu(@[0-9a-f]+)?$":
223 "^simple-audio-card,codec(@[0-9a-f]+)?$":
225 "^simple-audio-card,plat(@[0-9a-f]+)?$":
228 "^simple-audio-card,dai-link(@[0-9a-f]+)?$":
230 Container for dai-link level properties and the CPU and CODEC sub-nodes.
237 "#address-cells":
239 "#size-cells":
242 frame-master:
243 $ref: "#/definitions/frame-master"
244 bitclock-master:
245 $ref: "#/definitions/bitclock-master"
246 frame-inversion:
247 $ref: "#/definitions/frame-inversion"
248 bitclock-inversion:
249 $ref: "#/definitions/bitclock-inversion"
252 mclk-fs:
253 $ref: "#/definitions/mclk-fs"
254 aux-devs:
255 $ref: "#/definitions/aux-devs"
256 convert-rate:
257 $ref: "#/definitions/convert-rate"
258 convert-channels:
259 $ref: "#/definitions/convert-channels"
262 pin-switches:
263 $ref: "#/definitions/pin-switches"
264 hp-det-gpio:
267 hp-det-gpios:
269 mic-det-gpio:
272 mic-det-gpios:
276 "^cpu(-[0-9]+)?$":
278 "^codec(-[0-9]+)?$":
283 - compatible
288 # --------------------
290 # --------------------
291 - |
293 compatible = "simple-audio-card";
294 simple-audio-card,name = "VF610-Tower-Sound-Card";
295 simple-audio-card,format = "left_j";
296 simple-audio-card,bitclock-master = <&dailink0_master>;
297 simple-audio-card,frame-master = <&dailink0_master>;
298 simple-audio-card,widgets =
302 simple-audio-card,routing =
307 simple-audio-card,cpu {
308 sound-dai = <&sh_fsi2 0>;
311 dailink0_master: simple-audio-card,codec {
312 sound-dai = <&ak4648>;
317 # --------------------
319 # --------------------
320 - |
322 compatible = "simple-audio-card";
323 simple-audio-card,name = "Cubox Audio";
325 #address-cells = <1>;
326 #size-cells = <0>;
328 simple-audio-card,dai-link@0 { /* I2S - HDMI */
332 sound-dai = <&audio0>;
335 sound-dai = <&tda998x0>;
339 simple-audio-card,dai-link@1 { /* S/PDIF - HDMI */
342 sound-dai = <&audio1>;
345 sound-dai = <&tda998x1>;
349 simple-audio-card,dai-link@2 { /* S/PDIF - S/PDIF */
352 sound-dai = <&audio2>;
355 sound-dai = <&spdif_codec>;
360 # --------------------
363 # --------------------
364 - |
366 compatible = "simple-audio-card";
368 simple-audio-card,widgets =
370 simple-audio-card,routing =
375 simple-audio-card,aux-devs = <&amp>;
376 simple-audio-card,cpu {
377 sound-dai = <&ssi2>;
379 simple-audio-card,codec {
380 sound-dai = <&codec>;
385 # --------------------
388 # --------------------
389 - |
391 compatible = "simple-audio-card";
393 simple-audio-card,aux-devs = <&amp_in>, <&amp_out>;
394 simple-audio-card,routing =
400 simple-audio-card,additional-devs {
401 amp_out: iio-aux-out {
402 compatible = "audio-iio-aux";
403 io-channels = <&pot_out 0>, <&pot_out 1>;
404 io-channel-names = "LEFT", "RIGHT";
405 snd-control-invert-range = <1 1>;
406 sound-name-prefix = "AMP_OUT";
409 amp_in: iio_aux-in {
410 compatible = "audio-iio-aux";
411 io-channels = <&pot_in 0>, <&pot_in 1>;
412 io-channel-names = "LEFT", "RIGHT";
413 sound-name-prefix = "AMP_IN";
417 simple-audio-card,cpu {
418 sound-dai = <&cpu>;
421 simple-audio-card,codec {
422 sound-dai = <&codec>;
427 # --------------------
429 # --------------------
430 - |
432 compatible = "simple-audio-card";
434 simple-audio-card,name = "rsnd-ak4643";
435 simple-audio-card,format = "left_j";
436 simple-audio-card,bitclock-master = <&sndcodec>;
437 simple-audio-card,frame-master = <&sndcodec>;
439 simple-audio-card,convert-rate = <48000>;
441 simple-audio-card,prefix = "ak4642";
442 simple-audio-card,routing = "ak4642 Playback", "DAI0 Playback",
445 sndcpu: simple-audio-card,cpu {
446 sound-dai = <&rcar_sound>;
449 sndcodec: simple-audio-card,codec {
450 sound-dai = <&ak4643>;
451 system-clock-frequency = <11289600>;
455 # --------------------
457 # --------------------
458 - |
460 compatible = "simple-audio-card";
461 #address-cells = <1>;
462 #size-cells = <0>;
464 simple-audio-card,name = "rsnd-ak4643";
465 simple-audio-card,format = "left_j";
466 simple-audio-card,bitclock-master = <&dpcmcpu>;
467 simple-audio-card,frame-master = <&dpcmcpu>;
469 simple-audio-card,convert-rate = <48000>;
470 simple-audio-card,convert-channels = <2>;
472 simple-audio-card,routing = "ak4642 Playback", "DAI0 Playback",
475 dpcmcpu: simple-audio-card,cpu@0 {
477 sound-dai = <&rcar_sound 0>;
480 simple-audio-card,cpu@1 {
482 sound-dai = <&rcar_sound 1>;
485 simple-audio-card,codec {
487 sound-dai = <&ak4643>;
492 # --------------------
495 # CPU0 ------ ak4613
496 # CPU1 ------ PCM3168A-p /* DPCM 1ch/2ch */
497 # CPU2 --/ /* DPCM 3ch/4ch */
498 # CPU3 --/ /* DPCM 5ch/6ch */
499 # CPU4 --/ /* DPCM 7ch/8ch */
500 # CPU5 ------ PCM3168A-c
501 # --------------------
502 - |
504 compatible = "simple-audio-card";
505 #address-cells = <1>;
506 #size-cells = <0>;
508 simple-audio-card,routing =
514 simple-audio-card,dai-link@0 {
517 bitclock-master = <&sndcpu0>;
518 frame-master = <&sndcpu0>;
521 sound-dai = <&rcar_sound 0>;
524 sound-dai = <&ak4613>;
528 simple-audio-card,dai-link@1 {
531 bitclock-master = <&sndcpu1>;
532 frame-master = <&sndcpu1>;
534 convert-channels = <8>; /* TDM Split */
536 sndcpu1: cpu-0 {
537 sound-dai = <&rcar_sound 1>;
539 cpu-1 {
540 sound-dai = <&rcar_sound 2>;
542 cpu-2 {
543 sound-dai = <&rcar_sound 3>;
545 cpu-3 {
546 sound-dai = <&rcar_sound 4>;
549 mclk-fs = <512>;
551 dai-tdm-slot-num = <8>;
552 sound-dai = <&pcm3168a 0>;
556 simple-audio-card,dai-link@2 {
559 bitclock-master = <&sndcpu2>;
560 frame-master = <&sndcpu2>;
563 sound-dai = <&rcar_sound 5>;
566 mclk-fs = <512>;
568 sound-dai = <&pcm3168a 1>;