xref: /linux/Documentation/devicetree/bindings/sound/amlogic,g12a-toacodec.yaml (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
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#
6
7title: Amlogic G12a Internal DAC Control Glue
8
9maintainers:
10  - Jerome Brunet <jbrunet@baylibre.com>
11
12properties:
13  $nodename:
14    pattern: "^audio-controller@.*"
15
16  "#sound-dai-cells":
17    const: 1
18
19  compatible:
20    oneOf:
21      - items:
22          - const: amlogic,g12a-toacodec
23      - items:
24          - enum:
25              - amlogic,sm1-toacodec
26          - const: amlogic,g12a-toacodec
27
28  reg:
29    maxItems: 1
30
31  resets:
32    maxItems: 1
33
34required:
35  - "#sound-dai-cells"
36  - compatible
37  - reg
38  - resets
39
40additionalProperties: false
41
42examples:
43  - |
44    #include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>
45
46    toacodec: audio-controller@740 {
47        compatible = "amlogic,g12a-toacodec";
48        reg = <0x740 0x4>;
49        #sound-dai-cells = <1>;
50        resets = <&clkc_audio AUD_RESET_TOACODEC>;
51    };
52