iio: light: add driver for MAX44009
authorRobert Eshleman <bobbyeshleman@gmail.com>
Thu, 31 Jan 2019 15:29:01 +0000 (07:29 -0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 2 Feb 2019 15:47:46 +0000 (15:47 +0000)
commit6aef699a7d7e53164eaac54da57012c8440f1485
treefec0eebcb8519fae9947bc35d7c63de2d6533808
parentb64d97300888a51b0c122e96457faa7059b6987b
iio: light: add driver for MAX44009

The MAX44009 is a low-power ambient light sensor from Maxim
Integrated. It differs from the MAX44000 in that it doesn't have
proximity sensing and that it requires far less current (1 micro-amp
vs 5 micro-amps). The register mapping and feature set between the
two are different enough to require a new driver for the MAX44009.

Developed and tested with a BeagleBone Black and UDOO Neo (i.MX6SX)

Supported features:

* Reading lux (processed value)

* Rising and falling illuminance threshold
  events

* Configuring integration time

https://datasheets.maximintegrated.com/en/ds/MAX44009.pdf

Signed-off-by: Robert Eshleman <bobbyeshleman@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/Kconfig
drivers/iio/light/Makefile
drivers/iio/light/max44009.c [new file with mode: 0644]