From patchwork Fri Nov 15 15:35: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: 291601 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 E8FBD2C00DC for ; Sat, 16 Nov 2013 02:32:43 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751190Ab3KOPcm (ORCPT ); Fri, 15 Nov 2013 10:32:42 -0500 Received: from tx2ehsobe003.messaging.microsoft.com ([65.55.88.13]:45390 "EHLO tx2outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750924Ab3KOPcl (ORCPT ); Fri, 15 Nov 2013 10:32:41 -0500 Received: from mail145-tx2-R.bigfish.com (10.9.14.254) by TX2EHSOBE007.bigfish.com (10.9.40.27) with Microsoft SMTP Server id 14.1.225.22; Fri, 15 Nov 2013 15:32:40 +0000 Received: from mail145-tx2 (localhost [127.0.0.1]) by mail145-tx2-R.bigfish.com (Postfix) with ESMTP id BA46C4002B9; Fri, 15 Nov 2013 15:32:40 +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: 11 X-BigFish: VPS11(zzzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h1d1ah1d2ah1fc6hzz1de098h8275bh1de097h11f642sz2dh2a8h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1b0ah2222h224fh1c0dh1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1e23h1fe8h1ff5h2218h2216h1155h) Received: from mail145-tx2 (localhost.localdomain [127.0.0.1]) by mail145-tx2 (MessageSwitch) id 1384529558304564_18198; Fri, 15 Nov 2013 15:32:38 +0000 (UTC) Received: from TX2EHSMHS011.bigfish.com (unknown [10.9.14.242]) by mail145-tx2.bigfish.com (Postfix) with ESMTP id 271D6E03AE; Fri, 15 Nov 2013 15:32:38 +0000 (UTC) Received: from mail1.cirrus.com (141.131.3.20) by TX2EHSMHS011.bigfish.com (10.9.99.111) with Microsoft SMTP Server (TLS) id 14.16.227.3; Fri, 15 Nov 2013 15:32:37 +0000 Received: from ex3.ad.cirrus.com ([141.131.36.34]) by mail1.cirrus.com (8.13.8/8.12.11) with ESMTP id rAFFWSu5032032; Fri, 15 Nov 2013 09:32:29 -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; Fri, 15 Nov 2013 09:32:37 -0600 From: Brian Austin To: CC: , , , , , Brian Austin Subject: [PATCH v3 2/2] dt: binding: sound cs42l52 driver Date: Fri, 15 Nov 2013 09:35:34 -0600 Message-ID: <1384529734-9415-2-git-send-email-brian.austin@cirrus.com> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1384529734-9415-1-git-send-email-brian.austin@cirrus.com> References: <1384529734-9415-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 v3 Adds better descriptors for platform data. Change mic differential setting to boolean Change chgfreq to chgfreq-divisor Add vendor cirrus to properties Chgfreq values in decimal Signed-off-by: Brian Austin --- .../devicetree/bindings/sound/cs42l52.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 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..66ed1be --- /dev/null +++ b/Documentation/devicetree/bindings/sound/cs42l52.txt @@ -0,0 +1,46 @@ +CS42L52 audio CODEC + +Required properties: + + - compatible : "cirrus,cs42l52" + + - reg : the I2C address of the device for I2C + +Optional properties: + + - cirrus,reset-gpio : 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 = (64xFs)/(N+2) + N = chgfreq_val + Fs = Sample Rate (variable) + + - cirrus,mica-differential-cfg : boolean, If present, then the MICA input is configured + as a differential input. If not present then the MICA input is configured as + Single-ended input. Single-ended mode allows for MIC1 or MIC2 muxing for input. + + - cirrus,micb-differential-cfg : boolean, If present, then the MICB input is configured + as a differential input. If not present then the MICB input is configured as + Single-ended input. Single-ended mode allows for MIC1 or MIC2 muxing for input. + + - 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 + +Example: + +codec: codec@4a { + compatible = "cirrus,cs42l52"; + reg = <0x4a>; + reset-gpio = <&gpio 10 0>; + cirrus,chgfreq-divisor = <0x05>; + cirrus.mica-differential-cfg; + cirrus,micbias-lvl = <5>; +};