From patchwork Mon Jun 23 22:29:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Handrigan X-Patchwork-Id: 363218 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 1EB521400D4 for ; Tue, 24 Jun 2014 08:34:34 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751179AbaFWWed (ORCPT ); Mon, 23 Jun 2014 18:34:33 -0400 Received: from mail-bn1lp0144.outbound.protection.outlook.com ([207.46.163.144]:52854 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750931AbaFWWed (ORCPT ); Mon, 23 Jun 2014 18:34:33 -0400 Received: from BN1BFFO11FD055.protection.gbl (10.58.144.33) by BN1BFFO11HUB026.protection.gbl (10.58.144.173) with Microsoft SMTP Server (TLS) id 15.0.969.12; Mon, 23 Jun 2014 22:34:29 +0000 Received: from mail1.cirrus.com (141.131.3.20) by BN1BFFO11FD055.mail.protection.outlook.com (10.58.145.10) with Microsoft SMTP Server (TLS) id 15.0.969.12 via Frontend Transport; Mon, 23 Jun 2014 22:34:28 +0000 Received: from ex3.ad.cirrus.com ([141.131.36.34]) by mail1.cirrus.com (8.13.8/8.12.11) with ESMTP id s5NMYSpp030538; Mon, 23 Jun 2014 17:34:28 -0500 Received: from localhost (141.131.108.102) by EX3.ad.cirrus.com (141.131.36.39) with Microsoft SMTP Server id 14.3.174.1; Mon, 23 Jun 2014 17:34:25 -0500 From: Paul Handrigan To: , CC: , , , , , , , , Paul Handrigan , Paul Handrigan Subject: [PATCH v2 1/2] ASoC: cs4265: bindings: sound: Add binding for CS4265 CODEC. Date: Mon, 23 Jun 2014 17:29:52 -0500 Message-ID: <1403562593-31952-1-git-send-email-Paul.Handrigan@cirrus.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:141.131.3.20; CTRY:US; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(199002)(189002)(99396002)(4396001)(50226001)(85852003)(77156001)(88136002)(83072002)(50986999)(89996001)(76482001)(86362001)(92566001)(92726001)(93916002)(64706001)(21056001)(50466002)(77982001)(80022001)(79102001)(20776003)(47776003)(87936001)(19580395003)(44976005)(36756003)(19580405001)(83322001)(87286001)(95666004)(46102001)(6806004)(85306003)(106466001)(105596002)(102836001)(48376002)(104166001)(31966008)(57986006)(62966002)(81542001)(74502001)(74662001)(77096002)(76506005)(81342001); DIR:OUT; SFP:; SCL:1; SRVR:BN1BFFO11HUB026; H:mail1.cirrus.com; FPR:; MLV:sfv; PTR:mail1.cirrus.com; A:1; MX:1; LANG:en; X-OriginatorOrg: cirrus4.onmicrosoft.com X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 025100C802 Received-SPF: SoftFail (: domain of transitioning cirrus.com discourages use of 141.131.3.20 as permitted sender) Authentication-Results: spf=softfail (sender IP is 141.131.3.20) smtp.mailfrom=Paul.Handrigan@cirrus.com; 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 CS4265 I2C CODEC. Changes for v2: * Change DT reset pin name to "reset-gpios" Signed-off-by: Paul Handrigan --- Documentation/devicetree/bindings/sound/cs4265.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/cs4265.txt diff --git a/Documentation/devicetree/bindings/sound/cs4265.txt b/Documentation/devicetree/bindings/sound/cs4265.txt new file mode 100644 index 0000000..380fff8 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/cs4265.txt @@ -0,0 +1,29 @@ +CS4265 audio CODEC + +This device supports I2C only. + +Required properties: + + - compatible : "cirrus,cs4265" + + - reg : the I2C address of the device for I2C. The I2C address depends on + the state of the AD0 pin. If AD0 is high, the i2c address is 0x4f. + If it is low, the i2c address is 0x4e. + +Optional properties: + + - reset-gpios : a GPIO spec for the reset pin. If specified, it will be + deasserted before communication to the codec starts. + +Examples: + +codec_ad0_high: cs4265@4f { /* AD0 Pin is high */ + compatible = "cirrus,cs4265"; + reg = <0x4f>; +}; + + +codec_ad0_low: cs4265@4e { /* AD0 Pin is low */ + compatible = "cirrus,cs4265"; + reg = <0x4e>; +};