Merge tag 'block-6.13-20242901' of git://git.kernel.dk/linux
[drm/drm-misc.git] / Documentation / devicetree / bindings / sound / amlogic,gx-sound-card.yaml
blob413b4777818187fea2bd84c01ee6f8f29160840f
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/amlogic,gx-sound-card.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Amlogic GX sound card
9 maintainers:
10   - Jerome Brunet <jbrunet@baylibre.com>
12 allOf:
13   - $ref: sound-card-common.yaml#
15 properties:
16   compatible:
17     items:
18       - const: amlogic,gx-sound-card
20   audio-aux-devs:
21     $ref: /schemas/types.yaml#/definitions/phandle-array
22     description: list of auxiliary devices
24   audio-widgets:
25     $ref: /schemas/types.yaml#/definitions/non-unique-string-array
26     description: |-
27       A list off component DAPM widget. Each entry is a pair of strings,
28       the first being the widget type, the second being the widget name
30   clocks:
31     minItems: 1
32     maxItems: 3
33     description:
34       Base PLL clocks of audio susbsytem, used to configure base clock
35       frequencies for different audio use-cases.
37 patternProperties:
38   "^dai-link-[0-9]+$":
39     type: object
40     additionalProperties: false
41     description: |-
42       dai-link child nodes:
43         Container for dai-link level properties and the CODEC sub-nodes.
44         There should be at least one (and probably more) subnode of this type
46     properties:
47       dai-format:
48         $ref: /schemas/types.yaml#/definitions/string
49         enum: [ i2s, left-j, dsp_a ]
51       mclk-fs:
52         $ref: /schemas/types.yaml#/definitions/uint32
53         description: |-
54           Multiplication factor between the frame rate and master clock
55           rate
57       sound-dai:
58         maxItems: 1
59         description: phandle of the CPU DAI
61     patternProperties:
62       "^codec(-[0-9]+)?$":
63         type: object
64         additionalProperties: false
65         description: |-
66           Codecs:
67           dai-link representing backend links should have at least one subnode.
68           One subnode for each codec of the dai-link. dai-link representing
69           frontend links have no codec, therefore have no subnodes
71         properties:
72           sound-dai:
73             maxItems: 1
74             description: phandle of the codec DAI
76         required:
77           - sound-dai
79     required:
80       - sound-dai
82 required:
83   - model
84   - dai-link-0
86 unevaluatedProperties: false
88 examples:
89   - |
90     sound {
91         compatible = "amlogic,gx-sound-card";
92         model = "GXL-ACME-S905X-FOO";
93         audio-aux-devs = <&amp>;
94         audio-routing = "I2S ENCODER I2S IN", "I2S FIFO Playback";
96         dai-link-0 {
97                sound-dai = <&i2s_fifo>;
98         };
100         dai-link-1 {
101                 sound-dai = <&i2s_encoder>;
102                 dai-format = "i2s";
103                 mclk-fs = <256>;
105                 codec-0 {
106                         sound-dai = <&codec0>;
107                 };
109                 codec-1 {
110                         sound-dai = <&codec1>;
111                 };
112         };
113     };