Skip to content

Commit

Permalink
iio:light: Add support for STMicro VL6180 sensor
Browse files Browse the repository at this point in the history
This patch adds support for STMicro VL6180 - ALS, range and proximity sensor. Sensor is capable of measuring the light
intensity as well as object distance using TOF (Time of Flight) technology.

Signed-off-by: Manivannan Sadhasivam <manivannanece23@gmail.com>
Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Manivannan Sadhasivam authored and Jonathan Cameron committed Mar 25, 2017
1 parent e29e7b3 commit 5e7f47e
Show file tree
Hide file tree
Showing 4 changed files with 569 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Documentation/devicetree/bindings/iio/light/vl6180.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
STMicro VL6180 - ALS, range and proximity sensor

Link to datasheet: http://www.st.com/resource/en/datasheet/vl6180x.pdf

Required properties:

-compatible: should be "st,vl6180"
-reg: the I2C address of the sensor

Example:

vl6180@29 {
compatible = "st,vl6180";
reg = <0x29>;
};
10 changes: 10 additions & 0 deletions drivers/iio/light/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,14 @@ config VEML6070
To compile this driver as a module, choose M here: the
module will be called veml6070.

config VL6180
tristate "VL6180 ALS, range and proximity sensor"
depends on I2C
help
Say Y here if you want to build a driver for the STMicroelectronics
VL6180 combined ambient light, range and proximity sensor.

To compile this driver as a module, choose M here: the
module will be called vl6180.

endmenu
1 change: 1 addition & 0 deletions drivers/iio/light/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ obj-$(CONFIG_TSL4531) += tsl4531.o
obj-$(CONFIG_US5182D) += us5182d.o
obj-$(CONFIG_VCNL4000) += vcnl4000.o
obj-$(CONFIG_VEML6070) += veml6070.o
obj-$(CONFIG_VL6180) += vl6180.o
Loading

0 comments on commit 5e7f47e

Please sign in to comment.