linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] iio: bmp280: improve driver
@ 2016-06-19 18:33 Linus Walleij
  2016-06-19 18:33 ` [PATCH 1/9] iio: pressure: bmp280: augment DT bindings Linus Walleij
                   ` (10 more replies)
  0 siblings, 11 replies; 18+ messages in thread
From: Linus Walleij @ 2016-06-19 18:33 UTC (permalink / raw)
  To: Jonathan Cameron, linux-iio
  Cc: Akinobu Mita, Christoph Mair, Vlad Dogaru, Hartmut Knaack,
	Marek Belisko, H. Nikolaus Schaller, Eric Andersson, Neil Brown,
	Linus Walleij

The goal of the original exercise to enable the driver for my
Dragonboard expanded when I found the *second* driver for this
sensor in drivers/misc/bmp085.

So I wrote a patch series to bring the features of the IIO driver
on par with the misc driver, and beyond it:

- The first patch set stuff augmenting DT bindings and adding
  regulators and a reset GPIO.

- Split transport from core driver (separate I2C module)

- Added SPI support (which I cannot test, grateful for any help,
  but pretty sure it works).

- Support for the BMP085 EOC interrupt mechanism rather than
  waiting for the conversion to happen.

- Do not re-read calibration data all the time, also toss the
  calibration into the entropy pool.

After this I think the misc driver can be replaced with this
driver, but I'd love to hear from the maintainers of that driver
if I've missed something. One of the patches adds all the authors
of the misc driver listed there as I can clearly see code was
copied into this driver at several points.

The only thing missing from the misc driver is the sysfs
interface. If there is real userspace out there using it, we
can implement a compatibility sysfs ABI. But then I'd like
to know what userspace it is, so I can test it.

Linus Walleij (9):
  iio: pressure: bmp280: augment DT bindings
  iio: pressure: bmp280: support device tree initialization
  iio: pressure: bmp280: add reset GPIO line handling
  iio: pressure: bmp280: support optional supply regulators
  iio: pressure: bmp280: split driver in logical parts
  iio: pressure: bmp280: split off an I2C Kconfig entry
  iio: pressure: bmp280: add SPI interface driver
  iio: pressure: bmp280: add support for the BMP058 EOC interrupt
  iio: pressure: bmp280: read calibration data once

 .../devicetree/bindings/iio/pressure/bmp085.txt    |  11 +-
 drivers/iio/pressure/Kconfig                       |  27 +-
 drivers/iio/pressure/Makefile                      |   3 +
 drivers/iio/pressure/{bmp280.c => bmp280-core.c}   | 428 ++++++++-------------
 drivers/iio/pressure/bmp280-i2c.c                  |  79 ++++
 drivers/iio/pressure/bmp280-regmap.c               |  78 ++++
 drivers/iio/pressure/bmp280-spi.c                  |  79 ++++
 drivers/iio/pressure/bmp280.h                      |  86 +++++
 8 files changed, 526 insertions(+), 265 deletions(-)
 rename drivers/iio/pressure/{bmp280.c => bmp280-core.c} (70%)
 create mode 100644 drivers/iio/pressure/bmp280-i2c.c
 create mode 100644 drivers/iio/pressure/bmp280-regmap.c
 create mode 100644 drivers/iio/pressure/bmp280-spi.c
 create mode 100644 drivers/iio/pressure/bmp280.h

-- 
2.4.11


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

end of thread, other threads:[~2016-06-25 10:27 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-19 18:33 [PATCH 0/9] iio: bmp280: improve driver Linus Walleij
2016-06-19 18:33 ` [PATCH 1/9] iio: pressure: bmp280: augment DT bindings Linus Walleij
2016-06-19 18:33 ` [PATCH 2/9] iio: pressure: bmp280: support device tree initialization Linus Walleij
2016-06-19 18:33 ` [PATCH 3/9] iio: pressure: bmp280: add reset GPIO line handling Linus Walleij
2016-06-19 18:33 ` [PATCH 4/9] iio: pressure: bmp280: support optional supply regulators Linus Walleij
2016-06-19 18:33 ` [PATCH 5/9] iio: pressure: bmp280: split driver in logical parts Linus Walleij
2016-06-19 18:33 ` [PATCH 6/9] iio: pressure: bmp280: split off an I2C Kconfig entry Linus Walleij
2016-06-19 18:34 ` [PATCH 7/9] iio: pressure: bmp280: add SPI interface driver Linus Walleij
2016-06-20 11:06   ` Akinobu Mita
2016-06-22 19:04     ` Linus Walleij
2016-06-25 10:27       ` Akinobu Mita
2016-06-19 18:34 ` [PATCH 8/9] iio: pressure: bmp280: add support for the BMP058 EOC interrupt Linus Walleij
2016-06-20  4:58   ` H. Nikolaus Schaller
2016-06-19 18:34 ` [PATCH 9/9] iio: pressure: bmp280: read calibration data once Linus Walleij
2016-06-20  4:56 ` [PATCH 0/9] iio: bmp280: improve driver H. Nikolaus Schaller
2016-06-22  7:31 ` Matt Ranostay
2016-06-22 15:18   ` Linus Walleij
2016-06-22 19:15     ` Linus Walleij

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).