xref: /linux/Documentation/devicetree/bindings/sound/ti,tas57xx.yaml (revision 177bf8620cf4ed290ee170a6c5966adc0924b336)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/ti,tas57xx.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments TAS5711/TAS5717/TAS5719/TAS5721 stereo power amplifiers
8
9maintainers:
10  - Neil Armstrong <neil.armstrong@linaro.org>
11
12properties:
13  compatible:
14    enum:
15      - ti,tas5707
16      - ti,tas5711
17      - ti,tas5717
18      - ti,tas5719
19      - ti,tas5721
20      - ti,tas5733
21      - ti,tas5753
22
23  reg:
24    maxItems: 1
25
26  reset-gpios:
27    maxItems: 1
28    description: GPIO for the active low reset line
29
30  pdn-gpios:
31    maxItems: 1
32    description: GPIO for the active low powerdown line
33
34  clocks:
35    maxItems: 1
36
37  clock-names:
38    const: mclk
39
40  AVDD-supply: true
41  DVDD-supply: true
42  HPVDD-supply: true
43  PVDD_AB-supply: true
44  PVDD_CD-supply: true
45  PVDD_A-supply: true
46  PVDD_B-supply: true
47  PVDD_C-supply: true
48  PVDD_D-supply: true
49  DRVDD-supply: true
50  PVDD-supply: true
51
52  '#sound-dai-cells':
53    const: 0
54
55  port:
56    $ref: audio-graph-port.yaml#
57    unevaluatedProperties: false
58
59required:
60  - compatible
61  - reg
62  - '#sound-dai-cells'
63
64allOf:
65  - $ref: dai-common.yaml#
66  - if:
67      properties:
68        compatible:
69          contains:
70            enum:
71              - ti,tas5717
72              - ti,tas5719
73    then:
74      properties:
75        PVDD_A-supply: false
76        PVDD_B-supply: false
77        PVDD_C-supply: false
78        PVDD_D-supply: false
79        DRVDD-supply: false
80        PVDD-supply: false
81
82  - if:
83      properties:
84        compatible:
85          contains:
86            enum:
87              - ti,tas5711
88    then:
89      properties:
90        HPVDD-supply: false
91        PVDD_AB-supply: false
92        PVDD_CD-supply: false
93        DRVDD-supply: false
94        PVDD-supply: false
95
96  - if:
97      properties:
98        compatible:
99          contains:
100            enum:
101              - ti,tas5721
102              - ti,tas5753
103    then:
104      properties:
105        HPVDD-supply: false
106        PVDD_AB-supply: false
107        PVDD_CD-supply: false
108        PVDD_A-supply: false
109        PVDD_B-supply: false
110        PVDD_C-supply: false
111        PVDD_D-supply: false
112
113unevaluatedProperties: false
114
115examples:
116  - |
117    #include <dt-bindings/gpio/gpio.h>
118
119    i2c {
120        #address-cells = <1>;
121        #size-cells = <0>;
122
123        codec@2a {
124            compatible = "ti,tas5717";
125            reg = <0x2a>;
126            #sound-dai-cells = <0>;
127            reset-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
128            pdn-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
129            AVDD-supply = <&avdd_supply>;
130            DVDD-supply = <&dvdd_supply>;
131            HPVDD-supply = <&hpvdd_supply>;
132            PVDD_AB-supply = <&pvdd_ab_supply>;
133            PVDD_CD-supply = <&pvdd_cd_supply>;
134        };
135    };
136
137...
138