1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/qcom,wcd938x.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm WCD9380/WCD9385 Audio Codec
10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
13 Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC.
14 It has RX and TX Soundwire slave devices.
17 - $ref: dai-common.yaml#
26 description: GPIO spec for reset line to use
30 description: GPIO spec for swapping gnd and mic segments
34 description: A reference to the 1.8V buck supply
37 description: A reference to the 1.8V rx supply
40 description: A reference to the 1.8V I/O supply
43 description: A reference to the 3.8V mic bias supply
46 $ref: /schemas/types.yaml#/definitions/phandle-array
47 description: A reference to Soundwire tx device phandle
50 $ref: /schemas/types.yaml#/definitions/phandle-array
51 description: A reference to Soundwire rx device phandle
53 qcom,micbias1-microvolt:
54 description: micbias1 voltage
58 qcom,micbias2-microvolt:
59 description: micbias2 voltage
63 qcom,micbias3-microvolt:
64 description: micbias3 voltage
68 qcom,micbias4-microvolt:
69 description: micbias4 voltage
73 qcom,hphl-jack-type-normally-closed:
74 description: Indicates that HPHL jack switch type is normally closed
77 qcom,ground-jack-type-normally-closed:
78 description: Indicates that Headset Ground switch type is normally closed
81 qcom,mbhc-headset-vthreshold-microvolt:
82 description: Voltage threshold value for headset detection
86 qcom,mbhc-headphone-vthreshold-microvolt:
87 description: Voltage threshold value for headphone detection
91 qcom,mbhc-buttons-vthreshold-microvolt:
93 Array of 8 Voltage threshold values corresponding to headset
106 - qcom,micbias1-microvolt
107 - qcom,micbias2-microvolt
108 - qcom,micbias3-microvolt
109 - qcom,micbias4-microvolt
112 unevaluatedProperties: false
117 compatible = "qcom,wcd9380-codec";
118 reset-gpios = <&tlmm 32 0>;
119 #sound-dai-cells = <1>;
120 qcom,tx-device = <&wcd938x_tx>;
121 qcom,rx-device = <&wcd938x_rx>;
122 qcom,micbias1-microvolt = <1800000>;
123 qcom,micbias2-microvolt = <1800000>;
124 qcom,micbias3-microvolt = <1800000>;
125 qcom,micbias4-microvolt = <1800000>;
126 qcom,hphl-jack-type-normally-closed;
127 qcom,ground-jack-type-normally-closed;
128 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
129 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
135 #address-cells = <2>;
137 reg = <0x03210000 0x2000>;
138 wcd938x_rx: codec@0,4 {
139 compatible = "sdw20217010d00";
141 qcom,rx-port-mapping = <1 2 3 4 5>;
146 #address-cells = <2>;
148 reg = <0x03230000 0x2000>;
149 wcd938x_tx: codec@0,3 {
150 compatible = "sdw20217010d00";
152 qcom,tx-port-mapping = <2 3 4 5>;