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
19properties:
20  compatible:
21    enum:
22      - ti,tas2562
23      - ti,tas2563
24
25  reg:
26    maxItems: 1
27    description: |
28       I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f
29
30  shut-down-gpios:
31    description: GPIO used to control the state of the device.
32    deprecated: true
33
34  shutdown-gpios:
35    description: GPIO used to control the state of the device.
36
37  interrupts:
38    maxItems: 1
39
40  ti,imon-slot-no:
41    $ref: /schemas/types.yaml#/definitions/uint32
42    description: TDM TX current sense time slot.
43
44  '#sound-dai-cells':
45    const: 1
46
47required:
48  - compatible
49  - reg
50
51additionalProperties: false
52
53examples:
54  - |
55   #include <dt-bindings/gpio/gpio.h>
56   i2c0 {
57     #address-cells = <1>;
58     #size-cells = <0>;
59     codec: codec@4c {
60       compatible = "ti,tas2562";
61       reg = <0x4c>;
62       #sound-dai-cells = <1>;
63       interrupt-parent = <&gpio1>;
64       interrupts = <14>;
65       shutdown-gpios = <&gpio1 15 0>;
66       ti,imon-slot-no = <0>;
67     };
68   };
69
70