Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: dt-bindings: qcom,wcd938x: move out common properties

Move out common properties from qcom,wcd938x bindings in preparation
of adding Qualcomm WCD939x bindings sharing most of the properties.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://msgid.link/r/20231219-topic-sm8650-upstream-wcd939x-codec-v4-1-1c3bbff2d7ab@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Neil Armstrong and committed by
Mark Brown
166ee0b3 6613476e

+96 -80
+1 -80
Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml
··· 15 15 16 16 allOf: 17 17 - $ref: dai-common.yaml# 18 + - $ref: qcom,wcd93xx-common.yaml# 18 19 19 20 properties: 20 21 compatible: ··· 23 22 - qcom,wcd9380-codec 24 23 - qcom,wcd9385-codec 25 24 26 - reset-gpios: 27 - description: GPIO spec for reset line to use 28 - maxItems: 1 29 - 30 25 us-euro-gpios: 31 26 description: GPIO spec for swapping gnd and mic segments 32 27 maxItems: 1 33 28 34 - vdd-buck-supply: 35 - description: A reference to the 1.8V buck supply 36 - 37 - vdd-rxtx-supply: 38 - description: A reference to the 1.8V rx supply 39 - 40 - vdd-io-supply: 41 - description: A reference to the 1.8V I/O supply 42 - 43 - vdd-mic-bias-supply: 44 - description: A reference to the 3.8V mic bias supply 45 - 46 - qcom,tx-device: 47 - $ref: /schemas/types.yaml#/definitions/phandle-array 48 - description: A reference to Soundwire tx device phandle 49 - 50 - qcom,rx-device: 51 - $ref: /schemas/types.yaml#/definitions/phandle-array 52 - description: A reference to Soundwire rx device phandle 53 - 54 - qcom,micbias1-microvolt: 55 - description: micbias1 voltage 56 - minimum: 1800000 57 - maximum: 2850000 58 - 59 - qcom,micbias2-microvolt: 60 - description: micbias2 voltage 61 - minimum: 1800000 62 - maximum: 2850000 63 - 64 - qcom,micbias3-microvolt: 65 - description: micbias3 voltage 66 - minimum: 1800000 67 - maximum: 2850000 68 - 69 - qcom,micbias4-microvolt: 70 - description: micbias4 voltage 71 - minimum: 1800000 72 - maximum: 2850000 73 - 74 - qcom,hphl-jack-type-normally-closed: 75 - description: Indicates that HPHL jack switch type is normally closed 76 - type: boolean 77 - 78 - qcom,ground-jack-type-normally-closed: 79 - description: Indicates that Headset Ground switch type is normally closed 80 - type: boolean 81 - 82 - qcom,mbhc-headset-vthreshold-microvolt: 83 - description: Voltage threshold value for headset detection 84 - minimum: 0 85 - maximum: 2850000 86 - 87 - qcom,mbhc-headphone-vthreshold-microvolt: 88 - description: Voltage threshold value for headphone detection 89 - minimum: 0 90 - maximum: 2850000 91 - 92 - qcom,mbhc-buttons-vthreshold-microvolt: 93 - description: 94 - Array of 8 Voltage threshold values corresponding to headset 95 - button0 - button7 96 - minItems: 8 97 - maxItems: 8 98 - 99 - '#sound-dai-cells': 100 - const: 1 101 - 102 29 required: 103 30 - compatible 104 - - reset-gpios 105 - - qcom,tx-device 106 - - qcom,rx-device 107 - - qcom,micbias1-microvolt 108 - - qcom,micbias2-microvolt 109 - - qcom,micbias3-microvolt 110 - - qcom,micbias4-microvolt 111 - - "#sound-dai-cells" 112 31 113 32 unevaluatedProperties: false 114 33
+95
Documentation/devicetree/bindings/sound/qcom,wcd93xx-common.yaml
··· 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