Debian Codegraph @

Documentation/devicetree/bindings/sound/ti,tas2552.yaml

raw
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,tas2552.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Texas Instruments TAS2552 Codec
8
9 maintainers:
10 - Shenghao Ding <[email protected]>
11 - Kevin Lu <[email protected]>
12 - Baojun Xu <[email protected]>
13
14 description: >
15 The TAS2552 can receive its reference clock via MCLK, BCLK, IVCLKIN pin or
16 use the internal 1.8MHz. This CLKIN is used by the PLL. In addition to PLL,
17 the PDM reference clock is also selectable: PLL, IVCLKIN, BCLK or MCLK.
18
19 For system integration the dt-bindings/sound/tas2552.h header file provides
20 defined values to select and configure the PLL and PDM reference clocks.
21
22 properties:
23 compatible:
24 const: ti,tas2552
25
26 reg:
27 maxItems: 1
28
29 vbat-supply: true
30 iovdd-supply: true
31 avdd-supply: true
32
33 enable-gpio:
34 maxItems: 1
35 description: gpio pin to enable/disable the device
36
37 '#sound-dai-cells':
38 const: 0
39
40 required:
41 - compatible
42 - reg
43 - vbat-supply
44 - iovdd-supply
45 - avdd-supply
46
47 allOf:
48 - $ref: dai-common.yaml#
49
50 unevaluatedProperties: false
51
52 examples:
53 - |
54 #include <dt-bindings/gpio/gpio.h>
55
56 i2c {
57 #address-cells = <1>;
58 #size-cells = <0>;
59
60 audio-codec@41 {
61 compatible = "ti,tas2552";
62 reg = <0x41>;
63 #sound-dai-cells = <0>;
64 vbat-supply = <&reg_vbat>;
65 iovdd-supply = <&reg_iovdd>;
66 avdd-supply = <&reg_avdd>;
67 enable-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>;
68 };
69 };