Skip to contentSkip to conversation

ASoC: cs4271: add regulator consumer support

PATCH Superseded [email protected] 1 participant 1 message Feb 10, 2016

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

PATCH 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