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: 87487 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp328402qgi; Fri, 9 Dec 2016 06:16:47 -0800 (PST) X-Received: by 10.99.100.132 with SMTP id y126mr142391520pgb.177.1481293007707; Fri, 09 Dec 2016 06:16:47 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u62si34028553pgc.183.2016.12.09.06.16.47; Fri, 09 Dec 2016 06:16:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933393AbcLIOQh (ORCPT + 25 others); Fri, 9 Dec 2016 09:16:37 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:34817 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933353AbcLIOQc (ORCPT ); Fri, 9 Dec 2016 09:16:32 -0500 Received: by mail-wm0-f53.google.com with SMTP id a197so28328340wmd.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=abfTAbliT0bcFkc+/zxtTugVI5O63tykYAksBt42KbdmjEO5hGLnIXBFAK9jP6g5tn v9zBUAKsAFAfG4VLnSdTpu/+BnkDuKpgeiN9+9edZgXtuC8FrQoSZUMoTu8zy1s9euHp WJ9R2B9IRDpDTWywGyxcU6+vW1LgDe6PJKL2Q0Fgw7t4S75shzuYm6htJL43jEihQv/8 TynwcmFum+fVMV5NDakOPq+es2APSPJSUnqwMdYp6c2q1Yn4xOEVKJgKNWYVEDrex4Nt OEiFd/tPsdSsiWCtqwATKhJMb5OcJyhyi6a76GZDdYSO0xHE+7+iBts0sp+ELX6YxR5D o46g== X-Gm-Message-State: AKaTC02HuXngNaULL9NJZJbf6dT/YUwVoehS189c2K+EPjpcEhvHu7hhHiP8C4XeEf83oW7U 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 Cc: fabrice.gasnier@st.com, gerald.baeza@st.com, arnaud.pouliquen@st.com, linus.walleij@linaro.org, linaro-kernel@lists.linaro.org, benjamin.gaignard@linaro.org, Benjamin Gaignard 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 1.9.1 Acked-by: Rob Herring 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>; + }; + };