Skip to content

iio: light: add support for TI's opt3001 light sensor

Andreas Dannenberg linux-devicetree linux-iio 1 version Applied

Status from this message: Applied to the togreg branch of iio.git.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 7 repliesApplied

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2iio: light: add support for TI's opt3001 light sensordrivers/iio/light/Kconfig drivers/iio/light/Makefile drivers/iio/light/opt3001.c+815 -03 replies
2/2iio: light: opt3001: Add device tree binding documentationDocumentation/devicetree/bindings/iio/light/opt3001.txt+18 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] 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.

Patch History:
v3
Add "ti,opt3001" device tree compatible string
Add device tree binding documentation
v2 (Addressing feedback from Peter Meerwald + additional fixes)
Fix restoring of IRQ mutex functionality in error case Use managed IIO device alloc/registration
Add parenthesis to improve formula readability
Fix error message number formatting
Improve integration time parameter checks
Clean up redundant return value assignments
Fix broken lookup table algorithm
Fix duplicate lookup table entry
Disallow writing of negative event values

The individual commits can be reviewed at:
http://git.ti.com/cgit/cgit.cgi/ti-analog-linux-kernel/adannenb-analog.git/log/?h=opt3001

 .../devicetree/bindings/iio/light/opt3001.txt      |  18 +
 drivers/iio/light/Kconfig                          |  10 +
 drivers/iio/light/Makefile                         |   1 +
 drivers/iio/light/opt3001.c                        | 804 +++++++++++++++++++++
 4 files changed, 833 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/light/opt3001.txt
 create mode 100644 drivers/iio/light/opt3001.c
Signature · 1 line
1.9.1