Skip to content

Added LTR501 Interrupt support

Kuppuswamy Sathyanarayanan linux-iio 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 8 repliesIn review
  2. v45 patches 8 repliesSuperseded
  3. v36 patches 8 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches2 repliesSuperseded
v13 patches17 repliesSuperseded

Changes in v5 from the cover letter

1. Added const qualifier for sampling table, it table & reg_field variables.
2. Rebased patches on top of Daniel's checkpatch fix.
3. Renamed rate variable to sampling_period.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5iio: ltr501: Add regmap support.drivers/iio/light/ltr501.c+86 -431 reply
2/5iio: ltr501: Add integration time supportdrivers/iio/light/ltr501.c+89 -12 replies
3/5iio: ltr501: Add interrupt supportdrivers/iio/light/ltr501.c+313 -62 replies
4/5iio: ltr501: Add interrupt rate control supportdrivers/iio/light/ltr501.c+406 -72 replies
5/5iio: ltr501: Add ACPI enumeration supportdrivers/iio/light/ltr501.c+8 -01 reply

Reviews trailers per patch

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

Read the v5 thread

Cover letter [PATCH v5 0/5] Added LTR501 Interrupt support

This patchset adds Integration time, sampling frequency, interrupt and acpi enumeration support for LTR-501 chip.

Please let me know your review comments.

v1:
1. Added support to enable ALS & PS intterupts based on threshold settings.
2. Added support to control intrrupt rate.
3. Added acpi enumeration support.

v2:
1. Removed persistance attribute from ext_channel and added support for IIO_EV_INFO_PERIOD.
2. Rebased my patches on top of Daniel's alignment fix.

v3:
1. Added a new ABI to define threshold interrupt persistence filter value.
2. Added Documentation for persistence filter iio ABI
3. Used IIO_EV_INFO_PERSISTENCE instead of IIO_EV_INFO_PERIOD in ltr501 driver.

v4:
1. Added regmap support to handle register bitwise updates easily.
2. Added support to change integration time from user code.
3. Modified threshold interrupt persistence code to use IIO_EV_INFO_PERIOD values.
4. Added support to change sampling frequency from user code
5. Addressed Jonathan's comments

v5:
1. Added const qualifier for sampling table, it table & reg_field variables.
2. Rebased patches on top of Daniel's checkpatch fix.
3. Renamed rate variable to sampling_period.

Kuppuswamy Sathyanarayanan (5):
iio: ltr501: Add regmap support.
iio: ltr501: Add integration time support
iio: ltr501: Add interrupt support
iio: ltr501: Add interrupt rate control support
iio: ltr501: Add ACPI enumeration support

 drivers/iio/light/ltr501.c | 945 ++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 895 insertions(+), 50 deletions(-)
Signature · 1 line
1.9.1