Skip to content

Commit

Permalink
iio: light: add support for TI's opt3001 light sensor
Browse files Browse the repository at this point in the history
TI's opt3001 light sensor is a simple and yet powerful
little device. The device provides 99% IR rejection,
automatic full-scale, very low power consumption and
measurements from 0.01 to 83k lux.

This patch adds support for that device using the IIO
framework.

See http://www.ti.com/product/opt3001 for more information.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Andreas Dannenberg authored and Jonathan Cameron committed Jul 20, 2015
1 parent 081d974 commit 94a9b7b
Show file tree
Hide file tree
Showing 3 changed files with 815 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/iio/light/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,16 @@ config LTR501
This driver can also be built as a module. If so, the module
will be called ltr501.

config OPT3001
tristate "Texas Instruments OPT3001 Light Sensor"
depends on I2C
help
If you say Y or M here, you get support for Texas Instruments
OPT3001 Ambient Light Sensor.

If built as a dynamically linked module, it will be called
opt3001.

config STK3310
tristate "STK3310 ALS and proximity sensor"
depends on I2C
Expand Down
1 change: 1 addition & 0 deletions drivers/iio/light/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ obj-$(CONFIG_ISL29125) += isl29125.o
obj-$(CONFIG_JSA1212) += jsa1212.o
obj-$(CONFIG_SENSORS_LM3533) += lm3533-als.o
obj-$(CONFIG_LTR501) += ltr501.o
obj-$(CONFIG_OPT3001) += opt3001.o
obj-$(CONFIG_RPR0521) += rpr0521.o
obj-$(CONFIG_SENSORS_TSL2563) += tsl2563.o
obj-$(CONFIG_STK3310) += stk3310.o
Expand Down
Loading

0 comments on commit 94a9b7b

Please sign in to comment.