From: Alexandre Mergnat <amergnat@baylibre.com>
To: "Krzysztof Kozlowski" <krzk@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Mark Brown" <broonie@kernel.org>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"Lee Jones" <lee@kernel.org>, "Flora Fu" <flora.fu@mediatek.com>,
"Jaroslav Kysela" <perex@perex.cz>,
"Takashi Iwai" <tiwai@suse.com>,
"Sumit Semwal" <sumit.semwal@linaro.org>,
"Christian König" <christian.koenig@amd.com>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Will Deacon" <will@kernel.org>, "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-media@vger.kernel.org,
dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org
Subject: Re: [PATCH v6 03/16] dt-bindings: mfd: mediatek: Add codec property for MT6357 PMIC
Date: Wed, 26 Jun 2024 10:30:01 +0200 [thread overview]
Message-ID: <79811fff-4fdf-4121-9cea-6ed7e1329dad@baylibre.com> (raw)
In-Reply-To: <5c9ab5bf-95f2-4195-8797-335010223aac@kernel.org>
On 25/06/2024 15:44, Krzysztof Kozlowski wrote:
> On 25/06/2024 11:23, Alexandre Mergnat wrote:
>>
>>
>> On 21/06/2024 17:00, Krzysztof Kozlowski wrote:
>>> On 19/06/2024 16:46, Alexandre Mergnat wrote:
>>>> Add the audio codec sub-device. This sub-device is used to set the
>>>> optional voltage values according to the hardware.
>>>> The properties are:
>>>> - Setup of microphone bias voltage.
>>>> - Setup of the speaker pin pull-down.
>>>>
>>>> Also, add the audio power supply property which is dedicated for
>>>> the audio codec sub-device.
>>>>
>>>> Signed-off-by: Alexandre Mergnat<amergnat@baylibre.com>
>>>> ---
>>>> .../devicetree/bindings/mfd/mediatek,mt6357.yaml | 33 ++++++++++++++++++++++
>>>> 1 file changed, 33 insertions(+)
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml b/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml
>>>> index 37423c2e0fdf..d95307393e75 100644
>>>> --- a/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml
>>>> +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml
>>>> @@ -37,6 +37,32 @@ properties:
>>>> "#interrupt-cells":
>>>> const: 2
>>>>
>>>> + vaud28-supply:
>>>> + description: 2.8 volt supply phandle for the audio codec
>>>> +
>>>> + audio-codec:
>>>> + type: object
>>> Still not much improved. You do not have any resources there, so these
>>> should go to the parent node.
>>
>> Hi Krzysztof,
>>
>> vaud28-supply seems to be a mistake that I forward port.
>> In the V4, AFAII, your feedback [1] suggested me to move the vaud28-supply from the "audio-codec"
>> sub-node to the parent node, which for me is the "pmic" (mfd), because the property is considered as
>> power-supply.
>>
>> pwrap {
>> pmic {
>> ...
>> audio-codec {
>> ...
>>
>> Hardware side, vaud28-supply is the output of PMIC-regulator subsystem, and AVDD28 is the input of
>> PMIC-audio-codec subsystem. Then:
>> - The property name is wrong and must be change to AVDD28, which is a consumer (power input), not a
>> power-supply. => description: 2.8 volt power input for microphones (AU_VIN0, AU_VIN1, AU_VIN2)
>> - IMHO, move this property to the next parent (pwrap) isn't consistent. It should be moved back to
>> Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml (Done in the V4) into audio-codec
>> substystem, beside mediatek,micbias0-microvolt
>
> I don't understand why do we talk again about supply. My comment was not
> under the supply.
Because your word are:
"
And now you should see how odd it looks. Supplies are part of entire
chip, not subblock, even if they supply dedicated domain within that chip.
That's why I asked to put it in the parent node.
"
My bad, I forgot to link you the old message in my previous answer [1]
[1] https://lore.kernel.org/all/6d21da37-8be7-467c-8878-d57af0b0201b@kernel.org/#t
--
Regards,
Alexandre
next prev parent reply other threads:[~2024-06-26 8:30 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-19 14:46 [PATCH v6 00/16] Add audio support for the MediaTek Genio 350-evk board Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 01/16] ASoC: dt-bindings: mediatek,mt8365-afe: Add audio afe document Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 02/16] ASoC: dt-bindings: mediatek,mt8365-mt6357: Add audio sound card document Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 03/16] dt-bindings: mfd: mediatek: Add codec property for MT6357 PMIC Alexandre Mergnat
2024-06-21 15:00 ` Krzysztof Kozlowski
2024-06-25 9:23 ` Alexandre Mergnat
2024-06-25 13:44 ` Krzysztof Kozlowski
2024-06-26 8:30 ` Alexandre Mergnat [this message]
2024-06-26 9:12 ` Krzysztof Kozlowski
2024-06-26 9:14 ` Krzysztof Kozlowski
2024-06-19 14:46 ` [PATCH v6 04/16] ASoC: mediatek: mt8365: Add common header Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 05/16] ASoC: mediatek: mt8365: Add audio clock control support Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 06/16] ASoC: mediatek: mt8365: Add I2S DAI support Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 07/16] ASoC: mediatek: mt8365: Add ADDA " Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 08/16] ASoC: mediatek: mt8365: Add DMIC " Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 09/16] ASoC: mediatek: mt8365: Add PCM " Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 10/16] ASoc: mediatek: mt8365: Add a specific soundcard for EVK amergnat
2024-06-19 14:46 ` [PATCH v6 11/16] ASoC: mediatek: mt8365: Add the AFE driver support Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 12/16] ASoC: codecs: add MT6357 support amergnat
2024-06-19 15:01 ` AngeloGioacchino Del Regno
2024-06-21 12:44 ` Mark Brown
2024-07-19 8:03 ` Alexandre Mergnat
2024-06-21 14:58 ` Mark Brown
2024-06-19 14:46 ` [PATCH v6 13/16] ASoC: mediatek: Add MT8365 support Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 14/16] arm64: defconfig: enable mt8365 sound Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 15/16] arm64: dts: mediatek: add afe support for mt8365 SoC Alexandre Mergnat
2024-06-19 14:46 ` [PATCH v6 16/16] arm64: dts: mediatek: add audio support for mt8365-evk Alexandre Mergnat
2024-06-19 14:58 ` AngeloGioacchino Del Regno
2024-09-04 11:16 ` (subset) [PATCH v6 00/16] Add audio support for the MediaTek Genio 350-evk board Mark Brown
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=79811fff-4fdf-4121-9cea-6ed7e1329dad@baylibre.com \
--to=amergnat@baylibre.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=christian.koenig@amd.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=flora.fu@mediatek.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-sound@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=perex@perex.cz \
--cc=robh+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sumit.semwal@linaro.org \
--cc=tiwai@suse.com \
--cc=will@kernel.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