xref: /freebsd/sys/contrib/device-tree/Bindings/sound/wm8750.yaml (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/wm8750.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: WM8750 and WM8987 audio CODECs
8
9description: |
10  These devices support both I2C and SPI (configured with pin strapping
11  on the board).
12
13maintainers:
14  - Mark Brown <broonie@kernel.org>
15
16properties:
17  compatible:
18    enum:
19      - wlf,wm8750
20      - wlf,wm8987
21
22  reg:
23    description:
24      The I2C address of the device for I2C, the chip select number for SPI
25    maxItems: 1
26
27additionalProperties: false
28
29required:
30  - reg
31
32examples:
33  - |
34    i2c {
35        #address-cells = <1>;
36        #size-cells = <0>;
37
38        codec@1a {
39            compatible = "wlf,wm8750";
40            reg = <0x1a>;
41        };
42    };
43