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

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: dt-bindings: samsung,tm2: 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-6-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
631e9d4b 5ddff831

+8 -8
+8 -8
Documentation/devicetree/bindings/sound/samsung,tm2.yaml
··· 10 10 - Krzysztof Kozlowski <krzk@kernel.org> 11 11 - Sylwester Nawrocki <s.nawrocki@samsung.com> 12 12 13 + allOf: 14 + - $ref: sound-card-common.yaml# 15 + 13 16 properties: 14 17 compatible: 15 18 const: samsung,tm2-audio ··· 35 32 being the connection's source; valid names for sources and sinks are the 36 33 WM5110's and MAX98504's pins and the jacks on the board: HP, SPK, Main 37 34 Mic, Sub Mic, Third Mic, Headset Mic. 35 + Deprecated, use audio-routing. 36 + deprecated: true 38 37 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 39 38 40 39 i2s-controller: ··· 49 44 mic-bias-gpios: 50 45 description: GPIO pin that enables the Main Mic bias regulator. 51 46 52 - model: 53 - description: The user-visible name of this sound complex. 54 - $ref: /schemas/types.yaml#/definitions/string 55 - 56 47 required: 57 48 - compatible 58 49 - audio-amplifier 59 50 - audio-codec 60 - - samsung,audio-routing 51 + - audio-routing 61 52 - i2s-controller 62 53 - mic-bias-gpios 63 - - model 64 54 65 - additionalProperties: false 55 + unevaluatedProperties: false 66 56 67 57 examples: 68 58 - | ··· 70 70 audio-amplifier = <&max98504>; 71 71 mic-bias-gpios = <&gpr3 2 GPIO_ACTIVE_HIGH>; 72 72 model = "wm5110"; 73 - samsung,audio-routing = "HP", "HPOUT1L", 73 + audio-routing = "HP", "HPOUT1L", 74 74 "HP", "HPOUT1R", 75 75 "SPK", "SPKOUT", 76 76 "SPKOUT", "HPOUT2L",