xref: /freebsd/sys/contrib/device-tree/Bindings/sound/amlogic,g12a-toacodec.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/amlogic,g12a-toacodec.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Amlogic G12a Internal DAC Control Glue
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Jerome Brunet <jbrunet@baylibre.com>
11c66ec88fSEmmanuel Vadot
12e67e8565SEmmanuel VadotallOf:
13*8bab661aSEmmanuel Vadot  - $ref: dai-common.yaml#
14e67e8565SEmmanuel Vadot
15c66ec88fSEmmanuel Vadotproperties:
16c66ec88fSEmmanuel Vadot  $nodename:
17c66ec88fSEmmanuel Vadot    pattern: "^audio-controller@.*"
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadot  "#sound-dai-cells":
20c66ec88fSEmmanuel Vadot    const: 1
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadot  compatible:
23c66ec88fSEmmanuel Vadot    oneOf:
24c66ec88fSEmmanuel Vadot      - items:
25c66ec88fSEmmanuel Vadot          - const: amlogic,g12a-toacodec
26c66ec88fSEmmanuel Vadot      - items:
27c66ec88fSEmmanuel Vadot          - enum:
28c66ec88fSEmmanuel Vadot              - amlogic,sm1-toacodec
29c66ec88fSEmmanuel Vadot          - const: amlogic,g12a-toacodec
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot  reg:
32c66ec88fSEmmanuel Vadot    maxItems: 1
33c66ec88fSEmmanuel Vadot
34c66ec88fSEmmanuel Vadot  resets:
35c66ec88fSEmmanuel Vadot    maxItems: 1
36c66ec88fSEmmanuel Vadot
37e67e8565SEmmanuel Vadot  sound-name-prefix: true
38e67e8565SEmmanuel Vadot
39c66ec88fSEmmanuel Vadotrequired:
40c66ec88fSEmmanuel Vadot  - "#sound-dai-cells"
41c66ec88fSEmmanuel Vadot  - compatible
42c66ec88fSEmmanuel Vadot  - reg
43c66ec88fSEmmanuel Vadot  - resets
44c66ec88fSEmmanuel Vadot
456be33864SEmmanuel VadotadditionalProperties: false
466be33864SEmmanuel Vadot
47c66ec88fSEmmanuel Vadotexamples:
48c66ec88fSEmmanuel Vadot  - |
49c66ec88fSEmmanuel Vadot    #include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>
50c66ec88fSEmmanuel Vadot
51c66ec88fSEmmanuel Vadot    toacodec: audio-controller@740 {
52c66ec88fSEmmanuel Vadot        compatible = "amlogic,g12a-toacodec";
53c66ec88fSEmmanuel Vadot        reg = <0x740 0x4>;
54c66ec88fSEmmanuel Vadot        #sound-dai-cells = <1>;
55c66ec88fSEmmanuel Vadot        resets = <&clkc_audio AUD_RESET_TOACODEC>;
56c66ec88fSEmmanuel Vadot    };
57