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

ASoC: dt-bindings: mediatek,mt8188-mt6359: use common sound card

The mediatek,mt8188-mt6359 Linux sound machine driver requires the
"model" property, so binding was incomplete. Reference the common sound
card properties to fix that which also allows to remove duplicated
property definitions. Leave the relevant parts of "audio-routing"
description.

Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Trevor Wu <trevor.wu@mediatek.com>
Link: https://lore.kernel.org/r/20230810063300.20151-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
34e7bf1a a06ce12e

+7 -10
+7 -10
Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
··· 9 9 maintainers: 10 10 - Trevor Wu <trevor.wu@mediatek.com> 11 11 12 + allOf: 13 + - $ref: sound-card-common.yaml# 14 + 12 15 properties: 13 16 compatible: 14 17 enum: 15 18 - mediatek,mt8188-mt6359-evb 16 19 - mediatek,mt8188-nau8825 17 20 18 - model: 19 - $ref: /schemas/types.yaml#/definitions/string 20 - description: User specified audio sound card name 21 - 22 21 audio-routing: 23 - $ref: /schemas/types.yaml#/definitions/non-unique-string-array 24 22 description: 25 - A list of the connections between audio components. Each entry is a 26 - sink/source pair of strings. Valid names could be the input or output 27 - widgets of audio components, power supplies, MicBias of codec and the 28 - software switch. 23 + Valid names could be the input or output widgets of audio components, 24 + power supplies, MicBias of codec and the software switch. 29 25 30 26 mediatek,platform: 31 27 $ref: /schemas/types.yaml#/definitions/phandle ··· 82 86 required: 83 87 - link-name 84 88 85 - additionalProperties: false 89 + unevaluatedProperties: false 86 90 87 91 required: 88 92 - compatible ··· 92 96 - | 93 97 sound { 94 98 compatible = "mediatek,mt8188-mt6359-evb"; 99 + model = "MT6359-EVB"; 95 100 mediatek,platform = <&afe>; 96 101 pinctrl-names = "default"; 97 102 pinctrl-0 = <&aud_pins_default>;