[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220324055700.28736-1-miles.chen@mediatek.com>
Date: Thu, 24 Mar 2022 13:57:00 +0800
From: Miles Chen <miles.chen@...iatek.com>
To: <trevor.wu@...iatek.com>
CC: <aaronyu@...gle.com>, <alsa-devel@...a-project.org>,
<angelogioacchino.delregno@...labora.com>, <broonie@...nel.org>,
<devicetree@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>,
<linux-mediatek@...ts.infradead.org>, <matthias.bgg@...il.com>,
<miles.chen@...iatek.com>, <robh+dt@...nel.org>, <tiwai@...e.com>,
<tzungbi@...gle.com>, <yc.hung@...iatek.com>
Subject: Re: [PATCH v4 3/6] ASoC: dt-bindings: mediatek: mt8195: merge mt8195 machine yaml
> Because the same binding components can be shared by all codecs
> combinations, we only reserve one binding file for mt8195 machine driver
> and rename to a generic name.
>
> We use compatible string to separate different codec combination instead
> of creating a new binding file for new codec combination.
>
> Signed-off-by: Trevor Wu <trevor.wu@...iatek.com>
>---
...snip...
>diff --git a/Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1019-rt5682.yaml b/Documentation/devicetree/bindings/sound/mt8195-mt6359.yaml
>similarity index 87%
>rename from Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1019-rt5682.yaml
>rename to Documentation/devicetree/bindings/sound/mt8195-mt6359.yaml
>index 8f177e02ad35..04953f5b44a4 100644
>--- a/Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1019-rt5682.yaml
>+++ b/Documentation/devicetree/bindings/sound/mt8195-mt6359.yaml
>@@ -1,10 +1,10 @@
> # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> %YAML 1.2
> ---
>-$id: http://devicetree.org/schemas/sound/mt8195-mt6359-rt1019-rt5682.yaml#
>+$id: http://devicetree.org/schemas/sound/mt8195-mt6359.yaml#
> $schema: http://devicetree.org/meta-schemas/core.yaml#
>
>-title: Mediatek MT8195 with MT6359, RT1019 and RT5682 ASoC sound card driver
>+title: MediaTek MT8195 ASoC sound card driver
>
I also tested:
'make dt_binding_check DT_CHECKER_FLAGS=-m DT_SCHEMA_FILES=Documentation/devicetree/bindings/sound/mt8195-mt6359.yaml'
and it wotks fine.
Reviewed-by: Miles Chen <miles.chen@...iatek.com>
> maintainers:
> - Trevor Wu <trevor.wu@...iatek.com>
>@@ -14,7 +14,9 @@ description:
>
> properties:
> compatible:
>- const: mediatek,mt8195_mt6359_rt1019_rt5682
>+ enum:
>+ - mediatek,mt8195_mt6359_rt1019_rt5682
>+ - mediatek,mt8195_mt6359_rt1011_rt5682
>
> model:
> $ref: /schemas/types.yaml#/definitions/string
>--
>2.18.0
>
>
Powered by blists - more mailing lists