944e5859c962e634825669a15a5278aeb17dc799
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / sound / wlf,wm8978.yaml
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
7 title: Wolfson WM8978 Codec Device Tree Bindings
8
9 maintainers:
10   - patches@opensource.cirrus.com
11
12 properties:
13   '#sound-dai-cells':
14     const: 0
15
16   compatible:
17     const: wlf,wm8978
18
19   reg:
20     maxItems: 1
21
22   spi-max-frequency:
23     maximum: 526000
24
25 required:
26   - '#sound-dai-cells'
27   - compatible
28   - reg
29
30 additionalProperties: false
31
32 examples:
33   - |
34     spi {
35         #address-cells = <1>;
36         #size-cells = <0>;
37
38         codec@0 {
39             #sound-dai-cells = <0>;
40             compatible = "wlf,wm8978";
41             reg = <0>;
42             spi-max-frequency = <500000>;
43         };
44     };
45
46   - |
47     i2c {
48         #address-cells = <1>;
49         #size-cells = <0>;
50
51         codec@0 {
52             #sound-dai-cells = <0>;
53             compatible = "wlf,wm8978";
54             reg = <0>;
55         };
56     };
57
58 ...