From patchwork Thu Nov 7 20:22:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Austin, Brian" X-Patchwork-Id: 289477 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 E8AB22C00AC for ; Fri, 8 Nov 2013 07:19:53 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752719Ab3KGUTx (ORCPT ); Thu, 7 Nov 2013 15:19:53 -0500 Received: from mail-db8lp0188.outbound.messaging.microsoft.com ([213.199.154.188]:31413 "EHLO db8outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751743Ab3KGUTw (ORCPT ); Thu, 7 Nov 2013 15:19:52 -0500 Received: from mail45-db8-R.bigfish.com (10.174.8.244) by DB8EHSOBE037.bigfish.com (10.174.4.100) with Microsoft SMTP Server id 14.1.225.22; Thu, 7 Nov 2013 20:19:51 +0000 Received: from mail45-db8 (localhost [127.0.0.1]) by mail45-db8-R.bigfish.com (Postfix) with ESMTP id 0ACF4DC02C4; Thu, 7 Nov 2013 20:19:51 +0000 (UTC) X-Forefront-Antispam-Report: CIP:141.131.3.20; KIP:(null); UIP:(null); IPV:NLI; H:mail1.cirrus.com; RD:mail1.cirrus.com; EFVD:NLI X-SpamScore: 0 X-BigFish: VPS0(zzzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h1d1ah1d2ah1fc6hzz1de098h8275bh1de097hz2dh2a8h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1b0ah2222h224fh1c0dh1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1e23h1fe8h1ff5h2218h2216h1155h) Received: from mail45-db8 (localhost.localdomain [127.0.0.1]) by mail45-db8 (MessageSwitch) id 1383855589301872_30991; Thu, 7 Nov 2013 20:19:49 +0000 (UTC) Received: from DB8EHSMHS028.bigfish.com (unknown [10.174.8.248]) by mail45-db8.bigfish.com (Postfix) with ESMTP id 44DDC8C0040; Thu, 7 Nov 2013 20:19:49 +0000 (UTC) Received: from mail1.cirrus.com (141.131.3.20) by DB8EHSMHS028.bigfish.com (10.174.4.38) with Microsoft SMTP Server (TLS) id 14.16.227.3; Thu, 7 Nov 2013 20:19:47 +0000 Received: from ex3.ad.cirrus.com ([141.131.36.34]) by mail1.cirrus.com (8.13.8/8.12.11) with ESMTP id rA7KJctV013270; Thu, 7 Nov 2013 14:19:40 -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; Thu, 7 Nov 2013 14:19:44 -0600 From: Brian Austin To: , CC: , , , , Brian Austin Subject: [PATCH 2/2] dt: binding: sound cs42l52 driver Date: Thu, 7 Nov 2013 14:22:17 -0600 Message-ID: <1383855737-8499-2-git-send-email-brian.austin@cirrus.com> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1383855737-8499-1-git-send-email-brian.austin@cirrus.com> References: <1383855737-8499-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 Signed-off-by: Brian Austin --- .../devicetree/bindings/sound/cs42l52.txt | 34 ++++++++++++++++++++++ 1 file changed, 34 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..7540198 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/cs42l52.txt @@ -0,0 +1,34 @@ +CS42L52 audio CODEC + +Required properties: + + - compatible : "cirrus,cs42l52" + + - reg : the I2C address of the device for I2C + +Optional properties: + + - reset_gpio : a GPIO spec for the reset pin. + - chgfreq : Charge Pump Frequency values 0x00-0x0F + - mica_sel : MIC A single ended input select MIC1/MIC2 + - micb_sel : MIC B single ended input select MIC1/MIC2 + - mica_cfg : MIC A single-ended or differential select + - micb_cfg : MIC A single-ended or differential select + - 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_sel = <0x01>; + micbias_lvl = <0x05>; +};