|
|
Log in / Subscribe / Register

Support ROHM KX134ACR-LBZ

From:  Matti Vaittinen <mazziesaccount-AT-gmail.com>
To:  Matti Vaittinen <mazziesaccount-AT-gmail.com>, Matti Vaittinen <matti.vaittinen-AT-fi.rohmeurope.com>
Subject:  [PATCH v2 0/8] Support ROHM KX134ACR-LBZ
Date:  Thu, 21 Nov 2024 10:19:23 +0200
Message-ID:  <cover.1732105157.git.mazziesaccount@gmail.com>
Cc:  Jonathan Cameron <jic23-AT-kernel.org>, Lars-Peter Clausen <lars-AT-metafoo.de>, Rob Herring <robh-AT-kernel.org>, Krzysztof Kozlowski <krzk+dt-AT-kernel.org>, Conor Dooley <conor+dt-AT-kernel.org>, Matti Vaittinen <mazziesaccount-AT-gmail.com>, linux-iio-AT-vger.kernel.org, devicetree-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org
Archive-link:  Article

This patch series introduces support for ROHM KX134ACR-LBZ and
KX134-1211 accelerometers.

The KX134ACR-LBZ is almost identical to the KX132ACR-LBZ. Similarly the
KX134-1211 is almost identical to the KX132-1211. The differencies
visible to the driver are different g-ranges and the "Who am I"
-identification register's values.

This series does also convert parts of the GTS helpers and the kx022a
driver to use __cleanup - based scoped free/unlock operations, and fixes
the value of required wait time after sensor reset. The wait time value
fixup is cosmetic/documentational, as the time that has been slept has
likely been larger than required due to the msleep() implementation.

Revision history:
v1 => v2:
 - Rebased on iio-fixes to avoid conflicts with queued fixes.
 - Added the reset delay change to the series to avoid conflicts. Was
   previously sent as an individual patch:
   https://lore.kernel.org/all/ZzWfXbjaDkFnu_Jg@mva-rohm/
 - Added support for kx134-1211

The v1 can be found from:
https://lore.kernel.org/all/cover.1731495937.git.mazziesa...


The patch 1/8 is the delay fixup mentioned above.

The patch 2/8 contains GTS helper change, which is independent from the
rest of the series. It can be applied/rejected independently.

Patch 3/8 changes kx022a to use scoped mutexes. It can also be applied
as an independent improvement even if the kx134acr-lbz support was not
added.

Patch 4/8 adds mechanisms for supporting sensors with different
g-ranges in the kx022a driver.

5-8/8 add support for new hardware, kx134acr-lbz and kx134-1211.

---

Matti Vaittinen (8):
  iio: accel: kx022a: Improve reset delay
  iio: gts: Simplify using __free
  iio: accel: kx022a: Use cleanup.h helpers
  iio: accel: kx022a: Support ICs with different G-ranges
  dt-bindings: ROHM KX134ACR-LBZ
  iio: kx022a: Support ROHM KX134ACR-LBZ
  dt-bindings: iio: kx022a: Support KX134-1211
  iio: accel: kx022a: Support KX134-1211

 .../bindings/iio/accel/kionix,kx022a.yaml     |  11 +-
 drivers/iio/accel/kionix-kx022a-i2c.c         |   4 +
 drivers/iio/accel/kionix-kx022a-spi.c         |   4 +
 drivers/iio/accel/kionix-kx022a.c             | 170 ++++++++++++------
 drivers/iio/accel/kionix-kx022a.h             |   6 +
 drivers/iio/industrialio-gts-helper.c         |  19 +-
 6 files changed, 147 insertions(+), 67 deletions(-)

-- 
2.47.0


Attachment: signature.asc (type=application/pgp-signature)

-----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmc+7QYACgkQeFA3/03a ocUxdgf/WIjdPxRbMVlVfOS1RcZcxBagWdrHGmSaHVbs1fc5gDm3E/VcxO/JNBR5 kYhooddWQ1z/8zixVa9rAoXzP5j34b2PfvYuOTAVynUJ0TAsouNMbAosZ6dKhbN2 I1sxIR8lzpzXikv/VIQG9rv3nd8FUi/i5b2oKOS+081ifyydQyr5JImUigg6Iwf4 6sdUgksO8ZABXEvOiFU/KdSEzlfK1KUFLK905OCK2CthHn/DxhUycmzVw+JIz/85 YeFhEwFawGY2YhsuVqmvKMAzjuP6B9RiR3AimSmDjmWJcDLmKs5gIs1xsHJwpTFU m94x26ADD2VZkLSlMXCfJq0xnaqNHg== =dyFF -----END PGP SIGNATURE-----


Copyright © 2024, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds