Linux-IIO Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH v4 0/4] iio: add driver for ping))) and laserping sensors
@ 2019-11-25  8:03 Andreas Klinger
  0 siblings, 0 replies; only message in thread
From: Andreas Klinger @ 2019-11-25  8:03 UTC (permalink / raw)
  To: robh+dt, jic23, mark.rutland
  Cc: mripard, shawnguo, heiko, icenowy, laurent.pinchart, knaack.h,
	lars, pmeerw, gregkh, christophe.jaillet, tglx, mchehab+samsung,
	davem, paulmck, devicetree, linux-iio, linux-kernel

This patchset adds support for parallax PING))) and LaserPING sensors as
iio driver. The driver is derived from srf04 but the device is using only
one GPIO for both triggering and the echo.

Only patch 3/4 is sent out this time because the others remain unchanged.

Changes in v4:
Thanks to Julia for reporting a bug:
- fix mutex handling in ping_read()

Changes in v3:
Thanks to Jonathan who found another bug there are two small changes:
- fix inconsistent use of devm_request_irq() and free_irq()
- hold mutex until free_irq() is called

Changes in v2:
Thanks to the reviews of Jonathan, Rob and Michel there are some
improvements:
- optimize use of macros with to_platform_device() and
  of_device_get_match_data()
- change spacing and typos
- simplify ascii art timing diagram
- merge patch for driver and corresponding Kconfig and Makefile

Andreas Klinger (4):
  dt-bindings: add vendor prefix parallax
  dt-bindings: add parallax ping sensors
  iio: ping: add parallax ping sensors
  MAINTAINERS: add maintainer for ping iio sensors

 .../bindings/iio/proximity/parallax-ping.yaml      |  51 ++++
 .../devicetree/bindings/vendor-prefixes.yaml       |   2 +
 MAINTAINERS                                        |   7 +
 drivers/iio/proximity/Kconfig                      |  15 +
 drivers/iio/proximity/Makefile                     |   1 +
 drivers/iio/proximity/ping.c                       | 335 +++++++++++++++++++++
 6 files changed, 411 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/proximity/parallax-ping.yaml
 create mode 100644 drivers/iio/proximity/ping.c

-- 
2.11.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-25  8:03 [PATCH v4 0/4] iio: add driver for ping))) and laserping sensors Andreas Klinger

Linux-IIO Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-iio/0 linux-iio/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-iio linux-iio/ https://lore.kernel.org/linux-iio \
		linux-iio@vger.kernel.org
	public-inbox-index linux-iio

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-iio


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git