devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Porter <mporter@linaro.org>
To: "Jonathan Cameron" <jic23@kernel.org>,
	"Grant Likely" <grant.likely@secretlab.ca>,
	"Rob Herring" <robh+dt@kernel.org>,
	"Benoît Cousson" <bcousson@baylibre.com>,
	"Tony Lindgren" <tony@atomide.com>,
	"Pawel Moll" <pawel.moll@arm.com>,
	"Mark Rutland" <mark.rutland@arm.com>,
	"Ian Campbell" <ijc+devicetree@hellion.org.uk>,
	"Kumar Gala" <galak@codeaurora.org>,
	"Thierry Reding" <thierry.reding@gmail.com>
Cc: Devicetree List <devicetree@vger.kernel.org>,
	Linux PWM List <linux-pwm@vger.kernel.org>,
	Linux IIO List <linux-iio@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux OMAP List <linux-omap@vger.kernel.org>,
	Linux ARM Kernel List <linux-arm-kernel@lists.infradead.org>
Subject: [PATCH v3 1/6] iio: add support for pulse width capture devices
Date: Wed,  5 Feb 2014 14:01:36 -0500	[thread overview]
Message-ID: <1391626901-31684-2-git-send-email-mporter@linaro.org> (raw)
In-Reply-To: <1391626901-31684-1-git-send-email-mporter@linaro.org>

Add a channel type to support pulse width capture devices.
These devices capture the timing of a PWM signal based on a
configurable trigger

Signed-off-by: Matt Porter <mporter@linaro.org>
---
 drivers/iio/industrialio-core.c | 1 +
 include/linux/iio/types.h       | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index acc911a..6ea0cf8 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -70,6 +70,7 @@ static const char * const iio_chan_type_name_spec[] = {
 	[IIO_CCT] = "cct",
 	[IIO_PRESSURE] = "pressure",
 	[IIO_HUMIDITYRELATIVE] = "humidityrelative",
+	[IIO_PULSE] = "pulse",
 };
 
 static const char * const iio_modifier_names[] = {
diff --git a/include/linux/iio/types.h b/include/linux/iio/types.h
index 084d882..4fa8840 100644
--- a/include/linux/iio/types.h
+++ b/include/linux/iio/types.h
@@ -30,6 +30,7 @@ enum iio_chan_type {
 	IIO_CCT,
 	IIO_PRESSURE,
 	IIO_HUMIDITYRELATIVE,
+	IIO_PULSE,
 };
 
 enum iio_modifier {
-- 
1.8.4

  reply	other threads:[~2014-02-05 19:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05 19:01 [PATCH v3 0/6] IIO pulse capture support for TI ECAP Matt Porter
2014-02-05 19:01 ` Matt Porter [this message]
2014-02-05 19:01 ` [PATCH v3 2/6] iio: pulse: add TI ECAP driver Matt Porter
2014-03-22  3:33   ` Matt Ranostay
2014-03-22  3:35   ` Matt Ranostay
     [not found]   ` <1391626901-31684-3-git-send-email-mporter-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-02-15 12:19     ` Jonathan Cameron
2016-03-28 15:30     ` Jonathan Cameron
     [not found]       ` <56F94DF8.9010003-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2016-04-03 10:41         ` Jonathan Cameron
2014-02-05 19:01 ` [PATCH v3 3/6] iio: enable selection and build of pulse drivers Matt Porter
     [not found]   ` <1391626901-31684-4-git-send-email-mporter-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-02-15 11:41     ` Jonathan Cameron
2014-02-05 19:01 ` [PATCH v3 4/6] iio: Add ABI docs for pulse capture devices Matt Porter
2014-02-15 11:40   ` Jonathan Cameron
2014-02-05 19:01 ` [PATCH v3 5/6] pwm: enable TI PWMSS if the IIO tiecap driver is selected Matt Porter
     [not found]   ` <1391626901-31684-6-git-send-email-mporter-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-02-26 14:15     ` Thierry Reding
2014-02-05 19:01 ` [PATCH v3 6/6] ARM: dts: AM33XX: Add ecap interrupt properties Matt Porter
2014-02-15 11:43   ` Jonathan Cameron
2014-02-05 20:23 ` [PATCH v3 0/6] IIO pulse capture support for TI ECAP Sergei Shtylyov
     [not found]   ` <52F29DBD.9050305-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2014-02-15 11:48     ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1391626901-31684-2-git-send-email-mporter@linaro.org \
    --to=mporter@linaro.org \
    --cc=bcousson@baylibre.com \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=grant.likely@secretlab.ca \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=jic23@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=thierry.reding@gmail.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).