All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] Adjust usage of rt5682(s) power supply properties
@ 2022-10-28 20:55 ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: kernel, AngeloGioacchino Del Regno, 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.


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] 42+ messages in thread

* [PATCH 0/8] Adjust usage of rt5682(s) power supply properties
@ 2022-10-28 20:55 ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: Oder Chiou, devicetree, alsa-devel, Nícolas F. R. A. Prado,
	linux-arm-msm, Takashi Iwai, Konrad Dybcio, Liam Girdwood,
	Rob Herring, Andy Gross, Derek Fang, Krzysztof Kozlowski, kernel,
	linux-kernel, AngeloGioacchino Del Regno


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.


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] 42+ messages in thread

* [PATCH 1/8] ASoC: dt-bindings: realtek,rt5682s: Add AVDD and MICVDD supplies
  2022-10-28 20:55 ` Nícolas F. R. A. Prado
@ 2022-10-28 20:55   ` Nícolas F. R. A. Prado
  -1 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: kernel, AngeloGioacchino Del Regno, 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>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

---
Commit adapted from [1], changes:
- Made supplies required
- Added description for supplies

[1] https://lore.kernel.org/all/20221024220015.1759428-3-nfraprado@collabora.com

 .../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 related	[flat|nested] 42+ messages in thread

* [PATCH 1/8] ASoC: dt-bindings: realtek, rt5682s: Add AVDD and MICVDD supplies
@ 2022-10-28 20:55   ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: devicetree, alsa-devel, Nícolas F. R. A. Prado,
	Liam Girdwood, linux-kernel, Rob Herring, Derek Fang,
	Krzysztof Kozlowski, kernel, AngeloGioacchino Del Regno

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>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

---
Commit adapted from [1], changes:
- Made supplies required
- Added description for supplies

[1] https://lore.kernel.org/all/20221024220015.1759428-3-nfraprado@collabora.com

 .../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 related	[flat|nested] 42+ messages in thread

* [PATCH 2/8] ASoC: dt-bindings: realtek,rt5682s: Add dbvdd and ldo1-in supplies
  2022-10-28 20:55 ` Nícolas F. R. A. Prado
@ 2022-10-28 20:55   ` Nícolas F. R. A. Prado
  -1 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: kernel, AngeloGioacchino Del Regno, 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.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---

 .../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..5b2bbf6f9156 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 related	[flat|nested] 42+ messages in thread

* [PATCH 2/8] ASoC: dt-bindings: realtek, rt5682s: Add dbvdd and ldo1-in supplies
@ 2022-10-28 20:55   ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: devicetree, alsa-devel, Nícolas F. R. A. Prado,
	Liam Girdwood, linux-kernel, Rob Herring, Derek Fang,
	Krzysztof Kozlowski, kernel, AngeloGioacchino Del Regno

The rt5682s 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>
---

 .../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..5b2bbf6f9156 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 related	[flat|nested] 42+ messages in thread

* [PATCH 3/8] ASoC: dt-bindings: rt5682: Add AVDD, MICVDD and VBAT supplies
  2022-10-28 20:55 ` Nícolas F. R. A. Prado
@ 2022-10-28 20:55   ` Nícolas F. R. A. Prado
  -1 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: kernel, AngeloGioacchino Del Regno, 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>

---
Commit adapted from [1], changes:
- Made supplies required
- Improved supplies descriptions

[1] https://lore.kernel.org/all/20221024220015.1759428-5-nfraprado@collabora.com

 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 related	[flat|nested] 42+ messages in thread

* [PATCH 3/8] ASoC: dt-bindings: rt5682: Add AVDD, MICVDD and VBAT supplies
@ 2022-10-28 20:55   ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: devicetree, alsa-devel, Nícolas F. R. A. Prado,
	Liam Girdwood, linux-kernel, Rob Herring, Krzysztof Kozlowski,
	kernel, AngeloGioacchino Del Regno

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>

---
Commit adapted from [1], changes:
- Made supplies required
- Improved supplies descriptions

[1] https://lore.kernel.org/all/20221024220015.1759428-5-nfraprado@collabora.com

 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 related	[flat|nested] 42+ messages in thread

* [PATCH 4/8] ASoC: dt-bindings: rt5682: Add dbvdd and ldo1-in supplies
  2022-10-28 20:55 ` Nícolas F. R. A. Prado
@ 2022-10-28 20:55   ` Nícolas F. R. A. Prado
  -1 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: kernel, AngeloGioacchino Del Regno, 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>
---

 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..948109ff0db3 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 related	[flat|nested] 42+ messages in thread

* [PATCH 4/8] ASoC: dt-bindings: rt5682: Add dbvdd and ldo1-in supplies
@ 2022-10-28 20:55   ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: devicetree, alsa-devel, Nícolas F. R. A. Prado,
	Liam Girdwood, linux-kernel, Rob Herring, Krzysztof Kozlowski,
	kernel, AngeloGioacchino Del Regno

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>
---

 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..948109ff0db3 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 related	[flat|nested] 42+ messages in thread

* [PATCH 5/8] ASoC: rt5682s: Support dbvdd and ldo1-in supplies
  2022-10-28 20:55 ` Nícolas F. R. A. Prado
@ 2022-10-28 20:55   ` Nícolas F. R. A. Prado
  -1 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: kernel, AngeloGioacchino Del Regno, 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.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---

 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..de686004e504 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 related	[flat|nested] 42+ messages in thread

* [PATCH 5/8] ASoC: rt5682s: Support dbvdd and ldo1-in supplies
@ 2022-10-28 20:55   ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: Oder Chiou, alsa-devel, Nícolas F. R. A. Prado,
	linux-kernel, Takashi Iwai, Liam Girdwood, kernel,
	AngeloGioacchino Del Regno

Add support for the dbvdd and ldo1-in supplies.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---

 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..de686004e504 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 related	[flat|nested] 42+ messages in thread

* [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
  2022-10-28 20:55 ` Nícolas F. R. A. Prado
@ 2022-10-28 20:55   ` Nícolas F. R. A. Prado
  -1 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: kernel, AngeloGioacchino Del Regno, 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.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---

 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..f0a400285dcf 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 related	[flat|nested] 42+ messages in thread

* [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
@ 2022-10-28 20:55   ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: Oder Chiou, alsa-devel, Nícolas F. R. A. Prado,
	linux-kernel, Takashi Iwai, Liam Girdwood, kernel,
	AngeloGioacchino Del Regno

Add support for the dbvdd and ldo1-in supplies.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---

 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..f0a400285dcf 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 related	[flat|nested] 42+ messages in thread

* [PATCH 7/8] arm64: dts: qcom: sc7180-trogdor: Add missing supplies for rt5682
  2022-10-28 20:55 ` Nícolas F. R. A. Prado
                   ` (6 preceding siblings ...)
  (?)
@ 2022-10-28 20:55 ` Nícolas F. R. A. Prado
  2022-10-31 12:54   ` AngeloGioacchino Del Regno
  -1 siblings, 1 reply; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: kernel, AngeloGioacchino Del Regno, 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.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---

 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..1df507ffb267 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] 42+ messages in thread

* [PATCH 8/8] arm64: dts: qcom: sc7180-trogdor: Remove VBAT supply from rt5682s
  2022-10-28 20:55 ` Nícolas F. R. A. Prado
                   ` (7 preceding siblings ...)
  (?)
@ 2022-10-28 20:55 ` Nícolas F. R. A. Prado
  2022-10-31 12:56   ` AngeloGioacchino Del Regno
  -1 siblings, 1 reply; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-28 20:55 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: kernel, AngeloGioacchino Del Regno, 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>
---

 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] 42+ messages in thread

* Re: [PATCH 5/8] ASoC: rt5682s: Support dbvdd and ldo1-in supplies
  2022-10-28 20:55   ` Nícolas F. R. A. Prado
@ 2022-10-31 12:53     ` AngeloGioacchino Del Regno
  -1 siblings, 0 replies; 42+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-10-31 12:53 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: kernel, Jaroslav Kysela, Liam Girdwood, Oder Chiou, Takashi Iwai,
	alsa-devel, linux-kernel

Il 28/10/22 22:55, Nícolas F. R. A. Prado ha scritto:
> Add support for the dbvdd and ldo1-in supplies.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 5/8] ASoC: rt5682s: Support dbvdd and ldo1-in supplies
@ 2022-10-31 12:53     ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 42+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-10-31 12:53 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: Oder Chiou, alsa-devel, linux-kernel, Takashi Iwai,
	Liam Girdwood, kernel

Il 28/10/22 22:55, Nícolas F. R. A. Prado ha scritto:
> Add support for the dbvdd and ldo1-in supplies.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 1/8] ASoC: dt-bindings: realtek,rt5682s: Add AVDD and MICVDD supplies
  2022-10-28 20:55   ` [PATCH 1/8] ASoC: dt-bindings: realtek, rt5682s: " Nícolas F. R. A. Prado
@ 2022-10-31 12:53     ` AngeloGioacchino Del Regno
  -1 siblings, 0 replies; 42+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-10-31 12:53 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: kernel, Derek Fang, Krzysztof Kozlowski, Liam Girdwood,
	Rob Herring, alsa-devel, devicetree, linux-kernel

Il 28/10/22 22:55, Nícolas F. R. A. Prado ha scritto:
> 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>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>


^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 1/8] ASoC: dt-bindings: realtek,rt5682s: Add AVDD and MICVDD supplies
@ 2022-10-31 12:53     ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 42+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-10-31 12:53 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: devicetree, alsa-devel, Liam Girdwood, linux-kernel, Rob Herring,
	Derek Fang, Krzysztof Kozlowski, kernel

Il 28/10/22 22:55, Nícolas F. R. A. Prado ha scritto:
> 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>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>


^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 2/8] ASoC: dt-bindings: realtek,rt5682s: Add dbvdd and ldo1-in supplies
  2022-10-28 20:55   ` [PATCH 2/8] ASoC: dt-bindings: realtek, rt5682s: " Nícolas F. R. A. Prado
@ 2022-10-31 12:53     ` AngeloGioacchino Del Regno
  -1 siblings, 0 replies; 42+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-10-31 12:53 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: kernel, Derek Fang, Krzysztof Kozlowski, Liam Girdwood,
	Rob Herring, alsa-devel, devicetree, linux-kernel

Il 28/10/22 22:55, Nícolas F. R. A. Prado ha scritto:
> The rt5682s 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>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 2/8] ASoC: dt-bindings: realtek,rt5682s: Add dbvdd and ldo1-in supplies
@ 2022-10-31 12:53     ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 42+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-10-31 12:53 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: devicetree, alsa-devel, Liam Girdwood, linux-kernel, Rob Herring,
	Derek Fang, Krzysztof Kozlowski, kernel

Il 28/10/22 22:55, Nícolas F. R. A. Prado ha scritto:
> The rt5682s 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>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
  2022-10-28 20:55   ` Nícolas F. R. A. Prado
@ 2022-10-31 12:53     ` AngeloGioacchino Del Regno
  -1 siblings, 0 replies; 42+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-10-31 12:53 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: kernel, Jaroslav Kysela, Liam Girdwood, Oder Chiou, Takashi Iwai,
	alsa-devel, linux-kernel

Il 28/10/22 22:55, Nícolas F. R. A. Prado ha scritto:
> Add support for the dbvdd and ldo1-in supplies.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
@ 2022-10-31 12:53     ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 42+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-10-31 12:53 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: Oder Chiou, alsa-devel, linux-kernel, Takashi Iwai,
	Liam Girdwood, kernel

Il 28/10/22 22:55, Nícolas F. R. A. Prado ha scritto:
> Add support for the dbvdd and ldo1-in supplies.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 7/8] arm64: dts: qcom: sc7180-trogdor: Add missing supplies for rt5682
  2022-10-28 20:55 ` [PATCH 7/8] arm64: dts: qcom: sc7180-trogdor: Add missing supplies for rt5682 Nícolas F. R. A. Prado
@ 2022-10-31 12:54   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 42+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-10-31 12:54 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: kernel, Andy Gross, Konrad Dybcio, Krzysztof Kozlowski,
	Rob Herring, devicetree, linux-arm-msm, linux-kernel

Il 28/10/22 22:55, Nícolas F. R. A. Prado ha scritto:
> 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.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 8/8] arm64: dts: qcom: sc7180-trogdor: Remove VBAT supply from rt5682s
  2022-10-28 20:55 ` [PATCH 8/8] arm64: dts: qcom: sc7180-trogdor: Remove VBAT supply from rt5682s Nícolas F. R. A. Prado
@ 2022-10-31 12:56   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 42+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-10-31 12:56 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: kernel, Andy Gross, Konrad Dybcio, Krzysztof Kozlowski,
	Rob Herring, devicetree, linux-arm-msm, linux-kernel

Il 28/10/22 22:55, Nícolas F. R. A. Prado ha scritto:
> 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>
> ---
> 
>   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;

I really dislike seeing /delete-property/ but I don't know if changing all of the
non-kingoftown and non-wormdingler devicetrees is worth the noise...

Any strong opinions on that?

Regards,
Angelo


^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
  2022-10-28 20:55   ` Nícolas F. R. A. Prado
@ 2022-10-31 13:09     ` Mark Brown
  -1 siblings, 0 replies; 42+ messages in thread
From: Mark Brown @ 2022-10-31 13:09 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado
  Cc: Bjorn Andersson, kernel, AngeloGioacchino Del Regno,
	Jaroslav Kysela, Liam Girdwood, Oder Chiou, Takashi Iwai,
	alsa-devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

On Fri, Oct 28, 2022 at 04:55:38PM -0400, Nícolas F. R. A. Prado wrote:

> @@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = {
>  	"AVDD",
>  	"MICVDD",
>  	"VBAT",
> +	"dbvdd",
> +	"ldo1-in",

Why are we making these inconsistent in style with the other supplies?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
@ 2022-10-31 13:09     ` Mark Brown
  0 siblings, 0 replies; 42+ messages in thread
From: Mark Brown @ 2022-10-31 13:09 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado
  Cc: Oder Chiou, alsa-devel, linux-kernel, Bjorn Andersson,
	Takashi Iwai, Liam Girdwood, kernel, AngeloGioacchino Del Regno

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

On Fri, Oct 28, 2022 at 04:55:38PM -0400, Nícolas F. R. A. Prado wrote:

> @@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = {
>  	"AVDD",
>  	"MICVDD",
>  	"VBAT",
> +	"dbvdd",
> +	"ldo1-in",

Why are we making these inconsistent in style with the other supplies?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
  2022-10-31 13:09     ` Mark Brown
@ 2022-10-31 13:41       ` AngeloGioacchino Del Regno
  -1 siblings, 0 replies; 42+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-10-31 13:41 UTC (permalink / raw)
  To: Mark Brown, Nícolas F. R. A. Prado
  Cc: Bjorn Andersson, kernel, Jaroslav Kysela, Liam Girdwood,
	Oder Chiou, Takashi Iwai, alsa-devel, linux-kernel

Il 31/10/22 14:09, Mark Brown ha scritto:
> On Fri, Oct 28, 2022 at 04:55:38PM -0400, Nícolas F. R. A. Prado wrote:
> 
>> @@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = {
>>   	"AVDD",
>>   	"MICVDD",
>>   	"VBAT",
>> +	"dbvdd",
>> +	"ldo1-in",
> 
> Why are we making these inconsistent in style with the other supplies?

Right. That would be the same for rt5682s, and for the entire series. :\

Cheers,
angelo

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
@ 2022-10-31 13:41       ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 42+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-10-31 13:41 UTC (permalink / raw)
  To: Mark Brown, Nícolas F. R. A. Prado
  Cc: Oder Chiou, alsa-devel, linux-kernel, Bjorn Andersson,
	Takashi Iwai, Liam Girdwood, kernel

Il 31/10/22 14:09, Mark Brown ha scritto:
> On Fri, Oct 28, 2022 at 04:55:38PM -0400, Nícolas F. R. A. Prado wrote:
> 
>> @@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = {
>>   	"AVDD",
>>   	"MICVDD",
>>   	"VBAT",
>> +	"dbvdd",
>> +	"ldo1-in",
> 
> Why are we making these inconsistent in style with the other supplies?

Right. That would be the same for rt5682s, and for the entire series. :\

Cheers,
angelo

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
  2022-10-31 13:09     ` Mark Brown
@ 2022-10-31 16:31       ` Nícolas F. R. A. Prado
  -1 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-31 16:31 UTC (permalink / raw)
  To: Mark Brown
  Cc: Bjorn Andersson, kernel, AngeloGioacchino Del Regno,
	Jaroslav Kysela, Liam Girdwood, Oder Chiou, Takashi Iwai,
	alsa-devel, linux-kernel

On Mon, Oct 31, 2022 at 01:09:28PM +0000, Mark Brown wrote:
> On Fri, Oct 28, 2022 at 04:55:38PM -0400, Nícolas F. R. A. Prado wrote:
> 
> > @@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = {
> >  	"AVDD",
> >  	"MICVDD",
> >  	"VBAT",
> > +	"dbvdd",
> > +	"ldo1-in",
> 
> Why are we making these inconsistent in style with the other supplies?

In short because the other supplies already have users while these are new ones.
My understanding was that new supplies should have lowercase names, following DT
convention. But I do see the argument on having them all be consistent for a
single driver/binding. If there are no remarks from Rob or Krzysztof I can
change it in the next version.

Thanks,
Nícolas

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
@ 2022-10-31 16:31       ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-31 16:31 UTC (permalink / raw)
  To: Mark Brown
  Cc: Oder Chiou, alsa-devel, linux-kernel, Bjorn Andersson,
	Takashi Iwai, Liam Girdwood, kernel, AngeloGioacchino Del Regno

On Mon, Oct 31, 2022 at 01:09:28PM +0000, Mark Brown wrote:
> On Fri, Oct 28, 2022 at 04:55:38PM -0400, Nícolas F. R. A. Prado wrote:
> 
> > @@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = {
> >  	"AVDD",
> >  	"MICVDD",
> >  	"VBAT",
> > +	"dbvdd",
> > +	"ldo1-in",
> 
> Why are we making these inconsistent in style with the other supplies?

In short because the other supplies already have users while these are new ones.
My understanding was that new supplies should have lowercase names, following DT
convention. But I do see the argument on having them all be consistent for a
single driver/binding. If there are no remarks from Rob or Krzysztof I can
change it in the next version.

Thanks,
Nícolas

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
  2022-10-31 16:31       ` Nícolas F. R. A. Prado
@ 2022-10-31 19:09         ` Rob Herring
  -1 siblings, 0 replies; 42+ messages in thread
From: Rob Herring @ 2022-10-31 19:09 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado
  Cc: Mark Brown, Bjorn Andersson, kernel, AngeloGioacchino Del Regno,
	Jaroslav Kysela, Liam Girdwood, Oder Chiou, Takashi Iwai,
	alsa-devel, linux-kernel

On Mon, Oct 31, 2022 at 12:31:40PM -0400, Nícolas F. R. A. Prado wrote:
> On Mon, Oct 31, 2022 at 01:09:28PM +0000, Mark Brown wrote:
> > On Fri, Oct 28, 2022 at 04:55:38PM -0400, Nícolas F. R. A. Prado wrote:
> > 
> > > @@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = {
> > >  	"AVDD",
> > >  	"MICVDD",
> > >  	"VBAT",
> > > +	"dbvdd",
> > > +	"ldo1-in",
> > 
> > Why are we making these inconsistent in style with the other supplies?
> 
> In short because the other supplies already have users while these are new ones.
> My understanding was that new supplies should have lowercase names, following DT
> convention. But I do see the argument on having them all be consistent for a
> single driver/binding. If there are no remarks from Rob or Krzysztof I can
> change it in the next version.

We want lowercase and consistency... Between the 2, I pick consistency.

Rob

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
@ 2022-10-31 19:09         ` Rob Herring
  0 siblings, 0 replies; 42+ messages in thread
From: Rob Herring @ 2022-10-31 19:09 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado
  Cc: Oder Chiou, alsa-devel, linux-kernel, Bjorn Andersson,
	Takashi Iwai, Liam Girdwood, Mark Brown, kernel,
	AngeloGioacchino Del Regno

On Mon, Oct 31, 2022 at 12:31:40PM -0400, Nícolas F. R. A. Prado wrote:
> On Mon, Oct 31, 2022 at 01:09:28PM +0000, Mark Brown wrote:
> > On Fri, Oct 28, 2022 at 04:55:38PM -0400, Nícolas F. R. A. Prado wrote:
> > 
> > > @@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = {
> > >  	"AVDD",
> > >  	"MICVDD",
> > >  	"VBAT",
> > > +	"dbvdd",
> > > +	"ldo1-in",
> > 
> > Why are we making these inconsistent in style with the other supplies?
> 
> In short because the other supplies already have users while these are new ones.
> My understanding was that new supplies should have lowercase names, following DT
> convention. But I do see the argument on having them all be consistent for a
> single driver/binding. If there are no remarks from Rob or Krzysztof I can
> change it in the next version.

We want lowercase and consistency... Between the 2, I pick consistency.

Rob

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
  2022-10-31 19:09         ` Rob Herring
@ 2022-10-31 19:38           ` Nícolas F. R. A. Prado
  -1 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-31 19:38 UTC (permalink / raw)
  To: Rob Herring
  Cc: Mark Brown, Bjorn Andersson, kernel, AngeloGioacchino Del Regno,
	Jaroslav Kysela, Liam Girdwood, Oder Chiou, Takashi Iwai,
	alsa-devel, linux-kernel

On Mon, Oct 31, 2022 at 02:09:38PM -0500, Rob Herring wrote:
> On Mon, Oct 31, 2022 at 12:31:40PM -0400, Nícolas F. R. A. Prado wrote:
> > On Mon, Oct 31, 2022 at 01:09:28PM +0000, Mark Brown wrote:
> > > On Fri, Oct 28, 2022 at 04:55:38PM -0400, Nícolas F. R. A. Prado wrote:
> > > 
> > > > @@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = {
> > > >  	"AVDD",
> > > >  	"MICVDD",
> > > >  	"VBAT",
> > > > +	"dbvdd",
> > > > +	"ldo1-in",
> > > 
> > > Why are we making these inconsistent in style with the other supplies?
> > 
> > In short because the other supplies already have users while these are new ones.
> > My understanding was that new supplies should have lowercase names, following DT
> > convention. But I do see the argument on having them all be consistent for a
> > single driver/binding. If there are no remarks from Rob or Krzysztof I can
> > change it in the next version.
> 
> We want lowercase and consistency... Between the 2, I pick consistency.

We could have both if we converted the existing ones to lowercase first, but as
I mentioned in [1] this requires using devm_regulator_get_optional() before
falling back, which seemed like an abuse of that API and to unnecessarily
complicate the code.

So leaving the existing ones as they are and just keeping the consistency for
the new ones seems like the way forward.

[1] https://lore.kernel.org/all/20221028211224.iiphmwrpqqs27jr4@notapiano/

Thanks,
Nícolas

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
@ 2022-10-31 19:38           ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 42+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-10-31 19:38 UTC (permalink / raw)
  To: Rob Herring
  Cc: Oder Chiou, alsa-devel, linux-kernel, Bjorn Andersson,
	Takashi Iwai, Liam Girdwood, Mark Brown, kernel,
	AngeloGioacchino Del Regno

On Mon, Oct 31, 2022 at 02:09:38PM -0500, Rob Herring wrote:
> On Mon, Oct 31, 2022 at 12:31:40PM -0400, Nícolas F. R. A. Prado wrote:
> > On Mon, Oct 31, 2022 at 01:09:28PM +0000, Mark Brown wrote:
> > > On Fri, Oct 28, 2022 at 04:55:38PM -0400, Nícolas F. R. A. Prado wrote:
> > > 
> > > > @@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = {
> > > >  	"AVDD",
> > > >  	"MICVDD",
> > > >  	"VBAT",
> > > > +	"dbvdd",
> > > > +	"ldo1-in",
> > > 
> > > Why are we making these inconsistent in style with the other supplies?
> > 
> > In short because the other supplies already have users while these are new ones.
> > My understanding was that new supplies should have lowercase names, following DT
> > convention. But I do see the argument on having them all be consistent for a
> > single driver/binding. If there are no remarks from Rob or Krzysztof I can
> > change it in the next version.
> 
> We want lowercase and consistency... Between the 2, I pick consistency.

We could have both if we converted the existing ones to lowercase first, but as
I mentioned in [1] this requires using devm_regulator_get_optional() before
falling back, which seemed like an abuse of that API and to unnecessarily
complicate the code.

So leaving the existing ones as they are and just keeping the consistency for
the new ones seems like the way forward.

[1] https://lore.kernel.org/all/20221028211224.iiphmwrpqqs27jr4@notapiano/

Thanks,
Nícolas

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
  2022-10-31 19:38           ` Nícolas F. R. A. Prado
@ 2022-10-31 21:54             ` Mark Brown
  -1 siblings, 0 replies; 42+ messages in thread
From: Mark Brown @ 2022-10-31 21:54 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado
  Cc: Rob Herring, Bjorn Andersson, kernel, AngeloGioacchino Del Regno,
	Jaroslav Kysela, Liam Girdwood, Oder Chiou, Takashi Iwai,
	alsa-devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 735 bytes --]

On Mon, Oct 31, 2022 at 03:38:10PM -0400, Nícolas F. R. A. Prado wrote:

> We could have both if we converted the existing ones to lowercase first, but as
> I mentioned in [1] this requires using devm_regulator_get_optional() before
> falling back, which seemed like an abuse of that API and to unnecessarily
> complicate the code.

Yeah, it's definitely not what the ABI is for and probably more trouble
than it's worth.  We *could* probably write some helpers that handle
legacy supply names to the regulator core code if someone really wanted
to retire old names, that way the complication would be shared between
users which seems more managable but someone would still need the time
and enthusiasm to write the code.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies
@ 2022-10-31 21:54             ` Mark Brown
  0 siblings, 0 replies; 42+ messages in thread
From: Mark Brown @ 2022-10-31 21:54 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado
  Cc: Oder Chiou, Rob Herring, alsa-devel, linux-kernel,
	Bjorn Andersson, Takashi Iwai, Liam Girdwood, kernel,
	AngeloGioacchino Del Regno

[-- Attachment #1: Type: text/plain, Size: 735 bytes --]

On Mon, Oct 31, 2022 at 03:38:10PM -0400, Nícolas F. R. A. Prado wrote:

> We could have both if we converted the existing ones to lowercase first, but as
> I mentioned in [1] this requires using devm_regulator_get_optional() before
> falling back, which seemed like an abuse of that API and to unnecessarily
> complicate the code.

Yeah, it's definitely not what the ABI is for and probably more trouble
than it's worth.  We *could* probably write some helpers that handle
legacy supply names to the regulator core code if someone really wanted
to retire old names, that way the complication would be shared between
users which seems more managable but someone would still need the time
and enthusiasm to write the code.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 2/8] ASoC: dt-bindings: realtek,rt5682s: Add dbvdd and ldo1-in supplies
  2022-10-28 20:55   ` [PATCH 2/8] ASoC: dt-bindings: realtek, rt5682s: " Nícolas F. R. A. Prado
@ 2022-11-03 22:26     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 42+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-03 22:26 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: kernel, AngeloGioacchino Del Regno, Derek Fang,
	Krzysztof Kozlowski, Liam Girdwood, Rob Herring, alsa-devel,
	devicetree, linux-kernel

On 28/10/2022 16:55, 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.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 2/8] ASoC: dt-bindings: realtek,rt5682s: Add dbvdd and ldo1-in supplies
@ 2022-11-03 22:26     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 42+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-03 22:26 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: devicetree, alsa-devel, Liam Girdwood, linux-kernel, Rob Herring,
	Derek Fang, Krzysztof Kozlowski, kernel,
	AngeloGioacchino Del Regno

On 28/10/2022 16:55, 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.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 4/8] ASoC: dt-bindings: rt5682: Add dbvdd and ldo1-in supplies
  2022-10-28 20:55   ` Nícolas F. R. A. Prado
@ 2022-11-03 22:26     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 42+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-03 22:26 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: kernel, AngeloGioacchino Del Regno, Krzysztof Kozlowski,
	Liam Girdwood, Rob Herring, alsa-devel, devicetree, linux-kernel

On 28/10/2022 16:55, 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>
> ---

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [PATCH 4/8] ASoC: dt-bindings: rt5682: Add dbvdd and ldo1-in supplies
@ 2022-11-03 22:26     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 42+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-03 22:26 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown, Bjorn Andersson
  Cc: devicetree, alsa-devel, Liam Girdwood, linux-kernel, Rob Herring,
	Krzysztof Kozlowski, kernel, AngeloGioacchino Del Regno

On 28/10/2022 16:55, 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>
> ---

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2022-11-03 22:27 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28 20:55 [PATCH 0/8] Adjust usage of rt5682(s) power supply properties Nícolas F. R. A. Prado
2022-10-28 20:55 ` Nícolas F. R. A. Prado
2022-10-28 20:55 ` [PATCH 1/8] ASoC: dt-bindings: realtek,rt5682s: Add AVDD and MICVDD supplies Nícolas F. R. A. Prado
2022-10-28 20:55   ` [PATCH 1/8] ASoC: dt-bindings: realtek, rt5682s: " Nícolas F. R. A. Prado
2022-10-31 12:53   ` [PATCH 1/8] ASoC: dt-bindings: realtek,rt5682s: " AngeloGioacchino Del Regno
2022-10-31 12:53     ` AngeloGioacchino Del Regno
2022-10-28 20:55 ` [PATCH 2/8] ASoC: dt-bindings: realtek,rt5682s: Add dbvdd and ldo1-in supplies Nícolas F. R. A. Prado
2022-10-28 20:55   ` [PATCH 2/8] ASoC: dt-bindings: realtek, rt5682s: " Nícolas F. R. A. Prado
2022-10-31 12:53   ` [PATCH 2/8] ASoC: dt-bindings: realtek,rt5682s: " AngeloGioacchino Del Regno
2022-10-31 12:53     ` AngeloGioacchino Del Regno
2022-11-03 22:26   ` Krzysztof Kozlowski
2022-11-03 22:26     ` Krzysztof Kozlowski
2022-10-28 20:55 ` [PATCH 3/8] ASoC: dt-bindings: rt5682: Add AVDD, MICVDD and VBAT supplies Nícolas F. R. A. Prado
2022-10-28 20:55   ` Nícolas F. R. A. Prado
2022-10-28 20:55 ` [PATCH 4/8] ASoC: dt-bindings: rt5682: Add dbvdd and ldo1-in supplies Nícolas F. R. A. Prado
2022-10-28 20:55   ` Nícolas F. R. A. Prado
2022-11-03 22:26   ` Krzysztof Kozlowski
2022-11-03 22:26     ` Krzysztof Kozlowski
2022-10-28 20:55 ` [PATCH 5/8] ASoC: rt5682s: Support " Nícolas F. R. A. Prado
2022-10-28 20:55   ` Nícolas F. R. A. Prado
2022-10-31 12:53   ` AngeloGioacchino Del Regno
2022-10-31 12:53     ` AngeloGioacchino Del Regno
2022-10-28 20:55 ` [PATCH 6/8] ASoC: rt5682: " Nícolas F. R. A. Prado
2022-10-28 20:55   ` Nícolas F. R. A. Prado
2022-10-31 12:53   ` AngeloGioacchino Del Regno
2022-10-31 12:53     ` AngeloGioacchino Del Regno
2022-10-31 13:09   ` Mark Brown
2022-10-31 13:09     ` Mark Brown
2022-10-31 13:41     ` AngeloGioacchino Del Regno
2022-10-31 13:41       ` AngeloGioacchino Del Regno
2022-10-31 16:31     ` Nícolas F. R. A. Prado
2022-10-31 16:31       ` Nícolas F. R. A. Prado
2022-10-31 19:09       ` Rob Herring
2022-10-31 19:09         ` Rob Herring
2022-10-31 19:38         ` Nícolas F. R. A. Prado
2022-10-31 19:38           ` Nícolas F. R. A. Prado
2022-10-31 21:54           ` Mark Brown
2022-10-31 21:54             ` Mark Brown
2022-10-28 20:55 ` [PATCH 7/8] arm64: dts: qcom: sc7180-trogdor: Add missing supplies for rt5682 Nícolas F. R. A. Prado
2022-10-31 12:54   ` AngeloGioacchino Del Regno
2022-10-28 20:55 ` [PATCH 8/8] arm64: dts: qcom: sc7180-trogdor: Remove VBAT supply from rt5682s Nícolas F. R. A. Prado
2022-10-31 12:56   ` AngeloGioacchino Del Regno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.