xref: /freebsd/sys/contrib/device-tree/Bindings/sound/amlogic,g12a-toacodec.yaml (revision fe6060f10f634930ff71b7c50291ddc610da2475)
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