From patchwork Mon Aug 4 20:11:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Austin, Brian" X-Patchwork-Id: 4673431 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 7CB379F375 for ; Mon, 4 Aug 2014 20:08:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 837672013D for ; Mon, 4 Aug 2014 20:08:11 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 818DA2014A for ; Mon, 4 Aug 2014 20:08:09 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 598AC2654B2; Mon, 4 Aug 2014 22:08:06 +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,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id CC3FD2650C3; Mon, 4 Aug 2014 22:07:57 +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 80F0B265139; Mon, 4 Aug 2014 22:07:56 +0200 (CEST) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2lp0211.outbound.protection.outlook.com [207.46.163.211]) by alsa0.perex.cz (Postfix) with ESMTP id 49C0E26501D for ; Mon, 4 Aug 2014 22:07:48 +0200 (CEST) Received: from BL2FFO11FD040.protection.gbl (10.173.160.32) by BL2FFO11HUB059.protection.gbl (10.173.161.159) with Microsoft SMTP Server (TLS) id 15.0.990.10; Mon, 4 Aug 2014 20:07:39 +0000 Received: from mail1.cirrus.com (141.131.3.20) by BL2FFO11FD040.mail.protection.outlook.com (10.173.161.136) with Microsoft SMTP Server (TLS) id 15.0.990.10 via Frontend Transport; Mon, 4 Aug 2014 20:07:39 +0000 Received: from ex4.ad.cirrus.com ([141.131.36.35]) by mail1.cirrus.com (8.13.8/8.12.11) with ESMTP id s74K8d9A021491; Mon, 4 Aug 2014 15:08:39 -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; Mon, 4 Aug 2014 15:07:38 -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 s74KBURe023847; Mon, 4 Aug 2014 15:11:30 -0500 Received: (from heelrod@localhost) by heelrod.ad.cirrus.com (8.14.4/8.14.4/Submit) id s74KBUkR023846; Mon, 4 Aug 2014 15:11:30 -0500 From: Brian Austin To: Date: Mon, 4 Aug 2014 15:11:17 -0500 Message-ID: <1407183077-23807-2-git-send-email-brian.austin@cirrus.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1407183077-23807-1-git-send-email-brian.austin@cirrus.com> References: <1407183077-23807-1-git-send-email-brian.austin@cirrus.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:141.131.3.20; CTRY:US; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(438002)(189002)(199002)(64706001)(87286001)(47776003)(88136002)(77982001)(85852003)(76176999)(92566001)(36756003)(50986999)(74662001)(76482001)(104166001)(79102001)(20776003)(102836001)(99396002)(74502001)(83072002)(89996001)(21056001)(31966008)(93916002)(77156001)(87936001)(6806004)(92726001)(19580395003)(50226001)(95666004)(50466002)(81542001)(19580405001)(81342001)(83322001)(42186005)(77096002)(229853001)(33646002)(2351001)(110136001)(106466001)(4396001)(62966002)(46102001)(80022001)(85306004)(48376002)(107046002)(87636001); DIR:OUT; SFP:; SCL:1; SRVR:BL2FFO11HUB059; H:mail1.cirrus.com; FPR:; MLV:sfv; PTR:mail1.cirrus.com; MX:1; A:1; LANG:en; X-OriginatorOrg: cirrus4.onmicrosoft.com X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 0293D40691 Received-SPF: Pass (: domain of cirrus.com designates 141.131.3.20 as permitted sender) receiver=; client-ip=141.131.3.20; helo=mail1.cirrus.com; Authentication-Results: spf=pass (sender IP is 141.131.3.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 v3 2/2] Documentation: dt: bindings: sound: Add bindings 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 The patch adds device tree bindings file for the Cirrus Logic CS35L32 Changes for v2: - Remove Gain Manager from DT and move to driver kcontrol - Add VP-Supply for regulator Changes for v3: - Add regulator disable for error return in i2c_probe Signed-off-by: Brian Austin --- .../devicetree/bindings/sound/cs35l32.txt | 62 ++++++++++++++++++++ 1 file changed, 62 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..1417d3f --- /dev/null +++ b/Documentation/devicetree/bindings/sound/cs35l32.txt @@ -0,0 +1,62 @@ +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, VP-supply : power supplies 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,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>; +};