1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright (C) 2019 Texas Instruments Incorporated
3%YAML 1.2
4---
5$id: "http://devicetree.org/schemas/sound/tas2562.yaml#"
6$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7
8title: Texas Instruments TAS2562 Smart PA
9
10maintainers:
11  - Dan Murphy <dmurphy@ti.com>
12
13description: |
14  The TAS2562 is a mono, digital input Class-D audio amplifier optimized for
15  efficiently driving high peak power into small loudspeakers.
16  Integrated speaker voltage and current sense provides for
17  real time monitoring of loudspeaker behavior.
18
19  Specifications about the audio amplifier can be found at:
20    https://www.ti.com/lit/gpn/tas2562
21    https://www.ti.com/lit/gpn/tas2563
22    https://www.ti.com/lit/gpn/tas2564
23    https://www.ti.com/lit/gpn/tas2110
24
25properties:
26  compatible:
27    enum:
28      - ti,tas2562
29      - ti,tas2563
30      - ti,tas2564
31      - ti,tas2110
32
33  reg:
34    maxItems: 1
35    description: |
36       I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f
37
38  shut-down-gpios:
39    description: GPIO used to control the state of the device.
40    deprecated: true
41
42  shutdown-gpios:
43    description: GPIO used to control the state of the device.
44
45  interrupts:
46    maxItems: 1
47
48  ti,imon-slot-no:
49    $ref: /schemas/types.yaml#/definitions/uint32
50    description: TDM TX current sense time slot.
51
52  '#sound-dai-cells':
53    const: 1
54
55required:
56  - compatible
57  - reg
58
59additionalProperties: false
60
61examples:
62  - |
63   #include <dt-bindings/gpio/gpio.h>
64   i2c0 {
65     #address-cells = <1>;
66     #size-cells = <0>;
67     codec: codec@4c {
68       compatible = "ti,tas2562";
69       reg = <0x4c>;
70       #sound-dai-cells = <1>;
71       interrupt-parent = <&gpio1>;
72       interrupts = <14>;
73       shutdown-gpios = <&gpio1 15 0>;
74       ti,imon-slot-no = <0>;
75     };
76   };
77
78