File Index
Files and directories
Sign in
FILE

ti,tas27xx.yaml

File preview with syntax highlighting.

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