xref: /freebsd/sys/contrib/device-tree/Bindings/sound/amlogic,t9015.yaml (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
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
12allOf:
13  - $ref: dai-common.yaml#
14
15properties:
16  $nodename:
17    pattern: "^audio-controller@.*"
18
19  "#sound-dai-cells":
20    const: 0
21
22  compatible:
23    items:
24      - const: amlogic,t9015
25
26  clocks:
27    items:
28      - description: Peripheral clock
29
30  clock-names:
31    items:
32      - const: pclk
33
34  reg:
35    maxItems: 1
36
37  resets:
38    maxItems: 1
39
40  AVDD-supply:
41    description:
42      Analogue power supply.
43
44  sound-name-prefix: true
45
46required:
47  - "#sound-dai-cells"
48  - compatible
49  - reg
50  - clocks
51  - clock-names
52  - resets
53  - AVDD-supply
54
55additionalProperties: false
56
57examples:
58  - |
59    #include <dt-bindings/clock/g12a-clkc.h>
60    #include <dt-bindings/reset/amlogic,meson-g12a-reset.h>
61
62    acodec: audio-controller@32000 {
63        compatible = "amlogic,t9015";
64        reg = <0x32000 0x14>;
65        #sound-dai-cells = <0>;
66        clocks = <&clkc CLKID_AUDIO_CODEC>;
67        clock-names = "pclk";
68        resets = <&reset RESET_AUDIO_CODEC>;
69        AVDD-supply = <&vddao_1v8>;
70    };
71