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