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: Bindings for 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
40 description: A reference to the 1.8V buck supply
43 description: A reference to the 1.8V SIDO buck supply
46 description: A reference to the 1.8V rx supply
49 description: A reference to the 1.8V tx supply
52 description: A reference to the vbat supply
55 description: A reference to the 1.8V I/O supply
58 description: A reference to the micbias supply
60 qcom,micbias1-microvolt:
61 description: micbias1 voltage
65 qcom,micbias2-microvolt:
66 description: micbias2 voltage
70 qcom,micbias3-microvolt:
71 description: micbias3 voltage
75 qcom,micbias4-microvolt:
76 description: micbias4 voltage
80 qcom,hphl-jack-type-normally-closed:
81 description: Indicates that HPHL jack switch type is normally closed
84 qcom,ground-jack-type-normally-closed:
85 description: Indicates that Headset Ground switch type is normally closed
88 qcom,mbhc-headset-vthreshold-microvolt:
89 description: Voltage threshold value for headset detection
93 qcom,mbhc-headphone-vthreshold-microvolt:
94 description: Voltage threshold value for headphone detection
98 qcom,mbhc-buttons-vthreshold-microvolt:
100 Array of 8 Voltage threshold values corresponding to headset
109 description: Clock frequency of output clk in Hz
111 interrupt-controller: true
130 $ref: ../gpio/qcom,wcd934x-gpio.yaml#
136 WCD934x subnode for each slave devices. Bindings of each subnodes
137 depends on the specific driver providing the functionality and
138 documented in their respective bindings.
153 - interrupt-controller
156 - qcom,micbias1-microvolt
157 - qcom,micbias2-microvolt
158 - qcom,micbias3-microvolt
159 - qcom,micbias4-microvolt
166 additionalProperties: false
171 compatible = "slim217,250";
173 reset-gpios = <&tlmm 64 0>;
174 slim-ifc-dev = <&wcd9340_ifd>;
175 #sound-dai-cells = <1>;
176 interrupt-parent = <&tlmm>;
178 interrupt-controller;
179 #interrupt-cells = <1>;
181 clock-frequency = <9600000>;
182 clock-output-names = "mclk";
183 qcom,micbias1-microvolt = <1800000>;
184 qcom,micbias2-microvolt = <1800000>;
185 qcom,micbias3-microvolt = <1800000>;
186 qcom,micbias4-microvolt = <1800000>;
187 qcom,hphl-jack-type-normally-closed;
188 qcom,ground-jack-type-normally-closed;
189 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
190 qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
191 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
192 clock-names = "extclk";
193 clocks = <&rpmhcc 2>;
195 #address-cells = <1>;
199 compatible = "qcom,wcd9340-gpio";