From patchwork Fri May 13 20:50:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Handrigan X-Patchwork-Id: 9093491 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8CD129F1C3 for ; Fri, 13 May 2016 20:50:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6FC2320256 for ; Fri, 13 May 2016 20:50:49 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 37CA62022D for ; Fri, 13 May 2016 20:50:48 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 282CB265487; Fri, 13 May 2016 22:50:47 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 23652266980; Fri, 13 May 2016 22:50:06 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6BE982652F5; Fri, 13 May 2016 22:50:04 +0200 (CEST) Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by alsa0.perex.cz (Postfix) with ESMTP id D60A226527F for ; Fri, 13 May 2016 22:49:56 +0200 (CEST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u4DKnO2H018651; Fri, 13 May 2016 15:49:56 -0500 Authentication-Results: ppops.net; spf=pass smtp.mailfrom=Paul.Handrigan@cirrus.com Received: from mail1.cirrus.com (mail1.cirrus.com [141.131.3.20]) by mx0b-001ae601.pphosted.com with ESMTP id 22veaknpgu-1; Fri, 13 May 2016 15:49:55 -0500 Received: from ex3.ad.cirrus.com (ex3.ad.cirrus.com [141.131.36.34]) by mail1.cirrus.com (Postfix) with ESMTP id 95D1334053; Fri, 13 May 2016 15:51:13 -0500 (CDT) Received: from localhost (141.131.38.212) by InternalRelay (141.131.36.34) with Microsoft SMTP Server id 14.3.248.2; Fri, 13 May 2016 15:49:55 -0500 From: To: Date: Fri, 13 May 2016 15:50:29 -0500 Message-ID: <1463172629-559-2-git-send-email-Paul.Handrigan@cirrus.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1463172629-559-1-git-send-email-Paul.Handrigan@cirrus.com> References: <1463172629-559-1-git-send-email-Paul.Handrigan@cirrus.com> MIME-Version: 1.0 X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 include:spf-001ae601.pphosted.com ip4:141.131.128.20 ip4:141.131.3.20 ip4:213.128.236.230 ip4:87.246.98.25 ip4:87.246.78.26 -all X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1605130272 Cc: broonie@kernel.org, lgirdwood@gmail.com, Paul Handrigan Subject: [alsa-devel] [PATCH v3 2/2] ASoC: cs35l33: Add device tree bindings file for cs35l33 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Paul Handrigan Add device tree bindings file for the cs35l33 8V boosted class D amplifier. Signed-off-by: Paul Handrigan --- .../devicetree/bindings/sound/cs35l33.txt | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/cs35l33.txt diff --git a/Documentation/devicetree/bindings/sound/cs35l33.txt b/Documentation/devicetree/bindings/sound/cs35l33.txt new file mode 100644 index 0000000..273d73a --- /dev/null +++ b/Documentation/devicetree/bindings/sound/cs35l33.txt @@ -0,0 +1,73 @@ +CS35L33 Speaker Amplifier + +Required properties: + + - compatible : "cirrus,cs35l33" + + - reg : the I2C address of the device for I2C + + - VA-supply, VP-supply : power supplies for the device, + as covered in + Documentation/devicetree/bindings/regulator/regulator.txt. + +Optional properties: + + - reset-gpios : gpio used to reset the amplifier + + - interrupt-parent : Specifies the phandle of the interrupt controller to + which the IRQs from CS35L33 are delivered to. + - interrupts : IRQ line info CS35L33. + (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt + for further information relating to interrupt properties) + + - boost-ctl : Booster voltage use to supply the amp. If the value is + 0, then VBST = VP. If greater than 0, the boost voltage will be 3.3V with + a value of 1 and will increase at a step size of 0.1V until a maximum of + 8.0V. + + - ramp-rate : On power up, it affects the time from when the power + up sequence begins to the time the audio reaches a full-scale output. + On power down, it affects the time from when the power-down sequence + begins to when the amplifier disables the PWM outputs. If this property + is not set then soft ramping will be disabled and ramp time would be + 20ms. If this property is set to 0,1,2,3 then ramp times would be 40ms, + 60ms,100ms,175ms respectively for 48KHz sample rate. + + - boost-ipk : The maximum current allowed for the boost converter. + The range starts at 1.85A (0xF0) and goes to a maximum of 3.60A (0xE0) + with a step size of 0.015625A. The default is 2.50A (0x90). + + - hg-algo : Parameters for internal Class H/G algorithm that + controls the amplifier supplies. + +Example: + +cs35l33: cs35l33@40 { + compatible = "cirrus,cs35l33"; + reg = <0x40>; + + VA-supply = <&ldo5_reg>; + VP-supply = <&ldo5_reg>; + + interrupt-parent = <&gpio8>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + + reset-gpios = <&cs47l91 34 0>; + + ramp-rate = <0x0>; + boost-ctl = <0x30>; /* VBST = 8.0V */ + boost-ipk = <0xE0>; /* 3.60A */ + + hg-algo { + mem-depth = <0x3>; + release-rate = <0x3>; + hd-rm = <0xA>; + ldo-thld = <0x1>; + ldo-path-disable = <0x0>; + ldo-entry-delay=<0x4>; + vp-hg-auto; + vp-hg=<0xF>; + vp-hg-rate=<0x2>; + vp-hg-va=<0x0>; + }; +};