From patchwork Mon May 5 20:09:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Austin, Brian" X-Patchwork-Id: 345933 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 85950140E3C for ; Tue, 6 May 2014 07:41:48 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756628AbaEEVlp (ORCPT ); Mon, 5 May 2014 17:41:45 -0400 Received: from mail-bn1on0069.outbound.protection.outlook.com ([157.56.110.69]:2324 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756579AbaEEVlp (ORCPT ); Mon, 5 May 2014 17:41:45 -0400 Received: from BN1BFFO11FD021.protection.gbl (10.58.144.32) by BN1BFFO11HUB022.protection.gbl (10.58.144.169) with Microsoft SMTP Server (TLS) id 15.0.929.8; Mon, 5 May 2014 20:08:25 +0000 Received: from mail2.cirrus.com (141.131.128.20) by BN1BFFO11FD021.mail.protection.outlook.com (10.58.144.84) with Microsoft SMTP Server (TLS) id 15.0.929.8 via Frontend Transport; Mon, 5 May 2014 20:08:25 +0000 Received: from ex4.ad.cirrus.com ([141.131.36.35]) by mail2.cirrus.com (8.13.8/8.12.11) with ESMTP id s45K61Wh006296; Mon, 5 May 2014 15:06:03 -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, 5 May 2014 15:08:23 -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 s45K9RD1016686; Mon, 5 May 2014 15:09:27 -0500 Received: (from heelrod@localhost) by heelrod.ad.cirrus.com (8.14.4/8.14.4/Submit) id s45K9ROO016685; Mon, 5 May 2014 15:09:27 -0500 From: Brian Austin To: , CC: , , , , , , , , Brian Austin Subject: [PATCH 2/2] Documentation: dt: bindings: sound: Add bindings for CS42L56 CODEC Date: Mon, 5 May 2014 15:09:09 -0500 Message-ID: <1399320549-16645-2-git-send-email-brian.austin@cirrus.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1399320549-16645-1-git-send-email-brian.austin@cirrus.com> References: <1399320549-16645-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:(10009001)(6009001)(199002)(189002)(50986999)(92726001)(50226001)(92566001)(74662001)(87936001)(79102001)(99396002)(80022001)(74502001)(46102001)(551984002)(20776003)(47776003)(88136002)(76482001)(62966002)(19580405001)(87286001)(85852003)(77982001)(6806004)(89996001)(81542001)(36756003)(50466002)(33646001)(19580395003)(76176999)(83072002)(31966008)(4396001)(44976005)(42186004)(575784001)(83322001)(93916002)(48376002)(81342001)(77156001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1BFFO11HUB022; H:mail2.cirrus.com; FPR:8E897A5C.22BC1717.F9E7A833.8EE53231.20369; MLV:sfv; PTR:mail2.cirrus.com; A:1; MX:1; LANG:en; X-OriginatorOrg: cirrus4.onmicrosoft.com X-Forefront-PRVS: 0202D21D2F Received-SPF: SoftFail (: domain of transitioning cirrus.com discourages use of 141.131.128.20 as permitted sender) Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds binding documentation for the Cirrus Logic CS42L56 Low Power Stereo I2C CODEC Signed-off-by: Brian Austin --- .../devicetree/bindings/sound/cs42l56.txt | 63 ++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/cs42l56.txt diff --git a/Documentation/devicetree/bindings/sound/cs42l56.txt b/Documentation/devicetree/bindings/sound/cs42l56.txt new file mode 100644 index 0000000..9ae074f --- /dev/null +++ b/Documentation/devicetree/bindings/sound/cs42l56.txt @@ -0,0 +1,63 @@ +CS42L52 audio CODEC + +Required properties: + + - compatible : "cirrus,cs42l56" + + - reg : the I2C address of the device for I2C + + - VA-supply, VCP-supply, VLDO-supply : power supplies for the device, + as covered in Documentation/devicetree/bindings/regulator/regulator.txt. + +Optional properties: + + - cirrus,gpio-nreset : GPIO controller's phandle and the number + of the GPIO used to reset the codec. + + - cirrus,chgfreq-divisor : Values used to set the Charge Pump Frequency. + Allowable values of 0x00 through 0x0F. These are raw values written to the + register, not the actual frequency. The frequency is determined by the following. + Frequency = MCLK / 4 * (N+2) + N = chgfreq_val + MCLK = Where MCLK is the frequency of the mclk signal after the MCLKDIV2 circuit. + + - cirrus,ain1a-ref-cfg, ain1b-ref-cfg : boolean, If present, AIN1A or AIN1B are configured + as a pseudo-differential input referenced to AIN1REF/AIN3A. + + - cirrus,ain2a-ref-cfg, ain2b-ref-cfg : boolean, If present, AIN2A or AIN2B are configured + as a pseudo-differential input referenced to AIN2REF/AIN3B. + + - cirrus,micbias-lvl: Set the output voltage level on the MICBIAS Pin. + 0 = 0.5 x VA + 1 = 0.6 x VA + 2 = 0.7 x VA + 3 = 0.8 x VA + 4 = 0.83 x VA + 5 = 0.91 x VA + + - cirrus,adaptive-pwr-cfg : Configures how the power to the Headphone and Lineout + Amplifiers adapt to the output signal levels. + 0 = Adapt to Volume Mode. Voltage level determined by the sum of the relevant volume settings. + 1 = Fixed - Headphone and Line Amp supply = + or - VCP/2. + 2 = Fixed - Headphone and Line Amp supply = + or - VCP. + 3 = Adapted to Signal; Voltage level is dynamically determined by the output signal. + + - cirrus,hpf-left-freq, hpf-right-freq : Sets the corner frequency (-3dB point) for the internal High-Pass + Filter. + 0 = 1.8Hz + 1 = 119Hz + 2 = 236Hz + 3 = 464Hz + + +Example: + +codec: codec@4b { + compatible = "cirrus,cs42l56"; + reg = <0x4b>; + gpio-reset = <&gpio 10 0>; + cirrus,chgfreq-divisor = <0x05>; + cirrus.ain1_ref_cfg; + cirrus,micbias-lvl = <5>; + VA-supply = <®_audio>; +};