Skip to contentSkip to conversation

gp2ap020a00f ambient light/proximity sensor

PATCH Superseded Jacek Anaszewski 1 participant 1 message Aug 20, 2013 IIO

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v5 cover gp2ap020a00f ambient light/proximity sensor

This driver supports:
- reading channels in 'one shot' mode through read_raw callback,
- four events - rising and falling ambient light events and rising and falling proximity roc events.
- triggers for all the three channels (triggers can't be enabled simultaneosly with proximity detection event)

This is a follow-up of the previous series and it includes following improvements:
- switched over to "auto calculation" mode for ambient light measurement - it tells the device to automatically convert illuminance output value to lux units
- added checking if the event state to be set is legal
- removed superfluous !! on test_bit result assignment
- precluding enabling proximity events if any of the proximity thresholds isn't greater than 0
- precluding writing 0 to the proximity threshold value sysfs attributes
- got rid of the warning upon call to the iio_trigger_poll
- removed interrupt-parent property from DT bindings documentation file
- changed the description of the interrupts property in the DT binding documentation file

Thanks,
Jacek Anaszewski

Jacek Anaszewski (2):
DT: Add documentation for gp2ap020a00f sensor
iio: gp2ap020a00f: Add a driver for the device

 .../devicetree/bindings/iio/light/gp2ap020a00f.txt |   17 +
 drivers/iio/light/Kconfig                          |   12 +
 drivers/iio/light/Makefile                         |    1 +
 drivers/iio/light/gp2ap020a00f.c                   | 1446 ++++++++++++++++++++
 4 files changed, 1476 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/light/gp2ap020a00f.txt
 create mode 100644 drivers/iio/light/gp2ap020a00f.c
Signature · 1 line
1.7.5.4