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