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