* [PATCH v2 1/8] ASoC: dt-bindings: realtek,rt5682s: Add AVDD and MICVDD supplies
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:19 ` Nícolas F. R. A. Prado
2022-11-02 18:19 ` [PATCH v2 2/8] ASoC: dt-bindings: realtek,rt5682s: Add DBVDD and LDO1-IN supplies Nícolas F. R. A. Prado
` (7 subsequent siblings)
8 siblings, 0 replies; 12+ 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, Derek Fang, Krzysztof Kozlowski,
Liam Girdwood, Rob Herring, alsa-devel, devicetree, linux-kernel
The rt5682s codec has two supplies - AVDD and MICVDD - which are already
used by sc7180-trogdor-kingoftown.dtsi. Document them in the binding.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
(no changes since v1)
.../devicetree/bindings/sound/realtek,rt5682s.yaml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml b/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml
index 1c0b06d82369..b7338bfc0f5a 100644
--- a/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml
+++ b/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml
@@ -90,11 +90,20 @@ properties:
"#sound-dai-cells":
const: 1
+ AVDD-supply:
+ description: Regulator supplying analog power through the AVDD pin.
+
+ MICVDD-supply:
+ description: Regulator supplying power for the microphone bias through the
+ MICVDD pin.
+
additionalProperties: false
required:
- compatible
- reg
+ - AVDD-supply
+ - MICVDD-supply
examples:
- |
@@ -120,5 +129,8 @@ examples:
clocks = <&osc>;
clock-names = "mclk";
+
+ AVDD-supply = <&avdd_reg>;
+ MICVDD-supply = <&micvdd_reg>;
};
};
--
2.38.1
^ permalink raw reply [flat|nested] 12+ messages in thread* [PATCH v2 2/8] ASoC: dt-bindings: realtek,rt5682s: Add DBVDD and LDO1-IN supplies
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:19 ` [PATCH v2 1/8] ASoC: dt-bindings: realtek,rt5682s: Add AVDD and MICVDD supplies Nícolas F. R. A. Prado
@ 2022-11-02 18:19 ` Nícolas F. R. A. Prado
2022-11-04 21:52 ` Rob Herring
2022-11-02 18:19 ` [PATCH v2 3/8] ASoC: dt-bindings: rt5682: Add AVDD, MICVDD and VBAT supplies Nícolas F. R. A. Prado
` (6 subsequent siblings)
8 siblings, 1 reply; 12+ 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, Derek Fang, Krzysztof Kozlowski,
Liam Girdwood, Rob Herring, alsa-devel, devicetree, linux-kernel
The rt5682s codec has two additional power supply pins, DBVDD and
LDO1_IN, that aren't currently described in the binding. 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
.../devicetree/bindings/sound/realtek,rt5682s.yaml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml b/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml
index b7338bfc0f5a..dc418652f241 100644
--- a/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml
+++ b/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml
@@ -97,6 +97,13 @@ properties:
description: Regulator supplying power for the microphone bias through the
MICVDD pin.
+ DBVDD-supply:
+ description: Regulator supplying I/O power through the DBVDD pin.
+
+ LDO1-IN-supply:
+ description: Regulator supplying power to the digital core and charge pump
+ through the LDO1_IN pin.
+
additionalProperties: false
required:
@@ -104,6 +111,8 @@ required:
- reg
- AVDD-supply
- MICVDD-supply
+ - DBVDD-supply
+ - LDO1-IN-supply
examples:
- |
@@ -132,5 +141,7 @@ examples:
AVDD-supply = <&avdd_reg>;
MICVDD-supply = <&micvdd_reg>;
+ DBVDD-supply = <&dbvdd_reg>;
+ LDO1-IN-supply = <&ldo1_in_reg>;
};
};
--
2.38.1
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH v2 2/8] ASoC: dt-bindings: realtek,rt5682s: Add DBVDD and LDO1-IN supplies
2022-11-02 18:19 ` [PATCH v2 2/8] ASoC: dt-bindings: realtek,rt5682s: Add DBVDD and LDO1-IN supplies Nícolas F. R. A. Prado
@ 2022-11-04 21:52 ` Rob Herring
0 siblings, 0 replies; 12+ messages in thread
From: Rob Herring @ 2022-11-04 21:52 UTC (permalink / raw)
To: Nícolas F. R. A. Prado
Cc: Derek Fang, Liam Girdwood, Krzysztof Kozlowski,
AngeloGioacchino Del Regno, Bjorn Andersson, alsa-devel,
linux-kernel, Mark Brown, devicetree, Rob Herring, Chen-Yu Tsai,
kernel
On Wed, 02 Nov 2022 14:19:56 -0400, Nícolas F. R. A. Prado wrote:
> The rt5682s codec has two additional power supply pins, DBVDD and
> LDO1_IN, that aren't currently described in the binding. 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
>
> .../devicetree/bindings/sound/realtek,rt5682s.yaml | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 3/8] ASoC: dt-bindings: rt5682: Add AVDD, MICVDD and VBAT supplies
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:19 ` [PATCH v2 1/8] ASoC: dt-bindings: realtek,rt5682s: Add AVDD and MICVDD supplies Nícolas F. R. A. Prado
2022-11-02 18:19 ` [PATCH v2 2/8] ASoC: dt-bindings: realtek,rt5682s: Add DBVDD and LDO1-IN supplies Nícolas F. R. A. Prado
@ 2022-11-02 18:19 ` Nícolas F. R. A. Prado
2022-11-02 18:19 ` [PATCH v2 4/8] ASoC: dt-bindings: rt5682: Add DBVDD and LDO1-IN supplies Nícolas F. R. A. Prado
` (5 subsequent siblings)
8 siblings, 0 replies; 12+ 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, Krzysztof Kozlowski, Liam Girdwood,
Rob Herring, alsa-devel, devicetree, linux-kernel
The rt5682 codec has three supplies - AVDD, MICVDD and VBAT - which are
already used by sc7180-trogdor.dtsi. Document them in the binding.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
(no changes since v1)
Documentation/devicetree/bindings/sound/rt5682.txt | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/rt5682.txt b/Documentation/devicetree/bindings/sound/rt5682.txt
index 6b87db68337c..89e6245b870e 100644
--- a/Documentation/devicetree/bindings/sound/rt5682.txt
+++ b/Documentation/devicetree/bindings/sound/rt5682.txt
@@ -8,6 +8,15 @@ Required properties:
- reg : The I2C address of the device.
+- AVDD-supply: phandle to the regulator supplying analog power through the
+ AVDD pin
+
+- MICVDD-supply: phandle to the regulator supplying power for the microphone
+ bias through the MICVDD pin. Either MICVDD or VBAT should be present.
+
+- VBAT-supply: phandle to the regulator supplying battery power through the
+ VBAT pin. Either MICVDD or VBAT should be present.
+
Optional properties:
- interrupts : The CODEC's interrupt output.
@@ -75,4 +84,7 @@ rt5682 {
clocks = <&osc>;
clock-names = "mclk";
+
+ AVDD-supply = <&avdd_reg>;
+ MICVDD-supply = <&micvdd_reg>;
};
--
2.38.1
^ permalink raw reply [flat|nested] 12+ messages in thread* [PATCH v2 4/8] ASoC: dt-bindings: rt5682: Add DBVDD and LDO1-IN supplies
2022-11-02 18:19 [PATCH v2 0/8] Adjust usage of rt5682(s) power supply properties Nícolas F. R. A. Prado
` (2 preceding siblings ...)
2022-11-02 18:19 ` [PATCH v2 3/8] ASoC: dt-bindings: rt5682: Add AVDD, MICVDD and VBAT supplies Nícolas F. R. A. Prado
@ 2022-11-02 18:19 ` Nícolas F. R. A. Prado
2022-11-04 21:52 ` Rob Herring
2022-11-02 18:19 ` [PATCH v2 5/8] ASoC: rt5682s: Support " Nícolas F. R. A. Prado
` (4 subsequent siblings)
8 siblings, 1 reply; 12+ 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, Krzysztof Kozlowski, Liam Girdwood,
Rob Herring, alsa-devel, devicetree, linux-kernel
The rt5682 codec has two additional power supply pins, DBVDD and
LDO1_IN, that aren't currently described in the binding. Add them.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
Changes in v2:
- Made names uppercase
Documentation/devicetree/bindings/sound/rt5682.txt | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/rt5682.txt b/Documentation/devicetree/bindings/sound/rt5682.txt
index 89e6245b870e..5e1d08de18a5 100644
--- a/Documentation/devicetree/bindings/sound/rt5682.txt
+++ b/Documentation/devicetree/bindings/sound/rt5682.txt
@@ -17,6 +17,12 @@ Required properties:
- VBAT-supply: phandle to the regulator supplying battery power through the
VBAT pin. Either MICVDD or VBAT should be present.
+- DBVDD-supply: phandle to the regulator supplying I/O power through the DBVDD
+ pin.
+
+- LDO1-IN-supply: phandle to the regulator supplying power to the digital core
+ and charge pump through the LDO1_IN pin.
+
Optional properties:
- interrupts : The CODEC's interrupt output.
@@ -87,4 +93,6 @@ rt5682 {
AVDD-supply = <&avdd_reg>;
MICVDD-supply = <&micvdd_reg>;
+ DBVDD-supply = <&dbvdd_reg>;
+ LDO1-IN-supply = <&ldo1_in_reg>;
};
--
2.38.1
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH v2 4/8] ASoC: dt-bindings: rt5682: Add DBVDD and LDO1-IN supplies
2022-11-02 18:19 ` [PATCH v2 4/8] ASoC: dt-bindings: rt5682: Add DBVDD and LDO1-IN supplies Nícolas F. R. A. Prado
@ 2022-11-04 21:52 ` Rob Herring
0 siblings, 0 replies; 12+ messages in thread
From: Rob Herring @ 2022-11-04 21:52 UTC (permalink / raw)
To: Nícolas F. R. A. Prado
Cc: AngeloGioacchino Del Regno, Krzysztof Kozlowski, devicetree,
Rob Herring, kernel, Liam Girdwood, Mark Brown, alsa-devel,
linux-kernel, Chen-Yu Tsai, Bjorn Andersson
On Wed, 02 Nov 2022 14:19:58 -0400, Nícolas F. R. A. Prado wrote:
> The rt5682 codec has two additional power supply pins, DBVDD and
> LDO1_IN, that aren't currently described in the binding. Add them.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
>
> ---
>
> Changes in v2:
> - Made names uppercase
>
> Documentation/devicetree/bindings/sound/rt5682.txt | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 5/8] ASoC: rt5682s: Support DBVDD and LDO1-IN supplies
2022-11-02 18:19 [PATCH v2 0/8] Adjust usage of rt5682(s) power supply properties Nícolas F. R. A. Prado
` (3 preceding siblings ...)
2022-11-02 18:19 ` [PATCH v2 4/8] ASoC: dt-bindings: rt5682: Add DBVDD and LDO1-IN supplies Nícolas F. R. A. Prado
@ 2022-11-02 18:19 ` Nícolas F. R. A. Prado
2022-11-02 18:20 ` [PATCH v2 6/8] ASoC: rt5682: " Nícolas F. R. A. Prado
` (3 subsequent siblings)
8 siblings, 0 replies; 12+ 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, Jaroslav Kysela, Liam Girdwood,
Oder Chiou, Takashi Iwai, alsa-devel, linux-kernel
Add support for the DBVDD and LDO1-IN supplies.
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
sound/soc/codecs/rt5682s.c | 22 ++++++++++++++++++++++
sound/soc/codecs/rt5682s.h | 2 ++
2 files changed, 24 insertions(+)
diff --git a/sound/soc/codecs/rt5682s.c b/sound/soc/codecs/rt5682s.c
index 80c673aa14db..f5e5dbc3b0f0 100644
--- a/sound/soc/codecs/rt5682s.c
+++ b/sound/soc/codecs/rt5682s.c
@@ -44,6 +44,8 @@ static const struct rt5682s_platform_data i2s_default_platform_data = {
static const char *rt5682s_supply_names[RT5682S_NUM_SUPPLIES] = {
[RT5682S_SUPPLY_AVDD] = "AVDD",
[RT5682S_SUPPLY_MICVDD] = "MICVDD",
+ [RT5682S_SUPPLY_DBVDD] = "DBVDD",
+ [RT5682S_SUPPLY_LDO1_IN] = "LDO1-IN",
};
static const struct reg_sequence patch_list[] = {
@@ -3089,6 +3091,14 @@ static void rt5682s_i2c_disable_regulators(void *data)
if (ret)
dev_err(dev, "Failed to disable supply AVDD: %d\n", ret);
+ ret = regulator_disable(rt5682s->supplies[RT5682S_SUPPLY_DBVDD].consumer);
+ if (ret)
+ dev_err(dev, "Failed to disable supply DBVDD: %d\n", ret);
+
+ ret = regulator_disable(rt5682s->supplies[RT5682S_SUPPLY_LDO1_IN].consumer);
+ if (ret)
+ dev_err(dev, "Failed to disable supply LDO1-IN: %d\n", ret);
+
usleep_range(1000, 1500);
ret = regulator_disable(rt5682s->supplies[RT5682S_SUPPLY_MICVDD].consumer);
@@ -3150,6 +3160,18 @@ static int rt5682s_i2c_probe(struct i2c_client *i2c)
return ret;
}
+ ret = regulator_enable(rt5682s->supplies[RT5682S_SUPPLY_DBVDD].consumer);
+ if (ret) {
+ dev_err(&i2c->dev, "Failed to enable supply DBVDD: %d\n", ret);
+ return ret;
+ }
+
+ ret = regulator_enable(rt5682s->supplies[RT5682S_SUPPLY_LDO1_IN].consumer);
+ if (ret) {
+ dev_err(&i2c->dev, "Failed to enable supply LDO1-IN: %d\n", ret);
+ return ret;
+ }
+
if (gpio_is_valid(rt5682s->pdata.ldo1_en)) {
if (devm_gpio_request_one(&i2c->dev, rt5682s->pdata.ldo1_en,
GPIOF_OUT_INIT_HIGH, "rt5682s"))
diff --git a/sound/soc/codecs/rt5682s.h b/sound/soc/codecs/rt5682s.h
index 45464a041765..67f86a38a1cc 100644
--- a/sound/soc/codecs/rt5682s.h
+++ b/sound/soc/codecs/rt5682s.h
@@ -1438,6 +1438,8 @@ struct pll_calc_map {
enum {
RT5682S_SUPPLY_AVDD,
RT5682S_SUPPLY_MICVDD,
+ RT5682S_SUPPLY_DBVDD,
+ RT5682S_SUPPLY_LDO1_IN,
RT5682S_NUM_SUPPLIES,
};
--
2.38.1
^ permalink raw reply [flat|nested] 12+ messages in thread* [PATCH v2 6/8] ASoC: rt5682: Support DBVDD and LDO1-IN supplies
2022-11-02 18:19 [PATCH v2 0/8] Adjust usage of rt5682(s) power supply properties Nícolas F. R. A. Prado
` (4 preceding siblings ...)
2022-11-02 18:19 ` [PATCH v2 5/8] ASoC: rt5682s: Support " Nícolas F. R. A. Prado
@ 2022-11-02 18:20 ` 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 subsequent siblings)
8 siblings, 0 replies; 12+ 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, Jaroslav Kysela, Liam Girdwood,
Oder Chiou, Takashi Iwai, alsa-devel, linux-kernel
Add support for the DBVDD and LDO1-IN supplies.
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
sound/soc/codecs/rt5682.c | 2 ++
sound/soc/codecs/rt5682.h | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c
index 2df95e792900..7e3eb65afe16 100644
--- a/sound/soc/codecs/rt5682.c
+++ b/sound/soc/codecs/rt5682.c
@@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = {
"AVDD",
"MICVDD",
"VBAT",
+ "DBVDD",
+ "LDO1-IN",
};
EXPORT_SYMBOL_GPL(rt5682_supply_names);
diff --git a/sound/soc/codecs/rt5682.h b/sound/soc/codecs/rt5682.h
index 52ff0d9c36c5..d568c6993c33 100644
--- a/sound/soc/codecs/rt5682.h
+++ b/sound/soc/codecs/rt5682.h
@@ -1424,7 +1424,7 @@ enum {
RT5682_CLK_SEL_I2S2_ASRC,
};
-#define RT5682_NUM_SUPPLIES 3
+#define RT5682_NUM_SUPPLIES 5
struct rt5682_priv {
struct snd_soc_component *component;
--
2.38.1
^ permalink raw reply [flat|nested] 12+ 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
` (5 preceding siblings ...)
2022-11-02 18:20 ` [PATCH v2 6/8] ASoC: rt5682: " 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
8 siblings, 0 replies; 12+ 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 [flat|nested] 12+ 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
` (6 preceding siblings ...)
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
8 siblings, 0 replies; 12+ 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 [flat|nested] 12+ 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
` (7 preceding siblings ...)
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
8 siblings, 0 replies; 12+ 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] 12+ messages in thread