xref: /freebsd/sys/contrib/device-tree/Bindings/sound/wlf,wm8904.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/wlf,wm8904.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Wolfson WM8904/WM8912 audio codecs
8
9maintainers:
10  - patches@opensource.cirrus.com
11
12description: |
13  Pins on the device (for linking into audio routes):
14  IN1L, IN1R, IN2L, IN2R, IN3L, IN3R, HPOUTL, HPOUTR, LINEOUTL, LINEOUTR,
15  MICBIAS
16
17properties:
18  compatible:
19    enum:
20      - wlf,wm8904
21      - wlf,wm8912
22
23  reg:
24    maxItems: 1
25
26  "#sound-dai-cells":
27    const: 0
28
29  clocks:
30    maxItems: 1
31
32  clock-names:
33    const: mclk
34
35  AVDD-supply: true
36  CPVDD-supply: true
37  DBVDD-supply: true
38  DCVDD-supply: true
39  MICVDD-supply: true
40
41required:
42  - compatible
43  - reg
44  - clocks
45  - clock-names
46  - AVDD-supply
47  - CPVDD-supply
48  - DBVDD-supply
49  - DCVDD-supply
50  - MICVDD-supply
51
52allOf:
53  - $ref: dai-common.yaml#
54
55unevaluatedProperties: false
56
57examples:
58  - |
59    i2c {
60        #address-cells = <1>;
61        #size-cells = <0>;
62
63        codec@1a {
64            compatible = "wlf,wm8904";
65            reg = <0x1a>;
66            clocks = <&pck0>;
67            clock-names = "mclk";
68            AVDD-supply = <&reg_1p8v>;
69            CPVDD-supply = <&reg_1p8v>;
70            DBVDD-supply = <&reg_1p8v>;
71            DCVDD-supply = <&reg_1p8v>;
72            MICVDD-supply = <&reg_1p8v>;
73        };
74    };
75