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