devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/8] Support ROHM KX134ACR-LBZ
@ 2024-11-21  8:19 Matti Vaittinen
  2024-11-21  8:19 ` [PATCH v2 1/8] iio: accel: kx022a: Improve reset delay Matti Vaittinen
                   ` (7 more replies)
  0 siblings, 8 replies; 20+ messages in thread
From: Matti Vaittinen @ 2024-11-21  8:19 UTC (permalink / raw)
  To: Matti Vaittinen, Matti Vaittinen
  Cc: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matti Vaittinen, linux-iio,
	devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2426 bytes --]

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.mazziesaccount@gmail.com/


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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2024-11-27 14:14 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-21  8:19 [PATCH v2 0/8] Support ROHM KX134ACR-LBZ Matti Vaittinen
2024-11-21  8:19 ` [PATCH v2 1/8] iio: accel: kx022a: Improve reset delay Matti Vaittinen
2024-11-23 16:34   ` Jonathan Cameron
2024-11-21  8:20 ` [PATCH v2 2/8] iio: gts: Simplify using __free Matti Vaittinen
2024-11-23 16:37   ` Jonathan Cameron
2024-11-25  9:16     ` Matti Vaittinen
2024-11-26 17:52       ` Jonathan Cameron
2024-11-27 14:14         ` Matti Vaittinen
2024-11-21  8:20 ` [PATCH v2 3/8] iio: accel: kx022a: Use cleanup.h helpers Matti Vaittinen
2024-11-23 16:42   ` Jonathan Cameron
2024-11-25  9:34     ` Matti Vaittinen
2024-11-26 17:55       ` Jonathan Cameron
2024-11-27 13:54         ` Matti Vaittinen
2024-11-21  8:20 ` [PATCH v2 4/8] iio: accel: kx022a: Support ICs with different G-ranges Matti Vaittinen
2024-11-21  8:20 ` [PATCH v2 5/8] dt-bindings: ROHM KX134ACR-LBZ Matti Vaittinen
2024-11-21  8:21 ` [PATCH v2 6/8] iio: kx022a: Support " Matti Vaittinen
2024-11-21  8:21 ` [PATCH v2 7/8] dt-bindings: iio: kx022a: Support KX134-1211 Matti Vaittinen
2024-11-21 19:55   ` Conor Dooley
2024-11-21  8:21 ` [PATCH v2 8/8] iio: accel: " Matti Vaittinen
2024-11-23 16:43   ` 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).