gp2ap020a00f ambient light/proximity sensor
v6 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:
- brought back gp2ap020a00f_adjust_lux_mode function that adjustes maximum measurable range for the ALS unit
- implemented gp2ap020a00f_output_to_lux function for calculating output value when in high lux mode
- dropped setting a default trigger in the driver
- added description justifying presence of the vled-supply property in the DT node for the device
- 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 | 21 + drivers/iio/light/Kconfig | 12 + drivers/iio/light/Makefile | 1 + drivers/iio/light/gp2ap020a00f.c | 1519 ++++++++++++++++++++ 4 files changed, 1553 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