Merge tag 'block-6.13-20242901' of git://git.kernel.dk/linux
[drm/drm-misc.git] / Documentation / devicetree / bindings / sound / amlogic,g12a-toacodec.yaml
blob23f82bb89750898d20c866015bc2e1a4b0554846
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/amlogic,g12a-toacodec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Amlogic G12a Internal DAC Control Glue
9 maintainers:
10   - Jerome Brunet <jbrunet@baylibre.com>
12 allOf:
13   - $ref: dai-common.yaml#
15 properties:
16   $nodename:
17     pattern: "^audio-controller@.*"
19   "#sound-dai-cells":
20     const: 1
22   compatible:
23     oneOf:
24       - items:
25           - const: amlogic,g12a-toacodec
26       - items:
27           - enum:
28               - amlogic,sm1-toacodec
29           - const: amlogic,g12a-toacodec
31   reg:
32     maxItems: 1
34   resets:
35     maxItems: 1
37   sound-name-prefix: true
39 required:
40   - "#sound-dai-cells"
41   - compatible
42   - reg
43   - resets
45 additionalProperties: false
47 examples:
48   - |
49     #include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>
51     toacodec: audio-controller@740 {
52         compatible = "amlogic,g12a-toacodec";
53         reg = <0x740 0x4>;
54         #sound-dai-cells = <1>;
55         resets = <&clkc_audio AUD_RESET_TOACODEC>;
56     };