Linux 6.9-rc1
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / sound / adi,adau1372.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/adi,adau1372.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7
8 title: Analog Devices ADAU1372 CODEC
9
10 maintainers:
11   - Alexandre Belloni <alexandre.belloni@bootlin.com>
12
13 description: |
14   Analog Devices ADAU1372 four inputs and two outputs codec.
15   https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1372.pdf
16
17 allOf:
18   - $ref: dai-common.yaml#
19
20 properties:
21   compatible:
22     enum:
23       - adi,adau1372
24
25   reg:
26     maxItems: 1
27
28   "#sound-dai-cells":
29     const: 0
30
31   clocks:
32     maxItems: 1
33
34   clock-names:
35     const: mclk
36
37   powerdown-gpios:
38     description: GPIO used for hardware power-down.
39     maxItems: 1
40
41 required:
42   - "#sound-dai-cells"
43   - compatible
44   - reg
45   - clocks
46   - clock-names
47
48 unevaluatedProperties: false
49
50 examples:
51   - |
52     i2c {
53         #address-cells = <1>;
54         #size-cells = <0>;
55         audio-codec@3c {
56                 compatible = "adi,adau1372";
57                 reg = <0x3c>;
58                 #sound-dai-cells = <0>;
59                 clock-names = "mclk";
60                 clocks = <&adau1372z_xtal>;
61         };
62     };
63
64     adau1372z_xtal: clock {
65         compatible = "fixed-clock";
66         #clock-cells = <0>;
67         clock-frequency = <12288000>;
68     };
69 ...