From patchwork Wed Nov 13 15:44:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Austin, Brian" X-Patchwork-Id: 290975 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 B4D732C009F for ; Thu, 14 Nov 2013 02:41:50 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757002Ab3KMPlt (ORCPT ); Wed, 13 Nov 2013 10:41:49 -0500 Received: from va3ehsobe006.messaging.microsoft.com ([216.32.180.16]:31112 "EHLO va3outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756218Ab3KMPls (ORCPT ); Wed, 13 Nov 2013 10:41:48 -0500 Received: from mail12-va3-R.bigfish.com (10.7.14.229) by VA3EHSOBE005.bigfish.com (10.7.40.25) with Microsoft SMTP Server id 14.1.225.22; Wed, 13 Nov 2013 15:41:47 +0000 Received: from mail12-va3 (localhost [127.0.0.1]) by mail12-va3-R.bigfish.com (Postfix) with ESMTP id 7FB6D3201E8; Wed, 13 Nov 2013 15:41:47 +0000 (UTC) X-Forefront-Antispam-Report: CIP:141.131.128.20; KIP:(null); UIP:(null); IPV:NLI; H:mail2.cirrus.com; RD:mail2.cirrus.com; EFVD:NLI X-SpamScore: 11 X-BigFish: VPS11(zzzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h1d1ah1d2ah1fc6hzz1de098h8275bh1de097h11f642sz2dh2a8h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1b0ah2222h224fh1c0dh1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1e23h1fe8h1ff5h2218h2216h1155h) Received: from mail12-va3 (localhost.localdomain [127.0.0.1]) by mail12-va3 (MessageSwitch) id 1384357304608369_29381; Wed, 13 Nov 2013 15:41:44 +0000 (UTC) Received: from VA3EHSMHS023.bigfish.com (unknown [10.7.14.237]) by mail12-va3.bigfish.com (Postfix) with ESMTP id 682D88004F; Wed, 13 Nov 2013 15:41:44 +0000 (UTC) Received: from mail2.cirrus.com (141.131.128.20) by VA3EHSMHS023.bigfish.com (10.7.99.33) with Microsoft SMTP Server (TLS) id 14.16.227.3; Wed, 13 Nov 2013 15:41:44 +0000 Received: from ex3.ad.cirrus.com ([141.131.36.34]) by mail2.cirrus.com (8.13.8/8.12.11) with ESMTP id rADFkLma018528; Wed, 13 Nov 2013 09:46:23 -0600 Received: from cirrus.com (141.131.108.124) by EX3.ad.cirrus.com (141.131.36.39) with Microsoft SMTP Server id 14.3.158.1; Wed, 13 Nov 2013 09:41:41 -0600 From: Brian Austin To: CC: , , , , , Brian Austin Subject: [PATCH v2 2/2] dt: binding: sound cs42l52 driver Date: Wed, 13 Nov 2013 09:44:34 -0600 Message-ID: <1384357474-28653-2-git-send-email-brian.austin@cirrus.com> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1384357474-28653-1-git-send-email-brian.austin@cirrus.com> References: <1384357474-28653-1-git-send-email-brian.austin@cirrus.com> Organization: Cirrus Logic MIME-Version: 1.0 X-OriginatorOrg: cirrus.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add Device Tree Binding for the CS42L52 Codec v2 Adds clearer explaination of mic configs and select. Renames bindings to '-' instead of '_'. Definition of GPIO for reset pin. Signed-off-by: Brian Austin --- .../devicetree/bindings/sound/cs42l52.txt | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/cs42l52.txt diff --git a/Documentation/devicetree/bindings/sound/cs42l52.txt b/Documentation/devicetree/bindings/sound/cs42l52.txt new file mode 100644 index 0000000..bd91ecf --- /dev/null +++ b/Documentation/devicetree/bindings/sound/cs42l52.txt @@ -0,0 +1,48 @@ +CS42L52 audio CODEC + +Required properties: + + - compatible : "cirrus,cs42l52" + + - reg : the I2C address of the device for I2C + +Optional properties: + + - reset-gpio : GPIO controller's phandle and the number + of the GPIO used to reset the codec. + - chgfreq : Charge Pump Frequency values. Allowable values of + 0x00 through 0x0F. + Frequency = (64xFs)/(N+2) + - mica-cfg : MIC A single-ended or differential select. + 0x00 = Single-Ended + 0x01 = Differential + - micb-cfg : MIC B single-ended or differential select. + 0x00 = Single-Ended + 0x01 = Differential + - mica-sel : MIC A single ended input select. For Single-Ended + configuration, select which MIC to use. + 0x00 = MIC1 + 0x01 = MIC2 + - micb-sel : MIC B single ended input select. For Single-Ended + configuration, select which MIC to use. + 0x00 = MIC1 + 0x01 = MIC2 + - micbias-lvl: Set the output voltage level on the MICBIAS Pin + 0x00 = 0.5 x VA + 0x01 = 0.6 x VA + 0x02 = 0.7 x VA + 0x03 = 0.8 x VA + 0x04 = 0.83 x VA + 0x05 = 0.91 x VA + +Example: + +codec: cs42l52@4a { + compatible = "cirrus,cs42l52"; + reg = <0x4a>; + reset-gpio = <&gpio 10 0>; + chgfreq = <0x05>; + mica-cfg = <0x00>; + mica-sel = <0x01>; + micbias-lvl = <0x05>; +};