xref: /freebsd/sys/contrib/device-tree/Bindings/sound/wlf,wm8978.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/wlf,wm8978.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Wolfson WM8978 Codec
8
9maintainers:
10  - patches@opensource.cirrus.com
11
12allOf:
13  - $ref: dai-common.yaml#
14
15properties:
16  '#sound-dai-cells':
17    const: 0
18
19  compatible:
20    const: wlf,wm8978
21
22  reg:
23    maxItems: 1
24
25  spi-max-frequency:
26    maximum: 526000
27
28required:
29  - '#sound-dai-cells'
30  - compatible
31  - reg
32
33unevaluatedProperties: false
34
35examples:
36  - |
37    spi {
38        #address-cells = <1>;
39        #size-cells = <0>;
40
41        codec@0 {
42            #sound-dai-cells = <0>;
43            compatible = "wlf,wm8978";
44            reg = <0>;
45            spi-max-frequency = <500000>;
46        };
47    };
48
49  - |
50    i2c {
51        #address-cells = <1>;
52        #size-cells = <0>;
53
54        codec@1a {
55            #sound-dai-cells = <0>;
56            compatible = "wlf,wm8978";
57            reg = <0x1a>;
58        };
59    };
60
61...
62