From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: "Nícolas F. R. A. Prado" <nfraprado@collabora.com>,
"Mark Brown" <broonie@kernel.org>
Cc: kernel@collabora.com, Derek Fang <derek.fang@realtek.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Rob Herring <robh+dt@kernel.org>,
alsa-devel@alsa-project.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/4] ASoC: dt-bindings: realtek,rt5682s: Add AVDD and MICVDD supplies
Date: Tue, 25 Oct 2022 12:06:23 +0200 [thread overview]
Message-ID: <dcf284c6-dee5-d726-7f8f-c4ff1be99ddb@collabora.com> (raw)
In-Reply-To: <20221024220015.1759428-3-nfraprado@collabora.com>
Il 25/10/22 00:00, Nícolas F. R. A. Prado ha scritto:
> The rt5682s codec can have two supplies: AVDD and MICVDD. They are
> already used by sc7180-trogdor-kingoftown.dtsi, so document them in the
> binding.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
>
I also don't like these uppercase supply names... I wonder if it's worth changing
the driver to get "avdd" *or* "AVDD" (so, if "avdd" fails -> backwards compat)...
...this way, we can change the devicetree to use the lowercase names without
breaking abi.
Of course, this commit would need to be changed to document only the lowercase
supply names.
Driver-wise, we have a rt5682s_supply_names array... we could do something like:
static const char *rt5682s_supply_names_legacy[RT5682S_NUM_SUPPLIES] = {
[RT5682S_SUPPLY_AVDD] = "AVDD",
[RT5682S_SUPPLY_MICVDD] = "MICVDD",
};
static const char *rt5682s_supply_names[RT5682S_NUM_SUPPLIES] = {
[RT5682S_SUPPLY_AVDD] = "avdd",
[RT5682S_SUPPLY_MICVDD] = "micvdd",
};
for (...) assign_supply_names;
ret = devm_regulator_bulk_get(...);
if (ret) {
for (...) assign_legacy_supply_names;
ret = devm_regulator_bulk_get(...)
if (ret)
return ret;
}
What do you think?
Cheers,
Angelo
next prev parent reply other threads:[~2022-10-25 10:14 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-24 22:00 [PATCH v2 0/4] Add missing dt-binding properties to rt5682(s) Nícolas F. R. A. Prado
2022-10-24 22:00 ` [PATCH v2 1/4] ASoC: dt-bindings: realtek,rt5682s: Add #sound-dai-cells Nícolas F. R. A. Prado
2022-10-25 10:06 ` AngeloGioacchino Del Regno
2022-10-25 19:57 ` Chen-Yu Tsai
2022-10-24 22:00 ` [PATCH v2 2/4] ASoC: dt-bindings: realtek,rt5682s: Add AVDD and MICVDD supplies Nícolas F. R. A. Prado
2022-10-25 10:06 ` AngeloGioacchino Del Regno [this message]
2022-10-27 14:23 ` Nícolas F. R. A. Prado
2022-10-28 21:12 ` Nícolas F. R. A. Prado
2022-10-25 12:26 ` Krzysztof Kozlowski
2022-10-25 20:12 ` [PATCH v2 2/4] ASoC: dt-bindings: realtek, rt5682s: " Chen-Yu Tsai
2022-10-26 12:49 ` Mark Brown
2022-10-27 14:36 ` Nícolas F. R. A. Prado
2022-10-27 14:41 ` Mark Brown
2022-10-27 17:48 ` Chen-Yu Tsai
2022-10-27 18:11 ` Chen-Yu Tsai
2022-10-27 19:20 ` Nícolas F. R. A. Prado
2022-10-27 20:42 ` Chen-Yu Tsai
2022-10-24 22:00 ` [PATCH v2 3/4] ASoC: dt-bindings: rt5682: Set sound-dai-cells to 1 Nícolas F. R. A. Prado
2022-10-25 10:07 ` AngeloGioacchino Del Regno
2022-10-25 12:26 ` Krzysztof Kozlowski
2022-10-25 20:13 ` Chen-Yu Tsai
2022-10-24 22:00 ` [PATCH v2 4/4] ASoC: dt-bindings: rt5682: Add AVDD, MICVDD and VBAT supplies Nícolas F. R. A. Prado
2022-10-25 12:27 ` Krzysztof Kozlowski
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=dcf284c6-dee5-d726-7f8f-c4ff1be99ddb@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=derek.fang@realtek.com \
--cc=devicetree@vger.kernel.org \
--cc=kernel@collabora.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nfraprado@collabora.com \
--cc=robh+dt@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
all inboxes | Powered by JetHome®