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>
This commit is contained in:
Krzysztof Kozlowski
2023-08-10 08:32:50 +02:00
committed by Mark Brown
parent a06ce12efb
commit 34e7bf1acc

View File

@ -9,23 +9,19 @@ title: MediaTek MT8188 ASoC sound card
maintainers: maintainers:
- Trevor Wu <trevor.wu@mediatek.com> - Trevor Wu <trevor.wu@mediatek.com>
allOf:
- $ref: sound-card-common.yaml#
properties: properties:
compatible: compatible:
enum: enum:
- mediatek,mt8188-mt6359-evb - mediatek,mt8188-mt6359-evb
- mediatek,mt8188-nau8825 - mediatek,mt8188-nau8825
model:
$ref: /schemas/types.yaml#/definitions/string
description: User specified audio sound card name
audio-routing: audio-routing:
$ref: /schemas/types.yaml#/definitions/non-unique-string-array
description: description:
A list of the connections between audio components. Each entry is a Valid names could be the input or output widgets of audio components,
sink/source pair of strings. Valid names could be the input or output power supplies, MicBias of codec and the software switch.
widgets of audio components, power supplies, MicBias of codec and the
software switch.
mediatek,platform: mediatek,platform:
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
@ -86,7 +82,7 @@ patternProperties:
required: required:
- link-name - link-name
additionalProperties: false unevaluatedProperties: false
required: required:
- compatible - compatible
@ -96,6 +92,7 @@ examples:
- | - |
sound { sound {
compatible = "mediatek,mt8188-mt6359-evb"; compatible = "mediatek,mt8188-mt6359-evb";
model = "MT6359-EVB";
mediatek,platform = <&afe>; mediatek,platform = <&afe>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&aud_pins_default>; pinctrl-0 = <&aud_pins_default>;