xref: /linux/Documentation/devicetree/bindings/sound/wlf,wm8804.yaml (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
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,wm8804.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: WM8804 audio codec
8
9description: |
10  This device supports both I2C and SPI (configured with pin strapping on the
11  board).
12
13maintainers:
14  - patches@opensource.cirrus.com
15
16properties:
17  compatible:
18    const: wlf,wm8804
19
20  reg:
21    description:
22      The I2C address of the device for I2C, the chip select number for SPI.
23    maxItems: 1
24
25  "#sound-dai-cells":
26    const: 0
27
28  PVDD-supply:
29    description: PLL core supply
30
31  DVDD-supply:
32    description: Digital core supply
33
34  wlf,reset-gpio:
35    description: A GPIO specifier for the GPIO controlling the reset pin.
36    maxItems: 1
37
38required:
39  - reg
40  - compatible
41  - PVDD-supply
42  - DVDD-supply
43
44additionalProperties: false
45
46examples:
47  - |
48    i2c {
49        #address-cells = <1>;
50        #size-cells = <0>;
51
52        codec@1a {
53            compatible = "wlf,wm8804";
54            reg = <0x1a>;
55            PVDD-supply = <&pvdd_reg>;
56            DVDD-supply = <&dvdd_reg>;
57        };
58    };
59