1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/amlogic,t9015.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Amlogic T9015 Internal Audio DAC
8
9maintainers:
10  - Jerome Brunet <jbrunet@baylibre.com>
11
12properties:
13  $nodename:
14    pattern: "^audio-controller@.*"
15
16  "#sound-dai-cells":
17    const: 0
18
19  compatible:
20    items:
21      - const: amlogic,t9015
22
23  clocks:
24    items:
25      - description: Peripheral clock
26
27  clock-names:
28    items:
29      - const: pclk
30
31  reg:
32    maxItems: 1
33
34  resets:
35    maxItems: 1
36
37required:
38  - "#sound-dai-cells"
39  - compatible
40  - reg
41  - clocks
42  - clock-names
43  - resets
44
45additionalProperties: false
46
47examples:
48  - |
49    #include <dt-bindings/clock/g12a-clkc.h>
50    #include <dt-bindings/reset/amlogic,meson-g12a-reset.h>
51
52    acodec: audio-controller@32000 {
53        compatible = "amlogic,t9015";
54        reg = <0x32000 0x14>;
55        #sound-dai-cells = <0>;
56        clocks = <&clkc CLKID_AUDIO_CODEC>;
57        clock-names = "pclk";
58        resets = <&reset RESET_AUDIO_CODEC>;
59    };
60