xref: /freebsd/sys/contrib/device-tree/Bindings/sound/nxp,tfa989x.yaml (revision 8cc087a1eee9ec1ca9f7ac1e63ad51bdb5a682eb)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/nxp,tfa989x.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP/Goodix TFA989X (TFA1) Audio Amplifiers
8
9maintainers:
10  - Stephan Gerhold <stephan@gerhold.net>
11
12allOf:
13  - $ref: name-prefix.yaml#
14
15properties:
16  compatible:
17    enum:
18      - nxp,tfa9895
19      - nxp,tfa9897
20
21  reg:
22    maxItems: 1
23
24  '#sound-dai-cells':
25    const: 0
26
27  sound-name-prefix: true
28
29  vddd-supply:
30    description: regulator phandle for the VDDD power supply.
31
32required:
33  - compatible
34  - reg
35  - '#sound-dai-cells'
36
37additionalProperties: false
38
39examples:
40  - |
41    i2c {
42      #address-cells = <1>;
43      #size-cells = <0>;
44
45      audio-codec@34 {
46        compatible = "nxp,tfa9895";
47        reg = <0x34>;
48        sound-name-prefix = "Speaker Left";
49        #sound-dai-cells = <0>;
50      };
51      audio-codec@36 {
52        compatible = "nxp,tfa9895";
53        reg = <0x36>;
54        sound-name-prefix = "Speaker Right";
55        #sound-dai-cells = <0>;
56      };
57    };
58