xref: /freebsd/sys/contrib/device-tree/Bindings/sound/wlf,wm8978.yaml (revision 2b8331622f0b212cf3bb4fc4914a501e5321d506)
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 Device Tree Bindings
8
9maintainers:
10  - patches@opensource.cirrus.com
11
12properties:
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
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,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@1a {
52            #sound-dai-cells = <0>;
53            compatible = "wlf,wm8978";
54            reg = <0x1a>;
55        };
56    };
57
58...
59