public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
From: Tiberiu Breana <tiberiu.a.breana@intel.com>
To: linux-iio@vger.kernel.org
Cc: Jonathan Cameron <jic23@kernel.org>
Subject: [PATCH v2 0/2] Add support for Sensortek STK3310
Date: Fri, 24 Apr 2015 16:46:37 +0300	[thread overview]
Message-ID: <1429883199-28201-1-git-send-email-tiberiu.a.breana@intel.com> (raw)

These patches include an iio driver for the Sensortek STK3310
ambient light and proximity sensor. The STK3311 model is also
supported.

Datasheet:
http://www.datasheetspdf.com/datasheet/STK3310.html

Patches are as following:

1. basic functionality:
- raw readings of light and proximity data
- configuration of parameters like gain and integration time
- power management

2. interrupt support:
- interrupt support for proximity events
- enabling/disabling interrupts (events) via sysfs
- setting proximity thresholds

Changes since v1:
- addressed Jonathan's comments
- replaced devm_iio_device_register w/ iio_device_register
- merged power management patch into patch 1
- replaced the cache table with a regmap that now handles all
  parameter and interrupt configurations
- removed the set_cfg function along with enums and defines
  that were no longer needed
- fixed IT values exposed to userspace
- removed the reset_psint function and moved its functionality
  to the event handler
- added an irq_handler to capture  more accurate event timestamps

Regards,
Tiberiu


Tiberiu Breana (2):
  iio: light: Add support for Sensortek STK3310
  iio: light: Add threshold interrupt support for STK3310

 drivers/iio/light/Kconfig   |  11 +
 drivers/iio/light/Makefile  |   1 +
 drivers/iio/light/stk3310.c | 780 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 792 insertions(+)
 create mode 100644 drivers/iio/light/stk3310.c

-- 
1.9.1

             reply	other threads:[~2015-04-24 13:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-24 13:46 Tiberiu Breana [this message]
2015-04-24 13:46 ` [PATCH v2 1/2] iio: light: Add support for Sensortek STK3310 Tiberiu Breana
2015-04-24 16:41   ` Peter Meerwald
2015-04-26 16:55     ` Jonathan Cameron
2015-04-27 13:43       ` Breana, Tiberiu A
2015-04-24 13:46 ` [PATCH v2 2/2] iio: light: Add threshold interrupt support for STK3310 Tiberiu Breana

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=1429883199-28201-1-git-send-email-tiberiu.a.breana@intel.com \
    --to=tiberiu.a.breana@intel.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    /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