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

ASoC: dt-bindings: samsung,aries-wm8994: use common sound card

Reference the common sound card properties and deprecate the
custom "samsung,audio-routing" in favor of generic one. This allows to
remove "model" property and make the binding closer to other sounds
cards.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230810063300.20151-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
d63cff2b 34e7bf1a

+8 -8
+8 -8
Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml
··· 9 9 maintainers: 10 10 - Jonathan Bakker <xc-racer2@live.ca> 11 11 12 + allOf: 13 + - $ref: sound-card-common.yaml# 14 + 12 15 properties: 13 16 compatible: 14 17 enum: ··· 19 16 - samsung,aries-wm8994 20 17 # Without FM radio and modem slave 21 18 - samsung,fascinate4g-wm8994 22 - 23 - model: 24 - $ref: /schemas/types.yaml#/definitions/string 25 - description: The user-visible name of this sound complex. 26 19 27 20 cpu: 28 21 type: object ··· 45 46 46 47 samsung,audio-routing: 47 48 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 49 + deprecated: true 48 50 description: | 49 51 List of the connections between audio 50 52 components; each entry is a pair of strings, the first being the ··· 56 56 or FM In 57 57 For samsung,fascinate4g-wm8994: HP, SPK, RCV, LINE, Main Mic, 58 58 or HeadsetMic 59 + Deprecated, use audio-routing. 59 60 60 61 extcon: 61 62 description: Extcon phandle for dock detection ··· 88 87 89 88 required: 90 89 - compatible 91 - - model 92 90 - cpu 93 91 - codec 94 - - samsung,audio-routing 92 + - audio-routing 95 93 - extcon 96 94 - main-micbias-supply 97 95 - headset-micbias-supply ··· 98 98 - headset-detect-gpios 99 99 - headset-key-gpios 100 100 101 - additionalProperties: false 101 + unevaluatedProperties: false 102 102 103 103 examples: 104 104 - | ··· 121 121 headset-detect-gpios = <&gph0 6 GPIO_ACTIVE_HIGH>; 122 122 headset-key-gpios = <&gph3 6 GPIO_ACTIVE_HIGH>; 123 123 124 - samsung,audio-routing = 124 + audio-routing = 125 125 "HP", "HPOUT1L", 126 126 "HP", "HPOUT1R", 127 127