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:
23            amlogic,g12a-toacodec
24      - items:
25        - enum:
26          - amlogic,sm1-toacodec
27        - const:
28            amlogic,g12a-toacodec
29
30  reg:
31    maxItems: 1
32
33  resets:
34    maxItems: 1
35
36required:
37  - "#sound-dai-cells"
38  - compatible
39  - reg
40  - resets
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