Skip to content

Commit 94a9b7b

Browse files
Andreas Dannenbergjic23
authored andcommitted
iio: light: add support for TI's opt3001 light sensor
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 <[email protected]> Signed-off-by: Andreas Dannenberg <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 081d974 commit 94a9b7b

File tree

3 files changed

+815
-0
lines changed

3 files changed

+815
-0
lines changed

drivers/iio/light/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,16 @@ config LTR501
209209
This driver can also be built as a module. If so, the module
210210
will be called ltr501.
211211

212+
config OPT3001
213+
tristate "Texas Instruments OPT3001 Light Sensor"
214+
depends on I2C
215+
help
216+
If you say Y or M here, you get support for Texas Instruments
217+
OPT3001 Ambient Light Sensor.
218+
219+
If built as a dynamically linked module, it will be called
220+
opt3001.
221+
212222
config STK3310
213223
tristate "STK3310 ALS and proximity sensor"
214224
depends on I2C

drivers/iio/light/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ obj-$(CONFIG_ISL29125) += isl29125.o
1919
obj-$(CONFIG_JSA1212) += jsa1212.o
2020
obj-$(CONFIG_SENSORS_LM3533) += lm3533-als.o
2121
obj-$(CONFIG_LTR501) += ltr501.o
22+
obj-$(CONFIG_OPT3001) += opt3001.o
2223
obj-$(CONFIG_RPR0521) += rpr0521.o
2324
obj-$(CONFIG_SENSORS_TSL2563) += tsl2563.o
2425
obj-$(CONFIG_STK3310) += stk3310.o

0 commit comments

Comments
 (0)