* [PATCH v2 0/8] Adjust usage of rt5682(s) power supply properties
@ 2022-11-02 18:19 Nícolas F. R. A. Prado
2022-11-02 18:20 ` [PATCH v2 7/8] arm64: dts: qcom: sc7180-trogdor: Add missing supplies for rt5682 Nícolas F. R. A. Prado
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-11-02 18:19 UTC (permalink / raw)
To: Mark Brown, Bjorn Andersson
Cc: kernel, AngeloGioacchino Del Regno, Chen-Yu Tsai,
Nícolas F. R. A. Prado, Andy Gross, Derek Fang,
Jaroslav Kysela, Konrad Dybcio, Krzysztof Kozlowski,
Liam Girdwood, Oder Chiou, Rob Herring, Takashi Iwai, alsa-devel,
devicetree, linux-arm-msm, linux-kernel
This series sets straight the usage of power supply properties for the
rt5682 and rt5682s audio codecs.
These properties were already being used by sc7180-trogdor.dtsi (and
derived DTs like sc7180-trogdor-kingoftown.dtsi).
We start by documenting the power supplies that are already in use and
then add few others that were missing to the bindings.
Then we update the drivers to also support the new supplies.
Finally we update the trogdor DTs so they have the newly added but
required supplies and remove a superfluous one that was causing
warnings.
v1: https://lore.kernel.org/all/20221028205540.3197304-1-nfraprado@collabora.com
Changes in v2:
- Made new supply names uppercase to be consistent with the existing
ones
Nícolas F. R. A. Prado (8):
ASoC: dt-bindings: realtek,rt5682s: Add AVDD and MICVDD supplies
ASoC: dt-bindings: realtek,rt5682s: Add DBVDD and LDO1-IN supplies
ASoC: dt-bindings: rt5682: Add AVDD, MICVDD and VBAT supplies
ASoC: dt-bindings: rt5682: Add DBVDD and LDO1-IN supplies
ASoC: rt5682s: Support DBVDD and LDO1-IN supplies
ASoC: rt5682: Support DBVDD and LDO1-IN supplies
arm64: dts: qcom: sc7180-trogdor: Add missing supplies for rt5682
arm64: dts: qcom: sc7180-trogdor: Remove VBAT supply from rt5682s
.../bindings/sound/realtek,rt5682s.yaml | 23 +++++++++++++++++++
.../devicetree/bindings/sound/rt5682.txt | 20 ++++++++++++++++
.../dts/qcom/sc7180-trogdor-kingoftown.dtsi | 1 +
...0-trogdor-wormdingler-rev1-boe-rt5682s.dts | 1 +
...0-trogdor-wormdingler-rev1-inx-rt5682s.dts | 1 +
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 ++
sound/soc/codecs/rt5682.c | 2 ++
sound/soc/codecs/rt5682.h | 2 +-
sound/soc/codecs/rt5682s.c | 22 ++++++++++++++++++
sound/soc/codecs/rt5682s.h | 2 ++
10 files changed, 75 insertions(+), 1 deletion(-)
--
2.38.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 7/8] arm64: dts: qcom: sc7180-trogdor: Add missing supplies for rt5682
2022-11-02 18:19 [PATCH v2 0/8] Adjust usage of rt5682(s) power supply properties Nícolas F. R. A. Prado
@ 2022-11-02 18:20 ` Nícolas F. R. A. Prado
2022-11-02 18:20 ` [PATCH v2 8/8] arm64: dts: qcom: sc7180-trogdor: Remove VBAT supply from rt5682s Nícolas F. R. A. Prado
2022-12-06 18:19 ` (subset) [PATCH v2 0/8] Adjust usage of rt5682(s) power supply properties Bjorn Andersson
2 siblings, 0 replies; 4+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-11-02 18:20 UTC (permalink / raw)
To: Mark Brown, Bjorn Andersson
Cc: kernel, AngeloGioacchino Del Regno, Chen-Yu Tsai,
Nícolas F. R. A. Prado, Andy Gross, Konrad Dybcio,
Krzysztof Kozlowski, Rob Herring, devicetree, linux-arm-msm,
linux-kernel
The DBVDD and LDO1-IN supplies for rt5682 are required but are missing.
They are supplied by the same power rail as AVDD. Add them.
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
Changes in v2:
- Made names uppercase
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
index 1a1c346d619c..2adb2fbfebae 100644
--- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
@@ -768,6 +768,8 @@ alc5682: codec@1a {
interrupts = <28 IRQ_TYPE_EDGE_BOTH>;
AVDD-supply = <&pp1800_alc5682>;
+ DBVDD-supply = <&pp1800_alc5682>;
+ LDO1-IN-supply = <&pp1800_alc5682>;
MICVDD-supply = <&pp3300_codec>;
VBAT-supply = <&pp3300_audio>;
--
2.38.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 8/8] arm64: dts: qcom: sc7180-trogdor: Remove VBAT supply from rt5682s
2022-11-02 18:19 [PATCH v2 0/8] Adjust usage of rt5682(s) power supply properties Nícolas F. R. A. Prado
2022-11-02 18:20 ` [PATCH v2 7/8] arm64: dts: qcom: sc7180-trogdor: Add missing supplies for rt5682 Nícolas F. R. A. Prado
@ 2022-11-02 18:20 ` Nícolas F. R. A. Prado
2022-12-06 18:19 ` (subset) [PATCH v2 0/8] Adjust usage of rt5682(s) power supply properties Bjorn Andersson
2 siblings, 0 replies; 4+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-11-02 18:20 UTC (permalink / raw)
To: Mark Brown, Bjorn Andersson
Cc: kernel, AngeloGioacchino Del Regno, Chen-Yu Tsai,
Nícolas F. R. A. Prado, Andy Gross, Konrad Dybcio,
Krzysztof Kozlowski, Rob Herring, devicetree, linux-arm-msm,
linux-kernel
These devicetrees override a rt5682 node to use the rt5682s compatible,
however, unlike rt5682, rt5682s doesn't have a VBAT supply. Remove the
inexistent supply in the rt5682s nodes.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
(no changes since v1)
arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown.dtsi | 1 +
.../dts/qcom/sc7180-trogdor-wormdingler-rev1-boe-rt5682s.dts | 1 +
.../dts/qcom/sc7180-trogdor-wormdingler-rev1-inx-rt5682s.dts | 1 +
3 files changed, 3 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown.dtsi
index 74f0e07ea5cf..e0fb83a9a0b1 100644
--- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown.dtsi
@@ -11,6 +11,7 @@
&alc5682 {
compatible = "realtek,rt5682s";
+ /delete-property/ VBAT-supply;
realtek,dmic1-clk-pin = <2>;
realtek,dmic-clk-rate-hz = <2048000>;
};
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-boe-rt5682s.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-boe-rt5682s.dts
index aa605885c371..6225ab8329c3 100644
--- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-boe-rt5682s.dts
+++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-boe-rt5682s.dts
@@ -19,6 +19,7 @@ / {
&alc5682 {
compatible = "realtek,rt5682s";
+ /delete-property/ VBAT-supply;
realtek,dmic1-clk-pin = <2>;
realtek,dmic-clk-rate-hz = <2048000>;
};
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-inx-rt5682s.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-inx-rt5682s.dts
index 7116c44c8d85..b40b068dad6a 100644
--- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-inx-rt5682s.dts
+++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-inx-rt5682s.dts
@@ -19,6 +19,7 @@ / {
&alc5682 {
compatible = "realtek,rt5682s";
+ /delete-property/ VBAT-supply;
realtek,dmic1-clk-pin = <2>;
realtek,dmic-clk-rate-hz = <2048000>;
};
--
2.38.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: (subset) [PATCH v2 0/8] Adjust usage of rt5682(s) power supply properties
2022-11-02 18:19 [PATCH v2 0/8] Adjust usage of rt5682(s) power supply properties Nícolas F. R. A. Prado
2022-11-02 18:20 ` [PATCH v2 7/8] arm64: dts: qcom: sc7180-trogdor: Add missing supplies for rt5682 Nícolas F. R. A. Prado
2022-11-02 18:20 ` [PATCH v2 8/8] arm64: dts: qcom: sc7180-trogdor: Remove VBAT supply from rt5682s Nícolas F. R. A. Prado
@ 2022-12-06 18:19 ` Bjorn Andersson
2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Andersson @ 2022-12-06 18:19 UTC (permalink / raw)
To: broonie, nfraprado
Cc: robh+dt, tiwai, angelogioacchino.delregno, konrad.dybcio,
lgirdwood, krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel,
wenst, devicetree, kernel, Andy Gross, derek.fang, perex,
oder_chiou, alsa-devel
On Wed, 2 Nov 2022 14:19:54 -0400, Nícolas F. R. A. Prado wrote:
> This series sets straight the usage of power supply properties for the
> rt5682 and rt5682s audio codecs.
>
> These properties were already being used by sc7180-trogdor.dtsi (and
> derived DTs like sc7180-trogdor-kingoftown.dtsi).
>
> We start by documenting the power supplies that are already in use and
> then add few others that were missing to the bindings.
>
> [...]
Applied, thanks!
[7/8] arm64: dts: qcom: sc7180-trogdor: Add missing supplies for rt5682
commit: 172cb25fd25786a3290cffd38dea677edb0b7cca
[8/8] arm64: dts: qcom: sc7180-trogdor: Remove VBAT supply from rt5682s
commit: 147e8b2080f1a0496a1f51739cf591324f133619
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-12-06 18:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-02 18:19 [PATCH v2 0/8] Adjust usage of rt5682(s) power supply properties Nícolas F. R. A. Prado
2022-11-02 18:20 ` [PATCH v2 7/8] arm64: dts: qcom: sc7180-trogdor: Add missing supplies for rt5682 Nícolas F. R. A. Prado
2022-11-02 18:20 ` [PATCH v2 8/8] arm64: dts: qcom: sc7180-trogdor: Remove VBAT supply from rt5682s Nícolas F. R. A. Prado
2022-12-06 18:19 ` (subset) [PATCH v2 0/8] Adjust usage of rt5682(s) power supply properties Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox