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
12properties:
13  compatible:
14    enum:
15      - nxp,tfa9895
16      - nxp,tfa9897
17
18  reg:
19    maxItems: 1
20
21  '#sound-dai-cells':
22    const: 0
23
24  sound-name-prefix:
25    $ref: /schemas/types.yaml#/definitions/string
26    description:
27      Used as prefix for sink/source names of the component. Must be a
28      unique string among multiple instances of the same component.
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