1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/qcom,wcd934x.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm WCD9340/WCD9341 Audio Codec
10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
13 Qualcomm WCD9340/WCD9341 Codec is a standalone Hi-Fi audio codec IC.
14 It has in-built Soundwire controller, pin controller, interrupt mux and
15 supports both I2S/I2C and SLIMbus audio interfaces.
28 description: GPIO spec for reset line to use
32 description: IFC device interface
33 $ref: /schemas/types.yaml#/definitions/phandle
42 description: A reference to the 1.8V buck supply
45 description: A reference to the 1.8V SIDO buck supply
48 description: A reference to the 1.8V rx supply
51 description: A reference to the 1.8V tx supply
54 description: A reference to the vbat supply
57 description: A reference to the 1.8V I/O supply
60 description: A reference to the micbias supply
62 qcom,micbias1-microvolt:
63 description: micbias1 voltage
67 qcom,micbias2-microvolt:
68 description: micbias2 voltage
72 qcom,micbias3-microvolt:
73 description: micbias3 voltage
77 qcom,micbias4-microvolt:
78 description: micbias4 voltage
82 qcom,hphl-jack-type-normally-closed:
83 description: Indicates that HPHL jack switch type is normally closed
86 qcom,ground-jack-type-normally-closed:
87 description: Indicates that Headset Ground switch type is normally closed
90 qcom,mbhc-headset-vthreshold-microvolt:
91 description: Voltage threshold value for headset detection
95 qcom,mbhc-headphone-vthreshold-microvolt:
96 description: Voltage threshold value for headphone detection
100 qcom,mbhc-buttons-vthreshold-microvolt:
102 Array of 8 Voltage threshold values corresponding to headset
111 description: Clock frequency of output clk in Hz
113 interrupt-controller: true
132 $ref: /schemas/gpio/qcom,wcd934x-gpio.yaml#
137 additionalProperties: true
139 WCD934x subnode for each slave devices. Bindings of each subnodes
140 depends on the specific driver providing the functionality and
141 documented in their respective bindings.
155 - $ref: dai-common.yaml#
163 - interrupt-controller
166 - qcom,micbias1-microvolt
167 - qcom,micbias2-microvolt
168 - qcom,micbias3-microvolt
169 - qcom,micbias4-microvolt
177 - interrupts-extended
185 interrupt-controller: false
186 clock-frequency: false
187 clock-output-names: false
188 qcom,micbias1-microvolt: false
189 qcom,micbias2-microvolt: false
190 qcom,micbias3-microvolt: false
191 qcom,micbias4-microvolt: false
192 "#interrupt-cells": false
193 "#clock-cells": false
194 "#sound-dai-cells": false
195 "#address-cells": false
198 additionalProperties: false
203 compatible = "slim217,250";
205 reset-gpios = <&tlmm 64 0>;
206 slim-ifc-dev = <&wcd9340_ifd>;
207 #sound-dai-cells = <1>;
208 interrupt-parent = <&tlmm>;
210 interrupt-controller;
211 #interrupt-cells = <1>;
213 clock-frequency = <9600000>;
214 clock-output-names = "mclk";
215 qcom,micbias1-microvolt = <1800000>;
216 qcom,micbias2-microvolt = <1800000>;
217 qcom,micbias3-microvolt = <1800000>;
218 qcom,micbias4-microvolt = <1800000>;
219 qcom,hphl-jack-type-normally-closed;
220 qcom,ground-jack-type-normally-closed;
221 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
222 qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
223 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
224 clock-names = "extclk";
225 clocks = <&rpmhcc 2>;
227 #address-cells = <1>;
231 compatible = "qcom,wcd9340-gpio";