From patchwork Tue Jul 29 20:02:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Austin, Brian" X-Patchwork-Id: 4642251 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 00C269F2B8 for ; Tue, 29 Jul 2014 20:00:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 07AC12017D for ; Tue, 29 Jul 2014 20:00:29 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id BAA7A2012D for ; Tue, 29 Jul 2014 20:00:27 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id CDEFD2654D0; Tue, 29 Jul 2014 22:00:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 83F0226547C; Tue, 29 Jul 2014 21:59:37 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 788DA26546C; Tue, 29 Jul 2014 21:59:34 +0200 (CEST) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1lp0142.outbound.protection.outlook.com [207.46.163.142]) by alsa0.perex.cz (Postfix) with ESMTP id E9ED7265328 for ; Tue, 29 Jul 2014 21:59:27 +0200 (CEST) Received: from BL2FFO11FD026.protection.gbl (10.173.160.33) by BL2FFO11HUB028.protection.gbl (10.173.161.52) with Microsoft SMTP Server (TLS) id 15.0.980.11; Tue, 29 Jul 2014 19:59:25 +0000 Received: from mail2.cir (141.131.128.20) by BL2FFO11FD026.mail.protection.outlook.com (10.173.161.105) with Microsoft SMTP Server (TLS) id 15.0.990.10 via Frontend Transport; Tue, 29 Jul 2014 19:59:25 +0000 Received: from ex4.ad.cirrus.com ([141.131.36.35]) by mail2.cir (8.13.8/8.13.8) with ESMTP id s6TJxIVg028109; Tue, 29 Jul 2014 14:59:18 -0500 Received: from heelrod.ad.cirrus.com (141.131.108.100) by EX4.ad.cirrus.com (141.131.36.39) with Microsoft SMTP Server id 14.3.174.1; Tue, 29 Jul 2014 14:59:19 -0500 Received: from heelrod.ad.cirrus.com (localhost [127.0.0.1]) by heelrod.ad.cirrus.com (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id s6TK30jr010547; Tue, 29 Jul 2014 15:03:00 -0500 Received: (from heelrod@localhost) by heelrod.ad.cirrus.com (8.14.4/8.14.4/Submit) id s6TK30WR010546; Tue, 29 Jul 2014 15:03:00 -0500 From: Brian Austin To: Date: Tue, 29 Jul 2014 15:02:43 -0500 Message-ID: <1406664163-10506-2-git-send-email-brian.austin@cirrus.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1406664163-10506-1-git-send-email-brian.austin@cirrus.com> References: <1406664163-10506-1-git-send-email-brian.austin@cirrus.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:141.131.128.20; CTRY:US; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(438002)(189002)(199002)(80022001)(77096002)(83322001)(50986999)(104166001)(81342001)(46102001)(20776003)(21056001)(87936001)(19580405001)(74662001)(31966008)(229853001)(76176999)(19580395003)(74502001)(110136001)(62966002)(44976005)(85306003)(87286001)(93916002)(33646002)(106466001)(102836001)(88136002)(92726001)(79102001)(107046002)(76482001)(40036004)(85852003)(92566001)(42186005)(4396001)(77982001)(83072002)(64706001)(6806004)(89996001)(50226001)(47776003)(95666004)(77156001)(99396002)(48376002)(50466002)(36756003)(81542001)(2351001)(87636001); DIR:OUT; SFP:; SCL:1; SRVR:BL2FFO11HUB028; H:mail2.cir; FPR:; MLV:sfv; PTR:mail2.cirrus.com; MX:1; A:1; LANG:en; X-OriginatorOrg: cirrus4.onmicrosoft.com X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 0287BBA78D Received-SPF: Pass (: domain of cirrus.com designates 141.131.128.20 as permitted sender) receiver=; client-ip=141.131.128.20; helo=mail2.cir; Authentication-Results: spf=pass (sender IP is 141.131.128.20) smtp.mailfrom=heelrod@cirrus.com; Cc: devicetree@vger.kernel.org, Brian Austin , lgirdwood@gmail.com, robh+dt@kernel.org, broonie@kernel.org, galak@codeaurora.org Subject: [alsa-devel] [PATCH 2/2] Documentation: dt: bindings: sound: Add bindings file for CS35L32 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the devicetree bindings file for the Cirrus Logic CS35L32 Boosted Amplifier Signed-off-by: Brian Austin --- .../devicetree/bindings/sound/cs35l32.txt | 69 ++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/cs35l32.txt diff --git a/Documentation/devicetree/bindings/sound/cs35l32.txt b/Documentation/devicetree/bindings/sound/cs35l32.txt new file mode 100644 index 0000000..d3a8a51 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/cs35l32.txt @@ -0,0 +1,69 @@ +CS35L32 audio CODEC + +Required properties: + + - compatible : "cirrus,cs35l32" + + - reg : the I2C address of the device for I2C. Address is determined by the level + of the AD0 pin. Level 0 is 0x40 while Level 1 is 0x41. + + - VA-supply : power supply for the device, + as covered in Documentation/devicetree/bindings/regulator/regulator.txt. + +Optional properties: + + - reset-gpios : a GPIO spec for the reset pin. If specified, it will be + deasserted before communication to the codec starts. + + - cirrus,boost-manager : Boost voltage control. + 0 = Automatically managed. Boost-converter output voltage is the higher + of the two: Class G or adaptive LED voltage. + 1 = Automatically managed irrespective of audio, adapting for low-power + dissipation when LEDs are ON, and operating in Fixed-Boost Bypass Mode + if LEDs are OFF (VBST = VP). + 2 = (Default) Boost voltage fixed in Bypass Mode (VBST = VP). + 3 = Boost voltage fixed at 5 V. + + - cirrus,sdout-datacfg : Data configuration for dual CS35L32 applications only. + Determines the data packed in a two-CS35L32 configuration. + 0 = Left/right channels VMON[11:0], IMON[11:0], VPMON[7:0]. + 1 = Left/right channels VMON[11:0], IMON[11:0], STATUS. + 2 = (Default) left/right channels VMON[15:0], IMON [15:0]. + 3 = Left/right channels VPMON[7:0], STATUS. + + - cirrus,sdout-share : SDOUT sharing. Determines whether one or two CS35L32 + devices are on board sharing SDOUT. + 0 = (Default) One IC. + 1 = Two IC's. + + - cirrus,gain-manager : Audio-gain management when LEDs are active. + 0 = (Default) Automatically reduces audio volume once by 3 dB, only if needed + to avoid thermal shutdown or current limiting the boost converter. + If the condition persists, the CS35L32 examine s ILED_MNG and responds accordingly. + Audio recovers to original volume automatically at the end of the LED event. + 1 = User controls volume (nonautomatic). + + - cirrus,battery-recovery : Low battery nominal recovery threshold, rising VP. + 0 = 3.1V + 1 = 3.2V + 2 = 3.3V (Default) + 3 = 3.4V + + - cirrus,battery-threshold : Low battery nominal threshold, falling VP. + 0 = 3.1V + 1 = 3.2V + 2 = 3.3V + 3 = 3.4V (Default) + 4 = 3.5V + 5 = 3.6V + +Example: + +codec: codec@40 { + compatible = "cirrus,cs35l32"; + reg = <0x40>; + reset-gpios = <&gpio 10 0>; + cirrus,boost-manager = <0x03>; + cirrus,sdout-datacfg = <0x02>; + VA-supply = <®_audio>; +};