From: Macpaul Lin <macpaul.lin@mediatek.com>
To: Conor Dooley <conor@kernel.org>
Cc: Sen Chu <sen.chu@mediatek.com>,
Sean Wang <sean.wang@mediatek.com>, "Lee Jones" <lee@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Eason Yen <eason.yen@mediatek.com>,
Jiaxin Yu <jiaxin.yu@mediatek.com>,
Shane Chien <shane.chien@mediatek.com>,
Hui Liu <hui.liu@mediatek.com>, <linux-pm@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-mediatek@lists.infradead.org>,
<linux-sound@vger.kernel.org>,
Alexandre Mergnat <amergnat@baylibre.com>,
Bear Wang <bear.wang@mediatek.com>,
Pablo Sun <pablo.sun@mediatek.com>,
Macpaul Lin <macpaul@gmail.com>,
Chris-qj chen <chris-qj.chen@mediatek.com>,
"MediaTek Chromebook Upstream"
<Project_Global_Chrome_Upstream_Group@mediatek.com>,
Chen-Yu Tsai <wenst@chromium.org>
Subject: Re: [PATCH 2/3] dt-bindings: mfd: mediatek: mt6397: add compatible for mt6359-codec
Date: Fri, 27 Sep 2024 15:57:58 +0800 [thread overview]
Message-ID: <78381b10-eae6-1414-6913-994e1ed03410@mediatek.com> (raw)
In-Reply-To: <20240926-smokeless-clobber-0fb8a1cdc7ab@spud>
On 9/27/24 00:04, Conor Dooley wrote:
> On Thu, Sep 26, 2024 at 05:25:18PM +0800, Macpaul Lin wrote:
>> This patch updates the audio-codec properties includes:
>> - compatible:
>> - Re-order the supported device items.
>> - Add 'mt6359-codec' to compatible since MT6359 PMIC has been included
>> in this DT Schema.
>
>> - Set 'additionalProperties: true' for 'mt6359-codec'.
>
> Why?
The mt6359-codec support these 3 properties:
mediatek,mic-type0, mediatek,mic-type-1, mediatek-mic-type2.
While mt6358-sound and mt6397-codec don't (at least, I didn't find
these 3 properties in driver codes.
Set 'additionalProperties: true' is also required to fix the following
dtbs_check errors:
pmic: audio-codec: 'mediatek,mic-type-0', 'mediatek,mic-type-1',
'mediatek,mic-type-2' do not match any of the regexes:
'pinctrl-[0-9]+'
>>
>> Signed-off-by: Macpaul Lin <macpaul.lin@mediatek.com>
>> ---
>> Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml b/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml
>> index 40cabaf60d0d..ffb5848a96d5 100644
>> --- a/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml
>> +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml
>> @@ -104,7 +104,7 @@ properties:
>>
>> audio-codec:
>> type: object
>> - additionalProperties: false
>> + additionalProperties: true
>> description:
>> Audio codec support with MT6397 and MT6358.
>>
>> @@ -112,8 +112,9 @@ properties:
>> compatible:
>> oneOf:
>> - enum:
>> - - mediatek,mt6397-codec
>> - mediatek,mt6358-sound
>> + - mediatek,mt6359-codec
>> + - mediatek,mt6397-codec
>> - items:
>> - enum:
>> - mediatek,mt6366-sound
>> --
>> 2.45.2
>>
Thanks
Macpaul Lin
next prev parent reply other threads:[~2024-09-27 7:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-26 9:25 [PATCH 1/3] ASoC: dt-bindings: mt6359: Update generic node name and dmic-mode Macpaul Lin
2024-09-26 9:25 ` [PATCH 2/3] dt-bindings: mfd: mediatek: mt6397: add compatible for mt6359-codec Macpaul Lin
2024-09-26 16:04 ` Conor Dooley
2024-09-27 7:57 ` Macpaul Lin [this message]
2024-09-27 9:42 ` Krzysztof Kozlowski
2024-09-30 5:42 ` Macpaul Lin
2024-09-26 9:25 ` [PATCH 3/3] arm64: dts: mediatek: mt6359: fix dtbs_check error for audio-codec Macpaul Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=78381b10-eae6-1414-6913-994e1ed03410@mediatek.com \
--to=macpaul.lin@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=amergnat@baylibre.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=bear.wang@mediatek.com \
--cc=broonie@kernel.org \
--cc=chris-qj.chen@mediatek.com \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=eason.yen@mediatek.com \
--cc=hui.liu@mediatek.com \
--cc=jiaxin.yu@mediatek.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=macpaul@gmail.com \
--cc=matthias.bgg@gmail.com \
--cc=pablo.sun@mediatek.com \
--cc=robh@kernel.org \
--cc=sean.wang@mediatek.com \
--cc=sen.chu@mediatek.com \
--cc=shane.chien@mediatek.com \
--cc=wenst@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox