From patchwork Tue Feb 28 16:51:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 9596297 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 D117C60453 for ; Tue, 28 Feb 2017 16:56:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C157028536 for ; Tue, 28 Feb 2017 16:56:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5B8228543; Tue, 28 Feb 2017 16:56:41 +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,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3847128536 for ; Tue, 28 Feb 2017 16:56:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Zi/oanTR+V4iTO9+1LusEwn/z4dnCcfEdhdbzNWMask=; b=Q4iuBbJm2gvV7C 3DKNN7DqxDy/1XAh2CA5I2fNPazgJqOHWEdtKWozgFF37aYudGXDh+NhGVXvupgwxf5GGttYbC9q+ 0lJwU65vRnr85qW7upagx7JVGHu+1Gyhi/IA1R1SygW9ayGwJtphGhPUhVrUMy/CwldAt8IDwl+/S Sa9bAJsi34oOx4D9lj8S6eWdLRGe84orpalgeS4keCOBbX4pkW+qJRc4oxl9j8C4PuvQVNlx8mN4A y8pm47hYSXOQoQaJNYGl5nlYghmhssk6B83w4VD71RNCjveCzrqTYBLO8zXa2BF/msXJkTONqpMvv 6/HExHyrZ/j4CkAuTgHg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cil4j-0005L7-51; Tue, 28 Feb 2017 16:56:33 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cil1I-00028e-BS for linux-arm-kernel@bombadil.infradead.org; Tue, 28 Feb 2017 16:53:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ekYa5HSpdZ9boTyUSW1ff/ZcE18M6C0BVs2MN3gyNt8=; b=u4FpSYSsRXi6mIjz/nxG1myJ0 ArQF/CbpcP44qQn4tWuGjhmVgLyaz14T1hAfM5G4UwYeasE5L1rqZwWXzQNLcahmovEKUlFm5azPS Ce3ppFbP+l1HhvrrRDm90L6YyXcQXEZW1acN7/UuhErxmU9uT78g+w21eOjUPltVVH0aDQpjbG8MZ NK3orkukjhsyai3kbzLWfzFf/+/WKYebqgiTHJ7YagnRpF1QwLc4VKlQpqhJoxN3iOGOoHK47usnm S+gFIQHJFEeP6UnX5/n9snH9Fzfk8aXYfZbSBc8truIo9Y48rS6KRn33B5uvtw8dHC6qnhqLCHpAZ e440NkUvA==; Received: from mx07-00178001.pphosted.com ([62.209.51.94]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cil1F-0003iw-F6 for linux-arm-kernel@lists.infradead.org; Tue, 28 Feb 2017 16:52:58 +0000 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by m0046037.ppops.net (8.16.0.11/8.16.0.11) with SMTP id v1SGiGDO015676; Tue, 28 Feb 2017 17:52:23 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-.pphosted.com with ESMTP id 28vhs98a7a-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 28 Feb 2017 17:52:23 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E34A231; Tue, 28 Feb 2017 16:52:22 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C24F12A7E; Tue, 28 Feb 2017 16:52:22 +0000 (GMT) Received: from localhost (10.75.127.45) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 28 Feb 2017 17:52:22 +0100 From: Fabrice Gasnier To: , , , , , Subject: [PATCH v3 5/6] dt-bindings: iio: stm32-adc: add external interrupt trigger Date: Tue, 28 Feb 2017 17:51:18 +0100 Message-ID: <1488300679-3259-6-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1488300679-3259-1-git-send-email-fabrice.gasnier@st.com> References: <1488300679-3259-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG4NODE2.st.com (10.75.127.11) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-02-28_15:, , signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170228_115257_708352_F5FCC8F4 X-CRM114-Status: GOOD ( 10.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, benjamin.gaignard@linaro.org, lars@metafoo.de, alexandre.torgue@st.com, linux-iio@vger.kernel.org, pmeerw@pmeerw.net, mcoquelin.stm32@gmail.com, knaack.h@gmx.de, fabrice.gasnier@st.com, linus.walleij@linaro.org, benjamin.gaignard@st.com 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 support for EXTI trigger. STM32 ADC can use external interrupt line as trigger source for conversions. Signed-off-by: Fabrice Gasnier --- .../devicetree/bindings/iio/adc/st,stm32-adc.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt index 5dfc88e..9e4af7f 100644 --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt @@ -57,6 +57,10 @@ Optional properties: - dmas: Phandle to dma channel for this ADC instance. See ../../dma/dma.txt for details. - dma-names: Must be "rx" when dmas property is being used. +- io-triggers: Phandle to external interrupt trigger (e.g. EXTI). Must be + phandle to EXTI11 on stm32f4. See ../iio-bindings.txt for details on trigger + consumer. +- io-trigger-names: Must be "exti" when io-triggers property is being used. Example: adc: adc@40012000 { @@ -88,3 +92,20 @@ Example: ... other adc child nodes follow... }; + +Example with EXTI11 trigger: + trig: interrupt-trigger { + #io-trigger-cells = <0>; + compatible = "interrupt-trigger"; + interrupts = <11 0>; + interrupt-parent = <&gpioa>; + } + + adc: adc@40012000 { + ... + adc@0 { + ... + io-triggers = <&trig>; + io-trigger-names = "exti"; + }; + };