From patchwork Fri Feb 17 16:03:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 9580309 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 88248600F6 for ; Fri, 17 Feb 2017 16:05:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79ADE28732 for ; Fri, 17 Feb 2017 16:05:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DB1A28733; Fri, 17 Feb 2017 16:05:19 +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 EE7BA28730 for ; Fri, 17 Feb 2017 16:05:18 +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=QNGqkq2pYDHaCItM8oAHgJuRjEtHY/FzsBNJ34cft7I=; b=SuDQ45WF3NA6w5 qS2xIhPh78E/NXmmN6WqcM1Htdua2qsZuyhMt/y4847LsUIxXaXzjKJfOe34RoNtIZRmYnk/esLnc Eu9TBjuF/5yB7X6siFpcuv9aaURZy228zwvQpUFoM5AkA9r8U0TsjrkJOrq/SpJcoN6jE4D9Ml4GZ 0R+9OWabJwjG79AtqPyIsbnKhwj8hAGP2DlOZoTqY8RC4n7/09/QjoSYYx37/N2Jmhe3uNNMmxyg4 HDWegE8g+t1UZ9pdTx5Y4bhmsub0R4JolND06aVfWikbfMikAyT5Arz5FCPNuYTgJDimZ/hQgjSwH tU4glF0/hGRUA7sdiRdQ==; 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 1cel1z-0007tb-As; Fri, 17 Feb 2017 16:05:11 +0000 Received: from mx07-00178001.pphosted.com ([62.209.51.94]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cel1g-0006zJ-2X for linux-arm-kernel@lists.infradead.org; Fri, 17 Feb 2017 16:04:57 +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 v1HFx860013885; Fri, 17 Feb 2017 17:04:03 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-.pphosted.com with ESMTP id 28hs8x43dm-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 17 Feb 2017 17:04:03 +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 5A84038; Fri, 17 Feb 2017 16:04:02 +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 25D6F26EA; Fri, 17 Feb 2017 16:04:02 +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; Fri, 17 Feb 2017 17:04:01 +0100 From: Fabrice Gasnier To: , , , , , Subject: [RFC 1/4] dt-bindings: iio: introduce trigger providers, consumers Date: Fri, 17 Feb 2017 17:03:46 +0100 Message-ID: <1487347429-31761-2-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.46] X-ClientProxiedBy: SFHDAG3NODE1.st.com (10.75.127.7) 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_080452_727021_E180447F X-CRM114-Status: UNSURE ( 7.74 ) 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 | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/iio-bindings.txt b/Documentation/devicetree/bindings/iio/iio-bindings.txt index 68d6f8c..3125390 100644 --- a/Documentation/devicetree/bindings/iio/iio-bindings.txt +++ b/Documentation/devicetree/bindings/iio/iio-bindings.txt @@ -95,3 +95,40 @@ 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: + gpiotrig0: iio-gpio-trigger0 { + #io-trigger-cells = <0>; + compatible = "iio-gpio-trigger"; + gpios = <&gpioa 11 0>; + } + +==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 = <&gpiotrig0>; + io-trigger-names = "mytrig"; + }