linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/4] iio: accel: adxl345: add calibration offset and sampling frequency support
@ 2018-06-30 16:32 Akinobu Mita
  2018-06-30 16:32 ` [PATCH v5 1/4] iio: accel: adxl345: add link to datasheet Akinobu Mita
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Akinobu Mita @ 2018-06-30 16:32 UTC (permalink / raw)
  To: linux-iio
  Cc: Akinobu Mita, Eva Rachel Retuya, Andy Shevchenko,
	Jonathan Cameron

This patchset adds calibration offset and sampling frequency support for
adxl345 driver with some preparatory changes.

* v5 (Suggested by Andy Shevchenko)
- Introduce constant for nHZ per HZ
- Find an register setting without looping over all available frequencies
- Allow all user supplied values and round to an available frequency

* v4 (Suggested by Jonathan Cameron)
- Stop abusing scan_index and keep using address field in iio_chan_spec

* v3 (Suggested by Andy Shevchenko)
- Define ADXL345_REG_DATA_AXIS(si) for cleaner register access
- Define ADXL345_REG_OSF_AXIS(si) for cleaner register access
- Calculate sampling frequency at runtime instead of having constant table

* v2
- Adjust the value for the calibbias to make the same scale as the _raw
  measurement, and remove misused calibscale.

Akinobu Mita (4):
  iio: accel: adxl345: add link to datasheet
  iio: accel: adxl345: convert address field usage in iio_chan_spec
  iio: accel: adxl345: add calibration offset support
  iio: accel: adxl345: add sampling frequency support

 drivers/iio/accel/adxl345_core.c | 121 +++++++++++++++++++++++++++++++++++----
 1 file changed, 110 insertions(+), 11 deletions(-)

Cc: Eva Rachel Retuya <eraretuya@gmail.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
-- 
2.7.4


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

end of thread, other threads:[~2018-07-07 16:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-30 16:32 [PATCH v5 0/4] iio: accel: adxl345: add calibration offset and sampling frequency support Akinobu Mita
2018-06-30 16:32 ` [PATCH v5 1/4] iio: accel: adxl345: add link to datasheet Akinobu Mita
2018-07-07 16:40   ` Jonathan Cameron
2018-06-30 16:32 ` [PATCH v5 2/4] iio: accel: adxl345: convert address field usage in iio_chan_spec Akinobu Mita
2018-06-30 16:32 ` [PATCH v5 3/4] iio: accel: adxl345: add calibration offset support Akinobu Mita
2018-06-30 16:32 ` [PATCH v5 4/4] iio: accel: adxl345: add sampling frequency support Akinobu Mita
2018-07-04 22:06   ` Andy Shevchenko
2018-07-06 16:08     ` Akinobu Mita
2018-07-07 16:40       ` Andy Shevchenko
2018-07-04 22:12 ` [PATCH v5 0/4] iio: accel: adxl345: add calibration offset and " Andy Shevchenko

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