xref: /linux/Documentation/devicetree/bindings/sound/qcom,wsa8855.yaml (revision e5c91aac491def6ab3f90c4cc246e3fcb0f8f058)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/qcom,wsa8855.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm WSA8855 stereo smart speaker amplifier
8
9maintainers:
10  - Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
11  - Prasad Kumpatla <prasad.kumpatla@oss.qualcomm.com>
12
13description:
14  WSA885X is a Qualcomm Aqstic stereo smart speaker amplifier. It uses a PCM
15  audio interface, an I2C control interface, and a Class-H amplifier path for
16  high efficiency, low output noise, and low idle power consumption.
17
18allOf:
19  - $ref: dai-common.yaml#
20
21properties:
22  compatible:
23    const: qcom,wsa8855
24
25  reg:
26    maxItems: 1
27
28  '#sound-dai-cells':
29    const: 0
30
31  powerdown-gpios:
32    description: GPIO controlling the SD_N powerdown pin.
33    maxItems: 1
34
35  reset-gpios:
36    description: GPIO controlling the SD_N powerdown pin.
37    maxItems: 1
38
39  interrupts:
40    maxItems: 1
41
42  vdd-1p8-supply: true
43
44  vdd-io-supply: true
45
46  qcom,battery-config:
47    description:
48      Battery topology connected to the speaker amplifier. 1S indicates one
49      battery cell in series, while 2S indicates two battery cells in series.
50    $ref: /schemas/types.yaml#/definitions/string
51    default: 1s
52    enum:
53      - 1s
54      - 2s
55
56required:
57  - compatible
58  - reg
59  - '#sound-dai-cells'
60  - interrupts
61  - vdd-1p8-supply
62  - vdd-io-supply
63
64oneOf:
65  - required:
66      - powerdown-gpios
67  - required:
68      - reset-gpios
69
70unevaluatedProperties: false
71
72examples:
73  - |
74    #include <dt-bindings/gpio/gpio.h>
75    #include <dt-bindings/interrupt-controller/irq.h>
76
77    i2c {
78        #address-cells = <1>;
79        #size-cells = <0>;
80
81        speaker@c {
82            compatible = "qcom,wsa8855";
83            reg = <0x0c>;
84            #sound-dai-cells = <0>;
85            powerdown-gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
86            interrupt-parent = <&tlmm>;
87            interrupts = <77 IRQ_TYPE_EDGE_FALLING>;
88            vdd-1p8-supply = <&vreg_l2g_1p8>;
89            vdd-io-supply = <&vreg_l1g_1p2>;
90            qcom,battery-config = "1s";
91        };
92    };
93...
94