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  vddd-supply:
28    description: regulator phandle for the VDDD power supply.
29
30required:
31  - compatible
32  - reg
33  - '#sound-dai-cells'
34
35additionalProperties: false
36
37examples:
38  - |
39    i2c {
40      #address-cells = <1>;
41      #size-cells = <0>;
42
43      audio-codec@34 {
44        compatible = "nxp,tfa9895";
45        reg = <0x34>;
46        sound-name-prefix = "Speaker Left";
47        #sound-dai-cells = <0>;
48      };
49      audio-codec@36 {
50        compatible = "nxp,tfa9895";
51        reg = <0x36>;
52        sound-name-prefix = "Speaker Right";
53        #sound-dai-cells = <0>;
54      };
55    };
56