linux/drivers/iio/proximity
Gwendal Grignou 4c18a890df iio:proximity:sx9324: Add SX9324 support
Semtech SAR sensor SX9324 is an evolution of the SX9310:
It has 4 phases that can be configured to capture and process data
from any of 3 CS pins and provide independent detection:
proximity, table proximity or body proximity.

Gather antenna data:
  echo sx9324-dev3 > trigger/current_trigger
  echo 1 > scan_elements/in_proximity0_en
  echo 1 > buffer/enable
  od -v -An --endian=big -t d2 -w2 /dev/iio\:device3
  (at 10Hz, the default).

Trigger events:
Setting:
  thresh_falling_period: 2 (events)
  thresh_rising_period: 2 (events)
  in_proximity0_thresh_either_value: 300
  in_proximity0_thresh_either_hysteresis: 72

using iio_event_monitor /dev/iio\:deviceX, approaching my hand to the
antenna pad, I see:
...
Event: time: 1634763907532035297, type: proximity, channel: 0, evtype:
thresh, direction: falling
Event: time: 1634763910138104640, type: proximity, channel: 0, evtype:
thresh, direction: rising
...

Datasheet: https://edit.wpgdadawant.com/uploads/news_file/program/2019/30184/tech_files/program_30184_suggest_other_file.pdf
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20220101203817.290512-4-gwendal@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-01-23 18:03:33 +00:00
..
as3935.c iio: as3935: Remove unnecessary cast 2021-12-16 16:34:54 +00:00
cros_ec_mkbp_proximity.c iio: proximity: Add a ChromeOS EC MKBP proximity driver 2021-03-25 19:13:50 +00:00
isl29501.c iio: prox: isl29501: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-06-16 14:53:13 +01:00
Kconfig iio:proximity:sx9324: Add SX9324 support 2022-01-23 18:03:33 +00:00
Makefile iio:proximity:sx9324: Add SX9324 support 2022-01-23 18:03:33 +00:00
mb1232.c iio:proximity:mb1232: Fix timestamp alignment and prevent data leak. 2020-08-22 11:38:54 +01:00
ping.c iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
pulsedlight-lidar-lite-v2.c iio: prox: pulsed-light-v2: Use pm_runtime_resume_and_get() 2021-06-16 14:53:13 +01:00
rfd77402.c iio: proximity: rfd77402: convert probe to device-managed functions 2021-07-17 18:49:30 +01:00
srf04.c iio: proximity: srf04: Use pm_runtime_resume_and_get() and handle error 2021-05-17 13:54:27 +01:00
srf08.c iio: prox: srf08: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-05-17 13:54:29 +01:00
sx9310.c iio:proximity:sx9310: Extract common Semtech sensor logic 2022-01-23 18:03:33 +00:00
sx9324.c iio:proximity:sx9324: Add SX9324 support 2022-01-23 18:03:33 +00:00
sx9500.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
sx_common.c iio:proximity:sx9310: Extract common Semtech sensor logic 2022-01-23 18:03:33 +00:00
sx_common.h iio:proximity:sx9310: Extract common Semtech sensor logic 2022-01-23 18:03:33 +00:00
vcnl3020.c iio: proximity: vcnl3020: remove iio_claim/release_direct 2021-07-24 16:07:17 +01:00
vl53l0x-i2c.c iio: proximity: vl53l0x-i2c add i2c_device_id 2020-11-01 15:28:32 +00:00