iio: magnetometer: add driver for QST QMC5883L Sensor
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 2 repliesIn review
- v23 patches 3 repliesSuperseded
Changes in v3 from the cover letter
- Add trailing commas at list endings
- Rename regmap to map in multiple places
- Add and reorder header includes
- Update POR time comment
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | dt-bindings: add entry for qstcorpDocumentation/ | +2 | 0 replies | |
| 2/3 | dt-bindings: iio: magnetometer: add QST QMC5883L SensorDocumentation/ MAINTAINERS | +58 | 0 replies | |
| 3/3 | iio: magnetometer: add driver for QST QMC5883L SensorMAINTAINERS drivers/ drivers/ +1 more | +531 | 2 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Conor Dooley | Andy Shevchenko |
|---|---|---|
| 1/3 | A-b | |
| 2/3 | R-b | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/3] iio: magnetometer: add driver for QST QMC5883L Sensor
This patch series introduces the QST QMC5883L 3-Axis Magnetic Sensor driver. It is a simple device with minimal magnetometer functionalities. Commonly used as (software incompatible) replacement for the Honeywell HMC5883L sensor.
This driver implements the basic functionalities of the QMC5883L sensor, and intentionally leaves out some features like DRDY interrupt pin support and power management for simplicity, both of which will be addressed in future patches.
There was an attempt to introduce this device about an year ago but the author seems to have abandoned the patch series. Since the device is simple enough, I decided to start from scratch.
Note: I also noticed a patch for the QMC5883P variant. Despite similar naming, the sensors are different including different register maps, so these devices are not compatible with each other.
---
Changes in v3:
- Add trailing commas at list endings
- Rename regmap to map in multiple places
- Add and reorder header includes
- Update POR time comment
Changes in v2:
- Update commit message in binding.
- Reformat header includes.
- Remove iio_device_claim_direct()/iio_device_release_direct()
- Read the measurement registers before checking the OVL status bit
- Replace scoped_guard() with guard()
- Fix function parameter styling
- Replace FIELD_PREP_CONST() with FIELD_PREP()
- Replace qmc5883l_rng_avail[] with a 2D qmc5883l_scales[][2] array
- Update mutex comment
- Add a devm_add_action_or_reset() callback
- Use a named initializer in the i2c_device_id table
- Combine u8 rng, osr, odr; onto one line
- Various styling fixes
- Update maintainer email to [email protected]
Link to v2: https://lore.kernel.org/linux-iio/[email protected]/
Link to v1: https://lore.kernel.org/linux-iio/[email protected]/
Siratul Islam (3):
dt-bindings: add entry for qstcorp
dt-bindings: iio: magnetometer: add QST QMC5883L Sensor
iio: magnetometer: add driver for QST QMC5883L Sensor
.../iio/magnetometer/qstcorp,qmc5883l.yaml | 52 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 7 + drivers/iio/magnetometer/Kconfig | 11 + drivers/iio/magnetometer/Makefile | 2 + drivers/iio/magnetometer/qmc5883l.c | 517 ++++++++++++++++++ 6 files changed, 591 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/qstcorp,qmc5883l.yaml create mode 100644 drivers/iio/magnetometer/qmc5883l.c
--
2.54.0