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