Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v3 0/2] iio: magnetometer: add support for Si7210
@ 2025-01-12 10:44 Antoni Pokusinski
  2025-01-12 10:44 ` [PATCH v3 1/2] dt-bindings: iio: magnetometer: add binding " Antoni Pokusinski
  2025-01-12 10:44 ` [PATCH v3 2/2] iio: magnetometer: si7210: add driver " Antoni Pokusinski
  0 siblings, 2 replies; 10+ messages in thread
From: Antoni Pokusinski @ 2025-01-12 10:44 UTC (permalink / raw)
  To: jic23, lars, robh, krzk+dt, conor+dt, andrej.skvortzov,
	neil.armstrong, icenowy, megi, danila, javier.carrasco.cruz, andy
  Cc: apokusinski01, linux-kernel, linux-iio, devicetree

This patch series adds support for the Si7210 Hall effect I2C sensor.
The driver currently supports the basic functionalities (i.e. making
temperature and magnetic field measurements and changing the
measurements scale) but I plan to add support for some other features in
the future as well (e.g. the digital output interrupt).

---
Changes since v2:
* Makefile: fix alignment
* si7210: fetch_measurement: use temporary variable to read the
measurement instead of reading directly to `buf`
* si7210: read_raw: change `tmp` to `temp`
* si7210: read_raw: adjust temperature computation to match the spec better
* si7210: device_wake: do not init `ret` to 0
* si7210: MODULE_LICENSE: change license type to GPL
* si7210: minor improvements in comments

Changes since v1:
* dt-binding: add `vdd-supply`
* si7210: reorder includes in alphabetic order
* si7210: add comment for `fetch_lock`
* si7210: remove `otp_lock`
* si7210: fetch_measurement: change result type to __be16
* si7210: use guard(mutex) instead of scoped_guard
* si7210: read_raw: use FIELD_GET to get raw temperature value
* si7210: read_raw: return temperature in milli-celsius
* si7210: use regulator for getting the voltage
* si7210: si7210_device_wake: remove unnecessary cast
* si7210: si7210_device_init: use fsleep instead of usleep_range
* si7210: si7210_probe: remove i2c_set_clientdata()
* si7210: minor alignment and formatting fixes

Antoni Pokusinski (2):
  dt-bindings: iio: magnetometer: add binding for Si7210
  iio: magnetometer: si7210: add driver for Si7210

 .../iio/magnetometer/silabs,si7210.yaml       |  48 ++
 drivers/iio/magnetometer/Kconfig              |  11 +
 drivers/iio/magnetometer/Makefile             |   2 +
 drivers/iio/magnetometer/si7210.c             | 428 ++++++++++++++++++
 4 files changed, 489 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/silabs,si7210.yaml
 create mode 100644 drivers/iio/magnetometer/si7210.c

-- 
2.25.1


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

end of thread, other threads:[~2025-01-15 14:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-12 10:44 [PATCH v3 0/2] iio: magnetometer: add support for Si7210 Antoni Pokusinski
2025-01-12 10:44 ` [PATCH v3 1/2] dt-bindings: iio: magnetometer: add binding " Antoni Pokusinski
2025-01-12 14:39   ` Jonathan Cameron
2025-01-12 10:44 ` [PATCH v3 2/2] iio: magnetometer: si7210: add driver " Antoni Pokusinski
2025-01-12 14:18   ` Andy Shevchenko
2025-01-13 22:19     ` Antoni Pokusinski
2025-01-14  9:43       ` Andy Shevchenko
2025-01-14 23:53         ` Antoni Pokusinski
2025-01-15 14:53           ` Andy Shevchenko
2025-01-12 14:54   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox