From patchwork Tue Nov 22 16:13:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 83433 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp2231499obn; Tue, 22 Nov 2016 08:14:15 -0800 (PST) X-Received: by 10.98.89.129 with SMTP id k1mr26146364pfj.180.1479831255047; Tue, 22 Nov 2016 08:14:15 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si29075167pgi.292.2016.11.22.08.14.14; Tue, 22 Nov 2016 08:14:15 -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 S1755956AbcKVQOE (ORCPT + 26 others); Tue, 22 Nov 2016 11:14:04 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:37028 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755735AbcKVQOC (ORCPT ); Tue, 22 Nov 2016 11:14:02 -0500 Received: by mail-wm0-f43.google.com with SMTP id t79so33117570wmt.0 for ; Tue, 22 Nov 2016 08:14:01 -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=DRye6XDMvX4Q96a6eC/Wldb7UDbWYUrUSbO5ZcmLgp4=; b=PtJNSDOfvTsU4T+HHq/7aQ1yz2H30h7l92bVYP2wbdXbTI3sSG+lVFypEfXF+5sId5 be/C8xvSUILIuvJfqO8j+2on4rZWawqa1MHOMS5AQfl0+RqIJkH6eDyN4BBAsi1QMORX 01y1Y3QfeA3C78gpeMLoWPwtQZXPWucQUaDgQ= 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=DRye6XDMvX4Q96a6eC/Wldb7UDbWYUrUSbO5ZcmLgp4=; b=e6YXS5pchxMmn6aai1cy7fgi4EGldCuE0RsIbSDLoiJeVWbBbedz+93/bBSpmEXE5E NgcJ311CA7nSibmanNxzW4Ox0gZkywi/XahLYJSABGGSjQopPpt5w8pGI2LGozDi/rKY NyUaAP258g31sYDbWtHErJur6bgPMJ6d9mF5b4VbLj+n2z+cYfnPQIh9bzXMu2mrm5HZ jm2RMdPXNmDLYrUK3eKx6/SK601FN9kmjKIUCHKyWVuD4uWde8ITuBQjmySKpGU6IZ7U a3hluSuC4jZOXnCko6aKjs9EqYS7btRl40UjwawwMP/CLYBglZ5k/dJtllf3n6/l7TR0 L37Q== X-Gm-Message-State: AKaTC014mtS4kcrkUwjaBm0CVwKS1oJJWVGrd2iFFJRDkq1a2o4VtYXDPWvwYKT1DV13cxTG X-Received: by 10.28.36.87 with SMTP id k84mr3190376wmk.64.1479831240821; Tue, 22 Nov 2016 08:14:00 -0800 (PST) Received: from lmenx321.st.com. ([80.215.80.240]) by smtp.gmail.com with ESMTPSA id v202sm3729369wmv.8.2016.11.22.08.13.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Nov 2016 08:14:00 -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 Subject: [PATCH 5/7] add bindings for stm32 IIO timer drivers Date: Tue, 22 Nov 2016 17:13:25 +0100 Message-Id: <1479831207-32699-6-git-send-email-benjamin.gaignard@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1479831207-32699-1-git-send-email-benjamin.gaignard@st.com> References: <1479831207-32699-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 IIO timer Signed-off-by: Benjamin Gaignard --- .../bindings/iio/timer/stm32-iio-timer.txt | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/timer/stm32-iio-timer.txt -- 1.9.1 diff --git a/Documentation/devicetree/bindings/iio/timer/stm32-iio-timer.txt b/Documentation/devicetree/bindings/iio/timer/stm32-iio-timer.txt new file mode 100644 index 0000000..b80025e --- /dev/null +++ b/Documentation/devicetree/bindings/iio/timer/stm32-iio-timer.txt @@ -0,0 +1,33 @@ +timer IIO trigger bindings for STM32 + +Must be a child of STM32 multifunctions timer driver + +Required parameters: +- compatible: must be one of the follow value: + "st,stm32-iio-timer1" + "st,stm32-iio-timer2" + "st,stm32-iio-timer3" + "st,stm32-iio-timer4" + "st,stm32-iio-timer5" + "st,stm32-iio-timer6" + "st,stm32-iio-timer7" + "st,stm32-iio-timer8" + "st,stm32-iio-timer9" + "st,stm32-iio-timer10" + "st,stm32-iio-timer11" + "st,stm32-iio-timer12" + "st,stm32-iio-timer13" + "st,stm32-iio-timer14" + +Example: + mfd_timer1: mfdtimer1@40010000 { + compatible = "st,stm32-mfd-timer1"; + reg = <0x40010000 0x400>; + clocks = <&rcc 0 160>; + clock-names = "mfd_timer_clk"; + interrupts = <27>; + + trigger1: trigger1@40010000 { + compatible = "st,stm32-iio-timer1"; + }; + };