diff mbox

ASoC: sgtl500.txt: Document the required supplies

Message ID 1413295862-2613-1-git-send-email-fabio.estevam@freescale.com (mailing list archive)
State Accepted
Commit c171b120c327e41278fc55d0b3d44be109dbf8c3
Headers show

Commit Message

Fabio Estevam Oct. 14, 2014, 2:11 p.m. UTC
sgtl5000 has two required supplies: VDDA and VDDIO and one optional supply:
VDDD, so document this properly.

Not passing VDDA and VDDIO prevents the driver to probe successfully.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 Documentation/devicetree/bindings/sound/sgtl5000.txt | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Mark Brown Oct. 15, 2014, 9:25 a.m. UTC | #1
On Tue, Oct 14, 2014 at 11:11:02AM -0300, Fabio Estevam wrote:
> sgtl5000 has two required supplies: VDDA and VDDIO and one optional supply:
> VDDD, so document this properly.
> 
> Not passing VDDA and VDDIO prevents the driver to probe successfully.

Applied, thanks.  Note that with current kernels the regulator API
should assume that most regulators are provided even if not explicitly
listed in DT.
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/sound/sgtl5000.txt b/Documentation/devicetree/bindings/sound/sgtl5000.txt
index 955df60..d556dcb 100644
--- a/Documentation/devicetree/bindings/sound/sgtl5000.txt
+++ b/Documentation/devicetree/bindings/sound/sgtl5000.txt
@@ -7,10 +7,20 @@  Required properties:
 
 - clocks : the clock provider of SYS_MCLK
 
+- VDDA-supply : the regulator provider of VDDA
+
+- VDDIO-supply: the regulator provider of VDDIO
+
+Optional properties:
+
+- VDDD-supply : the regulator provider of VDDD
+
 Example:
 
 codec: sgtl5000@0a {
 	compatible = "fsl,sgtl5000";
 	reg = <0x0a>;
 	clocks = <&clks 150>;
+	VDDA-supply = <&reg_3p3v>;
+	VDDIO-supply = <&reg_3p3v>;
 };