xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/tas2764.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*4882a593Smuzhiyun# Copyright (C) 2020 Texas Instruments Incorporated
3*4882a593Smuzhiyun%YAML 1.2
4*4882a593Smuzhiyun---
5*4882a593Smuzhiyun$id: "http://devicetree.org/schemas/sound/tas2764.yaml#"
6*4882a593Smuzhiyun$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7*4882a593Smuzhiyun
8*4882a593Smuzhiyuntitle: Texas Instruments TAS2764 Smart PA
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunmaintainers:
11*4882a593Smuzhiyun  - Dan Murphy <dmurphy@ti.com>
12*4882a593Smuzhiyun
13*4882a593Smuzhiyundescription: |
14*4882a593Smuzhiyun  The TAS2764 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*4882a593Smuzhiyunproperties:
20*4882a593Smuzhiyun  compatible:
21*4882a593Smuzhiyun    enum:
22*4882a593Smuzhiyun      - ti,tas2764
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun  reg:
25*4882a593Smuzhiyun    maxItems: 1
26*4882a593Smuzhiyun    description: |
27*4882a593Smuzhiyun       I2C address of the device can be between 0x38 to 0x45.
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun  reset-gpios:
30*4882a593Smuzhiyun    maxItems: 1
31*4882a593Smuzhiyun    description: GPIO used to reset the device.
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun  shutdown-gpios:
34*4882a593Smuzhiyun    maxItems: 1
35*4882a593Smuzhiyun    description: GPIO used to control the state of the device.
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun  interrupts:
38*4882a593Smuzhiyun    maxItems: 1
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun  ti,imon-slot-no:
41*4882a593Smuzhiyun    $ref: /schemas/types.yaml#/definitions/uint32
42*4882a593Smuzhiyun    description: TDM TX current sense time slot.
43*4882a593Smuzhiyun
44*4882a593Smuzhiyun  ti,vmon-slot-no:
45*4882a593Smuzhiyun    $ref: /schemas/types.yaml#/definitions/uint32
46*4882a593Smuzhiyun    description: TDM TX voltage sense time slot.
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun  '#sound-dai-cells':
49*4882a593Smuzhiyun    const: 1
50*4882a593Smuzhiyun
51*4882a593Smuzhiyunrequired:
52*4882a593Smuzhiyun  - compatible
53*4882a593Smuzhiyun  - reg
54*4882a593Smuzhiyun
55*4882a593SmuzhiyunadditionalProperties: false
56*4882a593Smuzhiyun
57*4882a593Smuzhiyunexamples:
58*4882a593Smuzhiyun  - |
59*4882a593Smuzhiyun   #include <dt-bindings/gpio/gpio.h>
60*4882a593Smuzhiyun   i2c0 {
61*4882a593Smuzhiyun     #address-cells = <1>;
62*4882a593Smuzhiyun     #size-cells = <0>;
63*4882a593Smuzhiyun     codec: codec@38 {
64*4882a593Smuzhiyun       compatible = "ti,tas2764";
65*4882a593Smuzhiyun       reg = <0x38>;
66*4882a593Smuzhiyun       #sound-dai-cells = <1>;
67*4882a593Smuzhiyun       interrupt-parent = <&gpio1>;
68*4882a593Smuzhiyun       interrupts = <14>;
69*4882a593Smuzhiyun       reset-gpios = <&gpio1 15 0>;
70*4882a593Smuzhiyun       shutdown-gpios = <&gpio1 15 0>;
71*4882a593Smuzhiyun       ti,imon-slot-no = <0>;
72*4882a593Smuzhiyun       ti,vmon-slot-no = <2>;
73*4882a593Smuzhiyun     };
74*4882a593Smuzhiyun   };
75*4882a593Smuzhiyun
76*4882a593Smuzhiyun...
77