linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Add support for Sensortek STK3310
@ 2015-04-27 15:33 Tiberiu Breana
  2015-04-27 15:34 ` [PATCH v3 1/2] iio: light: " Tiberiu Breana
  2015-04-27 15:34 ` [PATCH v3 2/2] iio: light: Add threshold interrupt support for STK3310 Tiberiu Breana
  0 siblings, 2 replies; 10+ messages in thread
From: Tiberiu Breana @ 2015-04-27 15:33 UTC (permalink / raw)
  To: linux-iio; +Cc: Jonathan Cameron, Peter Meerwald

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 v2:
- addressed Peter's comments
- changed integration_time_available's type to IIO_CONST_ATTR
- added scale_available attribute for proximity
- removed the stk3310_get_it_vals function
- added the STK3310_REGFIELD macro to reduce source code size

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 | 722 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 734 insertions(+)
 create mode 100644 drivers/iio/light/stk3310.c

-- 
1.9.1

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

end of thread, other threads:[~2015-06-02 22:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-27 15:33 [PATCH v3 0/2] Add support for Sensortek STK3310 Tiberiu Breana
2015-04-27 15:34 ` [PATCH v3 1/2] iio: light: " Tiberiu Breana
2015-05-07 22:40   ` Jonathan Cameron
2015-04-27 15:34 ` [PATCH v3 2/2] iio: light: Add threshold interrupt support for STK3310 Tiberiu Breana
2015-05-07 10:31   ` Jonathan Cameron
2015-05-20  9:46     ` Octavian Purdila
2015-05-22 17:54       ` Jonathan Cameron
2015-05-22 18:03         ` Jonathan Cameron
2015-06-02 20:47         ` Octavian Purdila
2015-06-02 22:17           ` Jonathan Cameron

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).