From patchwork Tue Feb 28 16:51:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 9596291 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 3224460453 for ; Tue, 28 Feb 2017 16:54:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21A4828536 for ; Tue, 28 Feb 2017 16:54:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14F7128543; Tue, 28 Feb 2017 16:54:40 +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 8D25728536 for ; Tue, 28 Feb 2017 16:54:39 +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=Ku5n6EVs9JvhXIfYT/uuS9jFb7uOddJVbqzKe8eQx9M=; b=gdUTmeSIZjnMgY 82dPJddYLbix0NqoTdL9AXZ/y6KFC+SYQIphpsOoePqRmJxtHK/sHAACFacnxfCq7zunh72MsTiGX LXwFd7FothXztbKMlaxXSKj1Ddxv0yMeXc57h5WwBtDSrQNdoNRAPKen3qFpwtSGX6/wta6JkW5Cx 358LSPGgy/GIkGczYSckfa8hIG8N/i1INLhSF4JOA15OZ1eCbCOshUEvDqrUgXGlFUXBCgkzo1nbF pbw0rebhE8m0hViF2wL5uIDdESipUkcIbVjmtVMyXBLrhB5P/Nxx/HnVWBNfPPcb/qxJUSXUHF6lA 1A526mJ47OCmjhnlJ65A==; 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 1cil2m-0002uK-U3; Tue, 28 Feb 2017 16:54:32 +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-00021D-Sg for linux-arm-kernel@lists.infradead.org; Tue, 28 Feb 2017 16:52:55 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id v1SGiLBr023774; Tue, 28 Feb 2017 17:52:15 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-.pphosted.com with ESMTP id 28vhsg8hxb-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 28 Feb 2017 17:52:15 +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 7F5C838; Tue, 28 Feb 2017 16:52:14 +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 39DB22B34; Tue, 28 Feb 2017 16:52:14 +0000 (GMT) Received: from localhost (10.75.127.46) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 28 Feb 2017 17:52:13 +0100 From: Fabrice Gasnier To: , , , , , Subject: [PATCH v3 1/6] dt-bindings: iio: introduce trigger providers, consumers Date: Tue, 28 Feb 2017 17:51:14 +0100 Message-ID: <1488300679-3259-2-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.46] 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_085250_467872_E46919A7 X-CRM114-Status: UNSURE ( 8.66 ) X-CRM114-Notice: Please train this message. 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 iio provider and consumer bindings. Signed-off-by: Fabrice Gasnier --- .../devicetree/bindings/iio/iio-bindings.txt | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/iio-bindings.txt b/Documentation/devicetree/bindings/iio/iio-bindings.txt index 68d6f8c..01765e9 100644 --- a/Documentation/devicetree/bindings/iio/iio-bindings.txt +++ b/Documentation/devicetree/bindings/iio/iio-bindings.txt @@ -95,3 +95,41 @@ vdd channel is connected to output 0 of the &ref device. io-channels = <&adc 10>, <&adc 11>; io-channel-names = "adc1", "adc2"; }; + +==IIO trigger providers== +Sources of IIO triggers can be represented by any node in the device +tree. Those nodes are designated as IIO trigger providers. IIO trigger +consumer uses a phandle and an IIO trigger specifier to connect to an +IIO trigger provider. +An IIO trigger specifier is an array of one or more cells identifying +the IIO trigger output on a device. The length of an IIO trigger +specifier is defined by the value of a #io-trigger-cells property in +the IIO trigger provider node. + +Required properties: +#io-trigger-cells: + Number of cells in an IIO trigger specifier; Typically + 0 for nodes with a simple IIO trigger output. + +Example: + trig0: interrupt-trigger0 { + #io-trigger-cells = <0>; + compatible = "interrupt-trigger"; + interrupts = <11 0>; + interrupt-parent = <&gpioa>; + } + +==IIO trigger consumers== +Required properties: +- io-triggers: List of phandle representing the IIO trigger specifier. + +Optional properties: +- io-trigger-names : + List of IIO trigger name strings that matches elements + in 'io-triggers' list property. + +Example: + some_trigger_consumer { + io-triggers = <&trig0>; + io-trigger-names = "mytrig"; + }