Skip to content

Commit 995863c

Browse files
Kuppuswamy Sathyanarayananjic23
authored andcommitted
iio: jsa1212: Add JSA1212 proximity/ALS sensor
This patch adds a new driver for solteam opto JSA1212 proximity and ambient light sensor. Basic details of the chip can be found here. http://www.solteamopto.com.tw/detail.php?ms=3&po_unit=2&pt_unit=29&p_unit=120 Signed-off-by: Kuppuswamy Sathyanarayanan <[email protected]> Signed-off-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 5e62863 commit 995863c

File tree

3 files changed

+482
-0
lines changed

3 files changed

+482
-0
lines changed

drivers/iio/light/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ config HID_SENSOR_PROX
109109
To compile this driver as a module, choose M here: the
110110
module will be called hid-sensor-prox.
111111

112+
config JSA1212
113+
tristate "JSA1212 ALS and proximity sensor driver"
114+
depends on I2C
115+
help
116+
Say Y here if you want to build a IIO driver for JSA1212
117+
proximity & ALS sensor device.
118+
119+
To compile this driver as a module, choose M here:
120+
the module will be called jsa1212.
121+
112122
config SENSORS_LM3533
113123
tristate "LM3533 ambient light sensor"
114124
depends on MFD_LM3533

drivers/iio/light/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ obj-$(CONFIG_GP2AP020A00F) += gp2ap020a00f.o
1212
obj-$(CONFIG_HID_SENSOR_ALS) += hid-sensor-als.o
1313
obj-$(CONFIG_HID_SENSOR_PROX) += hid-sensor-prox.o
1414
obj-$(CONFIG_ISL29125) += isl29125.o
15+
obj-$(CONFIG_JSA1212) += jsa1212.o
1516
obj-$(CONFIG_SENSORS_LM3533) += lm3533-als.o
1617
obj-$(CONFIG_LTR501) += ltr501.o
1718
obj-$(CONFIG_SENSORS_TSL2563) += tsl2563.o

0 commit comments

Comments
 (0)