From patchwork Tue Feb 28 16:51:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 9596289 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 2A2B1600CB for ; Tue, 28 Feb 2017 16:53:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B8C1205A8 for ; Tue, 28 Feb 2017 16:53:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0EF5A28536; Tue, 28 Feb 2017 16:53:00 +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 43212205A8 for ; Tue, 28 Feb 2017 16:52:59 +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=aV8WxHAX0vhhGR9xHPvyiO9jrkiAQr+sP96DnUvtPYs=; b=BdCt0SnfA7qaUJ 9LFT/zW7sHUlX/8btPtsvHKsllT9CwAgeEkN25p0lw/rqxga/SEVdPdvatkkfEOpHpxpaGec7ZShy 6TK4KbajBxT5+tXr54D+qjEmnj2AeU/Y/bYX62EL9urBKgeusNyXcAHQJCNG3TOwOYTXtSVubjgIB t1IcVx/wjT8tB9smHit2WvE4obKeqe3bXkKvxmTCodO47zToopyJ1kIVdJ+oQkdwHb9kOa4q4p2xT yBw5ObHsVbfBm4LgIAkTyF3V3+0HzdBh+aLC3+5a0k5W2Yc05TWP6OWoLSfmsnDFoj5wfimwKjcuL IUw48g7qWAum3D/jsMHw==; 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 1cil1F-00027Y-7b; Tue, 28 Feb 2017 16:52:57 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cil17-00021B-Se for linux-arm-kernel@lists.infradead.org; Tue, 28 Feb 2017 16:52:53 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id v1SGqHJ4029915; Tue, 28 Feb 2017 17:52:17 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-.pphosted.com with ESMTP id 28vgqc0x4r-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 28 Feb 2017 17:52:17 +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 254BA3A; Tue, 28 Feb 2017 16:52:17 +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 0141B2A7E; Tue, 28 Feb 2017 16:52:17 +0000 (GMT) Received: from localhost (10.75.127.50) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 28 Feb 2017 17:52:16 +0100 From: Fabrice Gasnier To: , , , , , Subject: [PATCH v3 3/6] dt-bindings: iio: document interrupt trigger support Date: Tue, 28 Feb 2017 17:51:16 +0100 Message-ID: <1488300679-3259-4-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.50] X-ClientProxiedBy: SFHDAG5NODE2.st.com (10.75.127.14) 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_085250_416841_3787D6CF X-CRM114-Status: GOOD ( 10.07 ) 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 interrupt trigger that takes a generic interrupt, and can be used as trigger source for sampling devices such as sensors, ADCs... Signed-off-by: Fabrice Gasnier --- .../bindings/iio/trigger/iio-trig-interrupt.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/trigger/iio-trig-interrupt.txt diff --git a/Documentation/devicetree/bindings/iio/trigger/iio-trig-interrupt.txt b/Documentation/devicetree/bindings/iio/trigger/iio-trig-interrupt.txt new file mode 100644 index 0000000..9de9856 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/trigger/iio-trig-interrupt.txt @@ -0,0 +1,22 @@ +Interrupt based trigger + +Any internal or external interrupt may be used as trigger source for +devices like sensors, ADCs... As an example, external signal can be +routed to a GPIO, and turned into an interrupt driven trigger. + +Required properties: +- compatible: Should be "interrupt-trigger" +- interrupts: The interrupt used as trigger. Generic interrupt client node as + described in ../../interrupt-controller/interrupts.txt + +Optional properties: +- #io-trigger-cells = <0>; See the IIO bindings, IIO trigger providers + and consumers sections in ../iio-bindings.txt + +Example: + trig0: interrupt-trigger0 { + #io-trigger-cells = <0>; + compatible = "interrupt-trigger"; + interrupts = <11 0>; + interrupt-parent = <&gpioa>; + }