xref: /linux/Documentation/devicetree/bindings/sound/qcom,wcd93xx-common.yaml (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1*166ee0b3SNeil Armstrong# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*166ee0b3SNeil Armstrong%YAML 1.2
3*166ee0b3SNeil Armstrong---
4*166ee0b3SNeil Armstrong$id: http://devicetree.org/schemas/sound/qcom,wcd93xx-common.yaml#
5*166ee0b3SNeil Armstrong$schema: http://devicetree.org/meta-schemas/core.yaml#
6*166ee0b3SNeil Armstrong
7*166ee0b3SNeil Armstrongtitle: Common properties for Qualcomm WCD93xx Audio Codec
8*166ee0b3SNeil Armstrong
9*166ee0b3SNeil Armstrongmaintainers:
10*166ee0b3SNeil Armstrong  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
11*166ee0b3SNeil Armstrong
12*166ee0b3SNeil Armstrongproperties:
13*166ee0b3SNeil Armstrong  reset-gpios:
14*166ee0b3SNeil Armstrong    description: GPIO spec for reset line to use
15*166ee0b3SNeil Armstrong    maxItems: 1
16*166ee0b3SNeil Armstrong
17*166ee0b3SNeil Armstrong  vdd-buck-supply:
18*166ee0b3SNeil Armstrong    description: A reference to the 1.8V buck supply
19*166ee0b3SNeil Armstrong
20*166ee0b3SNeil Armstrong  vdd-rxtx-supply:
21*166ee0b3SNeil Armstrong    description: A reference to the 1.8V rx supply
22*166ee0b3SNeil Armstrong
23*166ee0b3SNeil Armstrong  vdd-io-supply:
24*166ee0b3SNeil Armstrong    description: A reference to the 1.8V I/O supply
25*166ee0b3SNeil Armstrong
26*166ee0b3SNeil Armstrong  vdd-mic-bias-supply:
27*166ee0b3SNeil Armstrong    description: A reference to the 3.8V mic bias supply
28*166ee0b3SNeil Armstrong
29*166ee0b3SNeil Armstrong  qcom,tx-device:
30*166ee0b3SNeil Armstrong    $ref: /schemas/types.yaml#/definitions/phandle-array
31*166ee0b3SNeil Armstrong    description: A reference to Soundwire tx device phandle
32*166ee0b3SNeil Armstrong
33*166ee0b3SNeil Armstrong  qcom,rx-device:
34*166ee0b3SNeil Armstrong    $ref: /schemas/types.yaml#/definitions/phandle-array
35*166ee0b3SNeil Armstrong    description: A reference to Soundwire rx device phandle
36*166ee0b3SNeil Armstrong
37*166ee0b3SNeil Armstrong  qcom,micbias1-microvolt:
38*166ee0b3SNeil Armstrong    description: micbias1 voltage
39*166ee0b3SNeil Armstrong    minimum: 1800000
40*166ee0b3SNeil Armstrong    maximum: 2850000
41*166ee0b3SNeil Armstrong
42*166ee0b3SNeil Armstrong  qcom,micbias2-microvolt:
43*166ee0b3SNeil Armstrong    description: micbias2 voltage
44*166ee0b3SNeil Armstrong    minimum: 1800000
45*166ee0b3SNeil Armstrong    maximum: 2850000
46*166ee0b3SNeil Armstrong
47*166ee0b3SNeil Armstrong  qcom,micbias3-microvolt:
48*166ee0b3SNeil Armstrong    description: micbias3 voltage
49*166ee0b3SNeil Armstrong    minimum: 1800000
50*166ee0b3SNeil Armstrong    maximum: 2850000
51*166ee0b3SNeil Armstrong
52*166ee0b3SNeil Armstrong  qcom,micbias4-microvolt:
53*166ee0b3SNeil Armstrong    description: micbias4 voltage
54*166ee0b3SNeil Armstrong    minimum: 1800000
55*166ee0b3SNeil Armstrong    maximum: 2850000
56*166ee0b3SNeil Armstrong
57*166ee0b3SNeil Armstrong  qcom,hphl-jack-type-normally-closed:
58*166ee0b3SNeil Armstrong    description: Indicates that HPHL jack switch type is normally closed
59*166ee0b3SNeil Armstrong    type: boolean
60*166ee0b3SNeil Armstrong
61*166ee0b3SNeil Armstrong  qcom,ground-jack-type-normally-closed:
62*166ee0b3SNeil Armstrong    description: Indicates that Headset Ground switch type is normally closed
63*166ee0b3SNeil Armstrong    type: boolean
64*166ee0b3SNeil Armstrong
65*166ee0b3SNeil Armstrong  qcom,mbhc-headset-vthreshold-microvolt:
66*166ee0b3SNeil Armstrong    description: Voltage threshold value for headset detection
67*166ee0b3SNeil Armstrong    minimum: 0
68*166ee0b3SNeil Armstrong    maximum: 2850000
69*166ee0b3SNeil Armstrong
70*166ee0b3SNeil Armstrong  qcom,mbhc-headphone-vthreshold-microvolt:
71*166ee0b3SNeil Armstrong    description: Voltage threshold value for headphone detection
72*166ee0b3SNeil Armstrong    minimum: 0
73*166ee0b3SNeil Armstrong    maximum: 2850000
74*166ee0b3SNeil Armstrong
75*166ee0b3SNeil Armstrong  qcom,mbhc-buttons-vthreshold-microvolt:
76*166ee0b3SNeil Armstrong    description:
77*166ee0b3SNeil Armstrong      Array of 8 Voltage threshold values corresponding to headset
78*166ee0b3SNeil Armstrong      button0 - button7
79*166ee0b3SNeil Armstrong    minItems: 8
80*166ee0b3SNeil Armstrong    maxItems: 8
81*166ee0b3SNeil Armstrong
82*166ee0b3SNeil Armstrong  '#sound-dai-cells':
83*166ee0b3SNeil Armstrong    const: 1
84*166ee0b3SNeil Armstrong
85*166ee0b3SNeil Armstrongrequired:
86*166ee0b3SNeil Armstrong  - reset-gpios
87*166ee0b3SNeil Armstrong  - qcom,tx-device
88*166ee0b3SNeil Armstrong  - qcom,rx-device
89*166ee0b3SNeil Armstrong  - qcom,micbias1-microvolt
90*166ee0b3SNeil Armstrong  - qcom,micbias2-microvolt
91*166ee0b3SNeil Armstrong  - qcom,micbias3-microvolt
92*166ee0b3SNeil Armstrong  - qcom,micbias4-microvolt
93*166ee0b3SNeil Armstrong  - "#sound-dai-cells"
94*166ee0b3SNeil Armstrong
95*166ee0b3SNeil ArmstrongadditionalProperties: true
96