lkml.org 
[lkml]   [2023]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 03/12] ASoC: dt-bindings: mediatek,mt8188-mt6359: use common sound card
    Date
    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.

    Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
    ---
    .../bindings/sound/mediatek,mt8188-mt6359.yaml | 17 +++++++----------
    1 file changed, 7 insertions(+), 10 deletions(-)

    diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
    index 05e532b5d50a..43b3b67bdf3b 100644
    --- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
    +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
    @@ -9,23 +9,19 @@ title: MediaTek MT8188 ASoC sound card
    maintainers:
    - Trevor Wu <trevor.wu@mediatek.com>

    +allOf:
    + - $ref: sound-card-common.yaml#
    +
    properties:
    compatible:
    enum:
    - mediatek,mt8188-mt6359-evb
    - mediatek,mt8188-nau8825

    - model:
    - $ref: /schemas/types.yaml#/definitions/string
    - description: User specified audio sound card name
    -
    audio-routing:
    - $ref: /schemas/types.yaml#/definitions/non-unique-string-array
    description:
    - A list of the connections between audio components. Each entry is a
    - sink/source pair of strings. Valid names could be the input or output
    - widgets of audio components, power supplies, MicBias of codec and the
    - software switch.
    + Valid names could be the input or output widgets of audio components,
    + power supplies, MicBias of codec and the software switch.

    mediatek,platform:
    $ref: /schemas/types.yaml#/definitions/phandle
    @@ -86,7 +82,7 @@ patternProperties:
    required:
    - link-name

    -additionalProperties: false
    +unevaluatedProperties: false

    required:
    - compatible
    @@ -96,6 +92,7 @@ examples:
    - |
    sound {
    compatible = "mediatek,mt8188-mt6359-evb";
    + model = "MT6359-EVB";
    mediatek,platform = <&afe>;
    pinctrl-names = "default";
    pinctrl-0 = <&aud_pins_default>;
    --
    2.34.1
    \
     
     \ /
      Last update: 2023-07-31 11:43    [W:3.848 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site