From patchwork Fri Dec 9 14:15:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 9468297 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 17CB060586 for ; Fri, 9 Dec 2016 14:19:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09CAD28619 for ; Fri, 9 Dec 2016 14:19:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F156E2861F; Fri, 9 Dec 2016 14:19:45 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8157328619 for ; Fri, 9 Dec 2016 14:19:45 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cFM00-0001Uc-FB; Fri, 09 Dec 2016 14:18:08 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cFLyn-0000xL-Vr for linux-arm-kernel@lists.infradead.org; Fri, 09 Dec 2016 14:16:56 +0000 Received: by mail-wm0-x233.google.com with SMTP id t79so28647299wmt.0 for ; Fri, 09 Dec 2016 06:16:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=luJNJ6/czDpr6xwduOEi1YzbZypHxtDI9Mwx3skssew=; b=j/BeVS5J2fNYQsGtPXC7YLBXWHMyHBwD9YSeUR5dl4ewtuEPC7OsGg8voQvh+oVxjD etpi4STPDJF0Um7SFQK7i0RkeQAF+X0RXAqG8RUfGCvQYPq5c7t0lJs2fiqvKnlHv+VN 9jCxNm3wZxAwHGCEWMVOBtitF+4SGTC+DnSfE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=luJNJ6/czDpr6xwduOEi1YzbZypHxtDI9Mwx3skssew=; b=FIlUDMG+Jtn39Gnmhq7UJOn60gvCS2crKtN4OL9wnRQ+9DL1yifx9iJA3CzfUQiYu+ PEfr0BM15WzgwEDtKtZLNMI9JBYmQDHYwd7jokcqAhLs49vQQwFi+jQimucOgOOldVnU kFG560gYJkpg1PZz3uiQl+8V8JW37P0weEAId/wML/NEzyHKHqpgBRG9iPWSlaSLMLQS nqOXd1CSlHYtarlg1gc8RqBQ24729TXWZpCevovd1eJV2ljJvOjvCesFD0X19AHtQWuK B61vjqAQqjVEJ+/OWdcF1EO55zHk2vrpbeqATX86L2OG6evRCTBTCHwxANO8MkdPqEtc ByEg== X-Gm-Message-State: AKaTC02XCrrbZ9+mjiqKdnrIoFhy4Vi5ukFxiqWYfW3vScrJfEcFxOWd+FU1pCnsa1E6PBVw X-Received: by 10.28.154.86 with SMTP id c83mr6709942wme.23.1481292991107; Fri, 09 Dec 2016 06:16:31 -0800 (PST) Received: from lmenx321.st.com. ([80.215.96.58]) by smtp.gmail.com with ESMTPSA id j6sm42589344wjk.25.2016.12.09.06.16.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Dec 2016 06:16:30 -0800 (PST) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, alexandre.torgue@st.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thierry.reding@gmail.com, linux-pwm@vger.kernel.org, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 5/8] IIO: add bindings for STM32 timer trigger driver Date: Fri, 9 Dec 2016 15:15:16 +0100 Message-Id: <1481292919-26587-6-git-send-email-benjamin.gaignard@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1481292919-26587-1-git-send-email-benjamin.gaignard@st.com> References: <1481292919-26587-1-git-send-email-benjamin.gaignard@st.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161209_061654_465805_2E262C02 X-CRM114-Status: GOOD ( 13.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linaro-kernel@lists.linaro.org, Benjamin Gaignard , linus.walleij@linaro.org, arnaud.pouliquen@st.com, benjamin.gaignard@linaro.org, gerald.baeza@st.com, fabrice.gasnier@st.com MIME-Version: 1.0 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 Define bindings for STM32 timer trigger version 4: - remove triggers enumeration from DT - add reg parameter version 3: - change file name - add cross reference with mfd bindings version 2: - only keep one compatible - add DT parameters to set lists of the triggers: one list describe the triggers created by the device another one give the triggers accepted by the device Signed-off-by: Benjamin Gaignard Acked-by: Rob Herring --- .../bindings/iio/timer/stm32-timer-trigger.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/timer/stm32-timer-trigger.txt diff --git a/Documentation/devicetree/bindings/iio/timer/stm32-timer-trigger.txt b/Documentation/devicetree/bindings/iio/timer/stm32-timer-trigger.txt new file mode 100644 index 0000000..36a6c4a --- /dev/null +++ b/Documentation/devicetree/bindings/iio/timer/stm32-timer-trigger.txt @@ -0,0 +1,23 @@ +STMicroelectronics STM32 Timers IIO timer bindings + +Must be a sub-node of an STM32 Timers device tree node. +See ../mfd/stm32-timers.txt for details about the parent node. + +Required parameters: +- compatible: Must be "st,stm32-timer-trigger". +- reg: Define triggers configuration of the hardware IP. + +Example: + timers@40010000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "st,stm32-timers"; + reg = <0x40010000 0x400>; + clocks = <&rcc 0 160>; + clock-names = "clk_int"; + + timer { + compatible = "st,stm32-timer-trigger"; + reg = <0>; + }; + };