From patchwork Fri Aug 1 14:45:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Austin, Brian" X-Patchwork-Id: 375779 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id AC6F91400E9 for ; Sat, 2 Aug 2014 00:42:07 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751694AbaHAOmG (ORCPT ); Fri, 1 Aug 2014 10:42:06 -0400 Received: from mail-bn1lp0142.outbound.protection.outlook.com ([207.46.163.142]:10142 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751334AbaHAOmF (ORCPT ); Fri, 1 Aug 2014 10:42:05 -0400 Received: from BN1BFFO11FD016.protection.gbl (10.58.144.34) by BN1BFFO11HUB015.protection.gbl (10.58.144.162) with Microsoft SMTP Server (TLS) id 15.0.980.11; Fri, 1 Aug 2014 14:41:49 +0000 Received: from mail2.cir (141.131.128.20) by BN1BFFO11FD016.mail.protection.outlook.com (10.58.144.79) with Microsoft SMTP Server (TLS) id 15.0.990.10 via Frontend Transport; Fri, 1 Aug 2014 14:41:49 +0000 Received: from ex4.ad.cirrus.com ([141.131.36.35]) by mail2.cir (8.13.8/8.13.8) with ESMTP id s71EfjjB030169; Fri, 1 Aug 2014 09:41:45 -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; Fri, 1 Aug 2014 09:41:47 -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 s71EjYw0013901; Fri, 1 Aug 2014 09:45:34 -0500 Received: (from heelrod@localhost) by heelrod.ad.cirrus.com (8.14.4/8.14.4/Submit) id s71EjXLg013900; Fri, 1 Aug 2014 09:45:33 -0500 From: Brian Austin To: CC: <=broonie@kernel.org>, , , , , "Brian Austin" Subject: [PATCH v2 2/2] Documentation: dt: bindings: sound: Add bindings file for CS35L32 Date: Fri, 1 Aug 2014 09:45:31 -0500 Message-ID: <1406904331-13860-2-git-send-email-brian.austin@cirrus.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1406904331-13860-1-git-send-email-brian.austin@cirrus.com> References: <1406904331-13860-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:(979002)(6009001)(438002)(189002)(199002)(85852003)(95666004)(74662001)(104166001)(6806004)(81342001)(4396001)(106466001)(77982001)(83322001)(102836001)(64706001)(107046002)(87286001)(83072002)(47776003)(19580405001)(76176999)(110136001)(99396002)(44976005)(40036004)(77096002)(81542001)(21056001)(80022001)(48376002)(229853001)(33646002)(36756003)(20776003)(89996001)(88136002)(76482001)(77156001)(50226001)(2351001)(50986999)(31966008)(62966002)(50466002)(79102001)(46102001)(74502001)(87936001)(42186005)(93916002)(19580395003)(92566001)(85306004)(92726001)(87636001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:; SCL:1; SRVR:BN1BFFO11HUB015; H:mail2.cir; FPR:; MLV:ovrnspm; 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: 029097202E 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; Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This 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 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>; +};