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