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