Received: by 10.223.164.202 with SMTP id h10csp988585wrb; Thu, 23 Nov 2017 09:20:04 -0800 (PST) X-Google-Smtp-Source: AGs4zMatPnJaapsM8smxwxIaCCDTc+JVUzQ24waUPjNLHxvTO/VQPVoUsH3SZlF+M470OzgF9Hvt X-Received: by 10.101.69.203 with SMTP id m11mr24115168pgr.200.1511457604426; Thu, 23 Nov 2017 09:20:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511457604; cv=none; d=google.com; s=arc-20160816; b=kPLsd5vjV+vLJBu1rjl3/eTxqLfloD75flRdNXfex7jO+5I2tp0En9f8ggPNArls2K VFfTMgiYnBlUp6xHU4uSVnCmNPtAoo3hRGCB1aWsami0GDmNSvYc8cTuGw9amORj7YCW eS21wm3DEW00jcIPphV00GwWunBdcD3Ndy/pVnjz2mua29lyYL+gapTwQaO6B9Xh9MlH nhAlBE0Ni8aL2BpvEZTWCu64riuykVvaJdkgmYm/dRX3NlfIs0nkvjmUuv0AJMj2xyK9 C6r/7dKj3HfQ8F1pimPAsCoziSfinWmTXw+SXNpk/vHCc1uvagG8HG5jZP9BlzRJ03W5 I/Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=B6ZhCLEMVQKeaOmeMWew1gfJ0yg+0lB4S94/57/Roxs=; b=rLfMHc95zYDy0h5RQYvqqABfSHrYvqhINLnN0Eb+clbd0cfb0w/8hCZ8tY0U19Qgz+ Cx4G8iOgriiuvyveebNYq6XfcP+/J82EgkeQOZR93QdZGG52C4+DlZVgcj/Cc/P4/qZY aemUMgNV8Kw4E7wr5hb35X5CgRg4YHkcpy/yssEyldqkeQt5wn8DBArVUQ6MZS4a8PeX M+NMMykseUjpDbOrEGbhhIRfrf7W/dQjw1GGcdDYsq+09BoYpMV3IfsUVofrkUlpost4 iI/4oxCXiXNKID5hfh6vMo/PBTS5sPe8uEN6whACJuzsCx2tKii1u1kWJoYpBScNqUVQ /Tyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8si14978514plk.326.2017.11.23.09.19.52; Thu, 23 Nov 2017 09:20:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753470AbdKWRSM (ORCPT + 76 others); Thu, 23 Nov 2017 12:18:12 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:55540 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753126AbdKWRNi (ORCPT ); Thu, 23 Nov 2017 12:13:38 -0500 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 vANH9IeT002499; Thu, 23 Nov 2017 11:13:23 -0600 Authentication-Results: ppops.net; spf=none smtp.mailfrom=rf@opensource.wolfsonmicro.com Received: from mail1.cirrus.com (mail1.cirrus.com [141.131.3.20]) by mx0b-001ae601.pphosted.com with ESMTP id 2ecrj59pgf-1; Thu, 23 Nov 2017 11:13:23 -0600 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail1.cirrus.com (Postfix) with ESMTP id 214B760D9747; Thu, 23 Nov 2017 11:13:23 -0600 (CST) Received: from imbe.wolfsonmicro.main (198.61.95.81) by EX17.ad.cirrus.com (172.20.9.81) with Microsoft SMTP Server id 14.3.301.0; Thu, 23 Nov 2017 17:13:21 +0000 Received: from edi-sw-dsktp006.ad.cirrus.com (edi-sw-dsktp006.ad.cirrus.com [198.90.223.54]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id vANHDKx2008967; Thu, 23 Nov 2017 17:13:20 GMT From: Richard Fitzgerald To: , , , , , , CC: , , , , , Richard Fitzgerald Subject: [PATCH v6 02/17] mfd: madera: Add DT bindings for Cirrus Logic Madera codecs Date: Thu, 23 Nov 2017 17:13:01 +0000 Message-ID: <20171123171316.10868-3-rf@opensource.wolfsonmicro.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171123171316.10868-1-rf@opensource.wolfsonmicro.com> References: <20171123171316.10868-1-rf@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1711230233 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Specification of the bindings for the parent MFD driver component of the Cirrus Logic Madera codec drivers. Note that although the interrupt controller and GPIO are child drivers their required bindings are trivial, mandatory, and exist within the parent MFD node so are documented here. Signed-off-by: Richard Fitzgerald Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/madera.txt | 102 +++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/madera.txt diff --git a/Documentation/devicetree/bindings/mfd/madera.txt b/Documentation/devicetree/bindings/mfd/madera.txt new file mode 100644 index 000000000000..db3266088386 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/madera.txt @@ -0,0 +1,102 @@ +Cirrus Logic Madera class audio codecs Multi-Functional Device + +These devices are audio SoCs with extensive digital capabilities and a range +of analogue I/O. + +See also the child driver bindings in: +bindings/pinctrl/cirrus,madera-pinctrl.txt +bindings/regulator/arizona-regulator.txt +bindings/sound/madera.txt + +Required properties: + + - compatible : One of the following chip-specific strings: + "cirrus,cs47l35" + "cirrus,cs47l85" + "cirrus,cs47l90" + "cirrus,cs47l91" + "cirrus,wm1840" + + - reg : I2C slave address when connected using I2C, chip select number when + using SPI. + + - DCVDD-supply : Power supply for the device as defined in + bindings/regulator/regulator.txt + Mandatory on CS47L35, CS47L90, CS47L91 + Optional on CS47L85, WM1840 + + - AVDD-supply, DBVDD1-supply, DBVDD2-supply, CPVDD1-supply, CPVDD2-supply : + Power supplies for the device + + - DBVDD3-supply, DBVDD4-supply : Power supplies for the device + (CS47L85, CS47L90, CS47L91, WM1840) + + - SPKVDDL-supply, SPKVDDR-supply : Power supplies for the device + (CS47L85, WM1840) + + - SPKVDD-supply : Power supply for the device + (CS47L35) + + - interrupt-controller : Indicates that this device is an interrupt controller + + - #interrupt-cells: the number of cells to describe an IRQ, must be 2. + The first cell is the IRQ number. + The second cell is the flags, encoded as the trigger masks from + bindings/interrupt-controller/interrupts.txt + + - gpio-controller : Indicates this device is a GPIO controller. + + - #gpio-cells : Must be 2. The first cell is the pin number. The second cell + is reserved for future use and must be zero + + - interrupt-parent : The parent interrupt controller. + + - interrupts : The interrupt line the /IRQ signal for the device is + connected to. + +Optional properties: + + - MICVDD-supply : Power supply, only need to be specified if + powered externally + + - reset-gpios : One entry specifying the GPIO controlling /RESET. + As defined in bindings/gpio.txt. + Although optional, it is strongly recommended to use a hardware reset + + - MICBIASx : Initial data for the MICBIAS regulators, as covered in + Documentation/devicetree/bindings/regulator/regulator.txt. + One for each MICBIAS generator (MICBIAS1, MICBIAS2, ...) + (all codecs) + + One for each output pin (MICBIAS1A, MIBCIAS1B, MICBIAS2A, ...) + (all except CS47L85, WM1840) + + The following following additional property is supported for the generator + nodes: + - cirrus,ext-cap : Set to 1 if the MICBIAS has external decoupling + capacitors attached. + +Optional child nodes: + micvdd : Node containing initialization data for the micvdd regulator + See bindings/regulator/arizona-regulator.txt + + ldo1 : Node containing initialization data for the LDO1 regulator + See bindings/regulator/arizona-regulator.txt + (cs47l85, wm1840) + +Example: + +cs47l85@0 { + compatible = "cirrus,cs47l85"; + reg = <0>; + + reset-gpios = <&gpio 0>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupts = <&host_irq1>; + interrupt-parent = <&gic>; + + gpio-controller; + #gpio-cells = <2>; +}; -- 2.11.0 From 1584892683273060603@xxx Thu Nov 23 21:10:46 +0000 2017 X-GM-THRID: 1584892683273060603 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread