public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add support for Sensortek STK3310
@ 2015-04-24 13:46 Tiberiu Breana
  2015-04-24 13:46 ` [PATCH v2 1/2] iio: light: " Tiberiu Breana
  2015-04-24 13:46 ` [PATCH v2 2/2] iio: light: Add threshold interrupt support for STK3310 Tiberiu Breana
  0 siblings, 2 replies; 6+ messages in thread
From: Tiberiu Breana @ 2015-04-24 13:46 UTC (permalink / raw)
  To: linux-iio; +Cc: Jonathan Cameron

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-27 13:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-24 13:46 [PATCH v2 0/2] Add support for Sensortek STK3310 Tiberiu Breana
2015-04-24 13:46 ` [PATCH v2 1/2] iio: light: " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox