devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Add support for AF8133J magnetometer
@ 2024-02-12 17:53 Ondřej Jirman
  2024-02-12 17:53 ` [PATCH v2 1/4] dt-bindings: vendor-prefix: Add prefix for Voltafield Ondřej Jirman
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Ondřej Jirman @ 2024-02-12 17:53 UTC (permalink / raw)
  To: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Andrey Skvortsov
  Cc: Ondrej Jirman, Icenowy Zheng, Dalton Durst, Shoji Keita,
	linux-iio, devicetree, linux-kernel

From: Ondrej Jirman <megi@xff.cz>

This series adds support for AF8133J magnetometer sensor. It's a simple
3-axis sensor with two sensitivity options and not much else to it.

This sensor is used on both Pinephone and Pinephone Pro. DT patches
adding it will come later, once this driver is merged.

Please take a look. :)

Thank you very much,
	Ondřej Jirman

v2:
- move maintainers patch to the end of series
- bindings:
  - fix compatible definition in bindings file
  - require power supplies
  - fix descriptions
- driver:
  - sort includes
  - rework RPM, the driver should now work with RPM disabled
    among other improvements
    - I've tested RPM left and right doing device bind/unbind under
      various conditions, system suspend under various conditions,
      etc.
  - use scoped_guard for mutexes
  - use devm for power down and handle power down correctly with both
    RPM enabled/disabled without tracking power state in data->powered
  - fix issue with changing scale while RPM suspended
  - various code formatting issues resolved
- as for sign-offs, I've added co-developed-by for people I know for
  sure worked on the driver, and left other tags as they were when
  I picked up the patch 2 years ago to my Linux branch

Icenowy Zheng (3):
  dt-bindings: vendor-prefix: Add prefix for Voltafield
  dt-bindings: iio: magnetometer: Add Voltafield AF8133J
  iio: magnetometer: add a driver for Voltafield AF8133J magnetometer

Ondrej Jirman (1):
  MAINTAINERS: Add an entry for AF8133J driver

 .../iio/magnetometer/voltafield,af8133j.yaml  |  60 ++
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 MAINTAINERS                                   |   6 +
 drivers/iio/magnetometer/Kconfig              |  12 +
 drivers/iio/magnetometer/Makefile             |   1 +
 drivers/iio/magnetometer/af8133j.c            | 528 ++++++++++++++++++
 6 files changed, 609 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/voltafield,af8133j.yaml
 create mode 100644 drivers/iio/magnetometer/af8133j.c

-- 
2.43.0


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

end of thread, other threads:[~2024-02-16 17:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-12 17:53 [PATCH v2 0/4] Add support for AF8133J magnetometer Ondřej Jirman
2024-02-12 17:53 ` [PATCH v2 1/4] dt-bindings: vendor-prefix: Add prefix for Voltafield Ondřej Jirman
2024-02-12 17:53 ` [PATCH v2 2/4] dt-bindings: iio: magnetometer: Add Voltafield AF8133J Ondřej Jirman
2024-02-13 19:23   ` Conor Dooley
2024-02-12 17:53 ` [PATCH v2 3/4] iio: magnetometer: add a driver for Voltafield AF8133J magnetometer Ondřej Jirman
2024-02-13 21:21   ` Andrey Skvortsov
2024-02-14 16:38     ` Jonathan Cameron
2024-02-14 20:04       ` Andrey Skvortsov
2024-02-14 17:01   ` Jonathan Cameron
2024-02-14 17:43     ` Ondřej Jirman
2024-02-16 15:39       ` Jonathan Cameron
2024-02-16 17:54         ` Ondřej Jirman
2024-02-12 17:53 ` [PATCH v2 4/4] MAINTAINERS: Add an entry for AF8133J driver Ondřej Jirman

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