From patchwork Fri Jul 1 21:00:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 9210475 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 C8F816075F for ; Fri, 1 Jul 2016 21:02:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAAFB286B6 for ; Fri, 1 Jul 2016 21:02:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF024286C5; Fri, 1 Jul 2016 21:02:46 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4CEA6286B6 for ; Fri, 1 Jul 2016 21:02:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bJ5ZA-0004EH-Mk; Fri, 01 Jul 2016 21:01:36 +0000 Received: from down.free-electrons.com ([37.187.137.238] helo=mail.free-electrons.com) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bJ5Z7-0003s6-3a for linux-arm-kernel@lists.infradead.org; Fri, 01 Jul 2016 21:01:33 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id 22A7219A1; Fri, 1 Jul 2016 23:01:12 +0200 (CEST) Received: from localhost (unknown [88.191.26.124]) by mail.free-electrons.com (Postfix) with ESMTPSA id EAF281987; Fri, 1 Jul 2016 23:01:01 +0200 (CEST) From: Alexandre Belloni To: Jonathan Cameron Subject: [PATCH 1/2] iio: sun4i-lradc: Add binding documentation Date: Fri, 1 Jul 2016 23:00:54 +0200 Message-Id: <1467406855-9677-1-git-send-email-alexandre.belloni@free-electrons.com> X-Mailer: git-send-email 2.8.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160701_140133_314936_14323524 X-CRM114-Status: GOOD ( 11.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Chen-Yu Tsai , Rob Herring , Alexandre Belloni , Maxime Ripard , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Document the bindings for the Allwinner LRADC. Signed-off-by: Alexandre Belloni --- Cc: Rob Herring Cc: devicetree@vger.kernel.org .../devicetree/bindings/iio/adc/sun4i-lradc.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/sun4i-lradc.txt diff --git a/Documentation/devicetree/bindings/iio/adc/sun4i-lradc.txt b/Documentation/devicetree/bindings/iio/adc/sun4i-lradc.txt new file mode 100644 index 000000000000..c75a6067b8a5 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/sun4i-lradc.txt @@ -0,0 +1,19 @@ +Allwinner sun4i Low Resolution ADC +---------------------------------- + +Required properties: + - compatible: "allwinner,sun4i-a10-lradc" + - reg: mmio address range of the chip + - interrupts: interrupt to which the chip is connected + - vref-supply: powersupply for the lradc reference voltage + - #io-channel-cells = <1>; As ADC has multiple outputs + +Example: + + lradc: lradc@01c22800 { + compatible = "allwinner,sun4i-a10-lradc"; + reg = <0x01c22800 0x100>; + interrupts = <31>; + vref-supply = <®_vcc3v0>; + #io-channel-cells = <1>; + };