From patchwork Wed Aug 9 15:00:22 2017
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Li Xu
X-Patchwork-Id: 9890795
Return-Path:
Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org
[172.30.200.125])
by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id
9CCB360384 for ;
Wed, 9 Aug 2017 15:00:22 +0000 (UTC)
Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1])
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BE1D28A84
for ;
Wed, 9 Aug 2017 15:00:22 +0000 (UTC)
Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486)
id 9A60C28AAC; Wed, 9 Aug 2017 15:00:22 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
pdx-wl-mail.web.codeaurora.org
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE
autolearn=ham version=3.3.1
Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243])
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33C1A28A84
for ;
Wed, 9 Aug 2017 15:00:20 +0000 (UTC)
Received: from alsa0.perex.cz (localhost [127.0.0.1])
by alsa0.perex.cz (Postfix) with ESMTP id 0D256267401;
Wed, 9 Aug 2017 16:59:30 +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 0D98A267403; Wed, 9 Aug 2017 16:59:28 +0200 (CEST)
Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com
[67.231.152.168])
by alsa0.perex.cz (Postfix) with ESMTP id 18CAF267401
for ;
Wed, 9 Aug 2017 16:59:25 +0200 (CEST)
Received: from pps.filterd (m0077474.ppops.net [127.0.0.1])
by mx0b-001ae601.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id
v79ExN6E011815; Wed, 9 Aug 2017 09:59:23 -0500
Authentication-Results: ppops.net;
spf=pass smtp.mailfrom=Li.Xu@cirrus.com
Received: from mail3.cirrus.com ([87.246.76.56])
by mx0b-001ae601.pphosted.com with ESMTP id 2c5aenuw75-1;
Wed, 09 Aug 2017 09:59:23 -0500
Received: from ex3.ad.cirrus.com (ex3.ad.cirrus.com [141.131.36.34])
by mail3.cirrus.com (Postfix) with ESMTP id 63EEE6121AC0;
Wed, 9 Aug 2017 10:02:16 -0500 (CDT)
Received: from lixu-Digi-Puppy.ad.cirrus.com (141.131.38.212) by
InternalRelay
(141.131.36.34) with Microsoft SMTP Server id 14.3.301.0;
Wed, 9 Aug 2017 09:59:19 -0500
From: Li Xu
To: ,
Date: Wed, 9 Aug 2017 10:00:22 -0500
X-Mailer: git-send-email 1.9.1
In-Reply-To: <1502290822-10305-1-git-send-email-li.xu@cirrus.com>
References: <1502290822-10305-1-git-send-email-li.xu@cirrus.com>
MIME-Version: 1.0
Message-ID: <2fb53696-a4af-4736-a144-97ec83606843@EX3.ad.cirrus.com>
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
ip4:87.246.76.56 ip4:87.246.98.35 -all
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
priorityscore=1501 malwarescore=0
suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011
lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam
adjust=0
reason=mlx scancount=1 engine=8.0.1-1706020000
definitions=main-1708090234
Cc: mark.rutland@arm.com, brian.austin@cirrus.com, tiwai@suse.com,
robh+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org,
Paul.Handrigan@cirrus.com, Li Xu
Subject: [alsa-devel] [PATCH 2/2] ASoC: cs43130: Add devicetree bindings for
CS43130
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
Add devicetree bindings documentation file for Cirrus
Logic CS43130 codec.
Signed-off-by: Li Xu
Acked-by: Rob Herring
---
.../devicetree/bindings/sound/cs43130.txt | 72 ++++++++++++++++++++++
1 file changed, 72 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/cs43130.txt
diff --git a/Documentation/devicetree/bindings/sound/cs43130.txt b/Documentation/devicetree/bindings/sound/cs43130.txt
new file mode 100644
index 0000000..51ea38a
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/cs43130.txt
@@ -0,0 +1,72 @@
+CS43130 DAC
+
+Required properties:
+
+ - compatible : "cirrus,cs43130"
+
+ - reg : the I2C address of the device for I2C
+
+ - VA-supply, VP-supply, VL-supply, VCP-supply, VD-supply:
+ power supplies for the device, as covered in
+ Documentation/devicetree/bindings/regulator/regulator.txt.
+
+
+Optional properties:
+
+ - reset-gpios : Active low GPIO used to reset the device
+
+ - cirrus,xtal-ibias:
+ When external MCLK is generated by external crystal
+ oscillator, CS43130 can be used to provide bias current
+ for external crystal. Amount of bias current sent is
+ set as:
+ 1 = 7.5uA
+ 2 = 12.5uA
+ 3 = 15uA
+
+ - cirrus,dc-measure:
+ Boolean, define to enable headphone DC impedance measurement.
+
+ - cirrus,ac-measure:
+ Boolean, define to enable headphone AC impedance measurement.
+ DC impedance must also be enabled for AC impedance measurement.
+
+ - cirrus,dc-threshold:
+ Define 2 DC impedance thresholds in ohms for HP output control.
+ Default values are 50 and 120 Ohms.
+
+ - cirrus,ac-freq:
+ Define the frequencies at which to measure HP AC impedance.
+ Only used if "cirrus,dc-measure" is defined.
+ Exactly 10 frequencies must be defined.
+ If this properties is undefined, by default,
+ following frequencies are used:
+ <24 43 93 200 431 928 2000 4309 9283 20000>
+ The above frequencies are logarithmically equally spaced.
+ Log base is 10.
+
+ - cirrus,idle-bias-off:
+ Boolean, define this flag such that the device is only powered on when
+ playing audio. Otherwise, the device is turned off.
+ If this flag is defined, HP detection and impedance measurement is disabled.
+
+Example:
+
+cs43130: audio-codec@30 {
+ compatible = "cirrus,cs43130";
+ reg = <0x30>;
+ reset-gpios = <&axi_gpio 54 0>;
+ VA-supply = <&dummy_vreg>;
+ VP-supply = <&dummy_vreg>;
+ VL-supply = <&dummy_vreg>;
+ VCP-supply = <&dummy_vreg>;
+ VD-supply = <&dummy_vreg>;
+ cirrus,xtal-ibias = <2>;
+ interrupt-parent = <&gpio0>;
+ interrupts = <55 8>;
+ cirrus,idle-bias-off;
+ cirrus,dc-measure;
+ cirrus,ac-measure;
+ cirrus,dc-threshold = /bits/ 16 <20 100>;
+ cirrus,ac-freq = /bits/ 16 <24 43 93 200 431 928 2000 4309 9283 20000>;
+};