From patchwork Tue Dec 6 12:38:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 9462505 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 79E8560231 for ; Tue, 6 Dec 2016 12:47:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F61027CAF for ; Tue, 6 Dec 2016 12:47:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 631AB2838C; Tue, 6 Dec 2016 12:47:11 +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 EB8BE27CAF for ; Tue, 6 Dec 2016 12:47:10 +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 1cEF7b-0007j5-Cl; Tue, 06 Dec 2016 12:45:23 +0000 Received: from mail-wj0-x236.google.com ([2a00:1450:400c:c01::236]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEF2i-0001Ys-8E for linux-arm-kernel@lists.infradead.org; Tue, 06 Dec 2016 12:40:24 +0000 Received: by mail-wj0-x236.google.com with SMTP id tk12so24119403wjb.3 for ; Tue, 06 Dec 2016 04:39:59 -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=LJdxgepjxzuro8siioi9ZpvTik4krfb0q9ySFD1Ez6k=; b=ZYE9YB+3UeB5owLY8hLUogl/qC2AFmA2la8dycYfT9ZFaLDDWpZIfmkjylBKQup6Ye I4ND4pz5UhHkbLqDRZfmt52Yzkot9sSWc+zD3YaW4hs6H6Khw2gCUnajVagFxnANLxgd Qej2cLciTK7r15J6iveXpTmTk3Ht8d+VIW+RE= 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=LJdxgepjxzuro8siioi9ZpvTik4krfb0q9ySFD1Ez6k=; b=XWtKhiuqFy+J2iUHVfK//jlzattHh2bDYVVAx3RqgtnT2ZH4ewF1D/vghByCMu1Z3X Tb2RkEBl2d7oJZwNEJguYxubs0yAyPy6P+/jy0//ywvVDJyNDcF/vqcgJrA0x2W87eNi /7k43RWvi7hTZ3calAMKR++axgnft3JNUe4KFw5xz/WiKuQtbn+ZdQod0r0UFl0/falk eILsAlBJUIn0q9juktXsoZJvIm9jwDktOv2+CDezpXaM4FBFI+TXY5sisGKVVonOeoMb R8cyoimRvmWt6vtxdVV2ZdD9sZTP9BFxVF0x/1uLk1fNo5dJmd7kor3iWn82nPO/PUNA 2Czg== X-Gm-Message-State: AKaTC01ovnNYDt+oCkJuWyOCmd2NRCbMMsp2r/QNbjXu1vBoXECclkPkp6C9a3WQNcZbI/sb X-Received: by 10.194.21.35 with SMTP id s3mr53527467wje.192.1481027998081; Tue, 06 Dec 2016 04:39:58 -0800 (PST) Received: from lmenx321.st.com. ([80.215.93.98]) by smtp.gmail.com with ESMTPSA id k2sm25598089wjv.11.2016.12.06.04.39.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Dec 2016 04:39:57 -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 v4 5/7] IIO: add bindings for STM32 timer trigger driver Date: Tue, 6 Dec 2016 13:38:47 +0100 Message-Id: <1481027929-13704-6-git-send-email-benjamin.gaignard@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1481027929-13704-1-git-send-email-benjamin.gaignard@st.com> References: <1481027929-13704-1-git-send-email-benjamin.gaignard@st.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161206_044020_762122_5251CEA5 X-CRM114-Status: GOOD ( 13.38 ) 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 --- .../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..fbaeba9 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/timer/stm32-timer-trigger.txt @@ -0,0 +1,23 @@ +STMicroelectronics STM32 General Purpose Timer IIO timer bindings + +Must be a sub-node of an STM32 General Purpose Timer device tree node. +See ../mfd/stm32-general-purpose-timer.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: + gptimer@40010000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "st,stm32-gptimer"; + reg = <0x40010000 0x400>; + clocks = <&rcc 0 160>; + clock-names = "clk_int"; + + timer@0 { + compatible = "st,stm32-timer-trigger"; + reg = <0>; + }; + };