devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] add support to STM HTS221 humidity + temperature sensor
@ 2016-10-13 20:06 Lorenzo Bianconi
       [not found] ` <1476389165-13542-1-git-send-email-lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Lorenzo Bianconi @ 2016-10-13 20:06 UTC (permalink / raw)
  To: jic23-DgEjT+Ai2ygdnm+yROfE0A
  Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, lorenzo.bianconi-qxv4g6HH51o

Changes since v3:
- fix trigger management according to how humidity and temperature samples
  are computed by the device
- define two separate calibration routines to improve code readability
- fix device tree binding
- move driver in humidity folder
- rename hts221_dev in hts221_hw
- code style fixes

Changes since v2:
- fix endianness issue in hts221_parse_caldata()
- make dev->buffer large enough to avoid the memcpy() in
  hts221_buffer_handler_thread()
- remove trigger top half routine and move timestamp sampling in
  hts221_buffer_handler_thread()
- use devm_iio_* routines to register iio_device/trigger and setup
  iio_triggered_buffer
- reduce spi max read/write size
- cosmetics

Changes since v1:
- use single iio_device for both humidity and temperature sensors
- use iio_claim_direct_mode() routine instead of grabbing the mutex directly
- use more unique prefix for all defines
- remove useless dev_info()
- use of_match_ptr instead of access directly to of_match_table
- use devm_iio_* routines
- use info_mask_shared_by_all element for sampling_frequency
- use oversampling ABI for humidityrelative_avg_sample and temp_avg_sample

Lorenzo Bianconi (2):
  iio: humidity: add support to hts221 rh/temp combo device
  Documentation: dt: iio: humidity: add hts221 sensor device binding

 .../devicetree/bindings/iio/humidity/hts221.txt    |  22 +
 drivers/iio/humidity/Kconfig                       |  22 +
 drivers/iio/humidity/Makefile                      |   7 +
 drivers/iio/humidity/hts221.h                      |  73 +++
 drivers/iio/humidity/hts221_buffer.c               | 168 +++++
 drivers/iio/humidity/hts221_core.c                 | 687 +++++++++++++++++++++
 drivers/iio/humidity/hts221_i2c.c                  | 110 ++++
 drivers/iio/humidity/hts221_spi.c                  | 125 ++++
 8 files changed, 1214 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/humidity/hts221.txt
 create mode 100644 drivers/iio/humidity/hts221.h
 create mode 100644 drivers/iio/humidity/hts221_buffer.c
 create mode 100644 drivers/iio/humidity/hts221_core.c
 create mode 100644 drivers/iio/humidity/hts221_i2c.c
 create mode 100644 drivers/iio/humidity/hts221_spi.c

-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-22 14:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-13 20:06 [PATCH v4 0/2] add support to STM HTS221 humidity + temperature sensor Lorenzo Bianconi
     [not found] ` <1476389165-13542-1-git-send-email-lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>
2016-10-13 20:06   ` [PATCH v4 1/2] iio: humidity: add support to hts221 rh/temp combo device Lorenzo Bianconi
     [not found]     ` <1476389165-13542-2-git-send-email-lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>
2016-10-22 14:35       ` Jonathan Cameron
2016-10-13 20:06   ` [PATCH v4 2/2] Documentation: dt: iio: humidity: add hts221 sensor device binding Lorenzo Bianconi
     [not found]     ` <1476389165-13542-3-git-send-email-lorenzo.bianconi-qxv4g6HH51o@public.gmane.org>
2016-10-18 14:00       ` Rob Herring
2016-10-22 14:37         ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).