Skip to contentSkip to conversation

ASoC: cs4271: add regulator consumer support

PATCH RESEND In review [email protected] 2 participants 2 messages Feb 16, 2016 – Feb 26, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ASoC: cs4271: add regulator consumer support

From: Pascal Huerst <[email protected]>

The cs4271 has three power domains: vd, vl and va. Enable them all, as long as the codec is in use.

While at it, factored out the reset code into its own function.

---
 Documentation/devicetree/bindings/sound/cs4271.txt |  7 +++
 sound/soc/codecs/cs4271.c                          | 69 +++++++++++++++++++---
 2 files changed, 68 insertions(+), 8 deletions(-)
Documentation/devicetree/bindings/sound/cs4271.txt +7 -0
index e2cd1d7..6e699ce 100644
@@ -33,12 +33,19 @@ Optional properties:
 	Note that this is not needed in case the clocks are stable
 	throughout the entire runtime of the codec.
 
+ - vd-supply:	Digital power
+ - vl-supply:	Logic power
+ - va-supply:	Analog Power
+
 Examples:
 
 	codec_i2c: cs4271@10 {
 		compatible = "cirrus,cs4271";
 		reg = <0x10>;
 		reset-gpio = <&gpio 23 0>;
+		vd-supply = <&vdd_3v3_reg>;
+		vl-supply = <&vdd_3v3_reg>;
+		va-supply = <&vdd_3v3_reg>;
 	};
 
 	codec_spi: cs4271@0 {
sound/soc/codecs/cs4271.c +61 -8

134 lines not on this page · raw message

Signature · 1 line
2.4.3
maintainer
#1 lore raw
Quoted 1 line · On Tue, Feb 16, 2016 at 04:19:06PM +0100, [email protected] wrote:

While at it, factored out the reset code into its own function.

Please split separate changes into separate patches.