Skip to content

AS3935 lightning sensor support

Matt Ranostay linux-devicetree linux-iio lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest2 patches 4 repliesIn review
  2. v72 patches 3 repliesSuperseded
  3. v62 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v42 patches7 repliesSuperseded

Changes in v8 from the cover letter

* Added IIO_CHAN_INFO_PROCESSED to report back meter converted
* Storm out-of-range is reported as -EINVAL instead of mystery value 63000
* Fixed error unwinding order in as3935_probe()
* Renamed value gain_boot attribute to sensor_sensitivity

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iio:as3935: Add DT binding docs for AS3935 driverDocumentation/devicetree/bindings/iio/proximity/as3935.txt Documentation/devicetree/bindings/vendor-prefixes.txt+29 -02 replies
2/2iio: Add AS3935 lightning sensor supportDocumentation/ABI/testing/sysfs-bus-iio-proximity-as3935 drivers/iio/Kconfig drivers/iio/Makefile +3 more+499 -02 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchRob HerringMarek Vasut
1/2A-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH v8 0/2] AS3935 lightning sensor support

This series adds support for the AMS AS3935 lightning sensor that allows reporting back estimated storm distance and strike events.

Changes from v7

* Added IIO_CHAN_INFO_PROCESSED to report back meter converted
* Storm out-of-range is reported as -EINVAL instead of mystery value 63000
* Fixed error unwinding order in as3935_probe()
* Renamed value gain_boot attribute to sensor_sensitivity

Changes from v6

* Revised binding documents to not use the term "interrupts mapping"
* Renamed tune-cap property to a more clear tuning-capacitor-pf

Changes from v5

* SPI write cache-aligned issues fixed
* Fixed mutex_unlock's being missed
* Reports distance in meters instead of kilometers (1km steps)
* tune_cap is now in picofarads and not a register value

Matt Ranostay (2):
iio:as3935: Add DT binding docs for AS3935 driver
iio: Add AS3935 lightning sensor support

 .../ABI/testing/sysfs-bus-iio-proximity-as3935     |  16 +
 .../devicetree/bindings/iio/proximity/as3935.txt   |  28 ++
 .../devicetree/bindings/vendor-prefixes.txt        |   1 +
 drivers/iio/Kconfig                                |   1 +
 drivers/iio/Makefile                               |   1 +
 drivers/iio/proximity/Kconfig                      |  19 +
 drivers/iio/proximity/Makefile                     |   6 +
 drivers/iio/proximity/as3935.c                     | 456 +++++++++++++++++++++
 8 files changed, 528 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-proximity-as3935
 create mode 100644 Documentation/devicetree/bindings/iio/proximity/as3935.txt
 create mode 100644 drivers/iio/proximity/Kconfig
 create mode 100644 drivers/iio/proximity/Makefile
 create mode 100644 drivers/iio/proximity/as3935.c
Signature · 1 line
1.8.3.2