ASoC: cs4271: add regulator consumer support
Subsystems (4)
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.
Signed-off-by Pascal Huerst <[email protected]>
--- 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
@@ -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
Mark Brown
maintainerQuoted 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.