From patchwork Fri Feb 17 16:03:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 9580367 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 A571C600F6 for ; Fri, 17 Feb 2017 16:12:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94759205FB for ; Fri, 17 Feb 2017 16:12:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86E5F2022C; Fri, 17 Feb 2017 16:12:23 +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 0E7B62022C for ; Fri, 17 Feb 2017 16:12:23 +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=FlPrUWKRiae6PHSH6KShdcvkwDSvkBsUvVUGEeD5ed8=; b=hweLPwp5a9kNNk oWPfH62r5fm0NtZMYCYinp2BxqnH4JWLrc+JT6KlH0wM9pczR0GfysqiDa58Eb0Y4P05WvZJM0/j7 LYOIxW/R0uLgGbKDSCwVWtBPuA1EqpeGo2/o62RFHlZY2bb69aMhisdicNtko2pE8XxDMAxVRxLgA t6ownYiOfulp4ED+5S+Jt7JhZ1C5XEckbEmwwh1VZaR6OPO/yrdZ/eCc9ez5C7vdFxoZYxGyuMHS9 2HuGlkNceajEEGKFblMt7jBE6dd/RvLdLyRMWwLACQ/WBwrLNYbu4SsK6RtDG2ZSgsEEgQR66yNXM t/nx4NNBBIC3TyK3koGQ==; 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 1cel8w-0004GB-0r; Fri, 17 Feb 2017 16:12:22 +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 1cel1c-0006zT-IV for linux-arm-kernel@lists.infradead.org; Fri, 17 Feb 2017 16:04:50 +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 v1HFuX2c023565; Fri, 17 Feb 2017 17:04:04 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-.pphosted.com with ESMTP id 28hrmacfat-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 17 Feb 2017 17:04:04 +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 0C96131; Fri, 17 Feb 2017 16:04:04 +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 DA41526E7; Fri, 17 Feb 2017 16:04:03 +0000 (GMT) Received: from localhost (10.75.127.49) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 17 Feb 2017 17:04:03 +0100 From: Fabrice Gasnier To: , , , , , Subject: [RFC 3/4] dt-bindings: iio: add support for GPIO triggers Date: Fri, 17 Feb 2017 17:03:48 +0100 Message-ID: <1487347429-31761-4-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1487347429-31761-1-git-send-email-fabrice.gasnier@st.com> References: <1487347429-31761-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG4NODE3.st.com (10.75.127.12) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-02-17_13:, , signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170217_080448_915287_4BB6533F 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 Industrial I/O GPIO trigger support. Signed-off-by: Fabrice Gasnier --- .../bindings/iio/trigger/iio-trig-gpio.txt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/trigger/iio-trig-gpio.txt diff --git a/Documentation/devicetree/bindings/iio/trigger/iio-trig-gpio.txt b/Documentation/devicetree/bindings/iio/trigger/iio-trig-gpio.txt new file mode 100644 index 0000000..a8dbf5c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/trigger/iio-trig-gpio.txt @@ -0,0 +1,26 @@ +Industrial I/O - GPIO based trigger + +GPIOs may be used as IIO trigger provider, when trigger is connected to +GPIO lines. + +Required properties: +- compatible: Should be "iio-gpio-trigger" +- gpios: Should specify one GPIO line used as trigger source. + See Documentation/devicetree/bindings/gpio/gpio.txt +- #io-trigger-cells: Should be 0, as simple trigger provider. + See Documentation/devicetree/bindings/iio/iio-bindings.txt + +Optional properties: +- label: String to specifiy trigger name. +- gpio-trigger-rising-edge: A rising edge on GPIO will trigger. +- gpio-trigger-falling-edge: A falling edge on GPIO will trigger. + Note: Both rising and falling edge may be used. In case none of + rising or falling edge is selected, rising edge is selected by + default. + +Example: + gpiotrig0: iio-gpio-trigger0 { + #io-trigger-cells = <0>; + compatible = "iio-gpio-trigger"; + gpios = <&gpioa 11 0>; + }