Skip to content

iio: magnetometer: Add QMC5883L driver support

Brajesh Patil linux-devicetree linux-iio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 11 repliesIn review
  2. v13 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: vendor-prefixes: Add 'qst' for QST CorporationDocumentation/devicetree/bindings/vendor-prefixes.yaml+2 -02 replies
2/5dt-bindings: iio: magnetometer: qst: Add QMC5883L device tree bindingDocumentation/devicetree/bindings/iio/magnetometer/qst,qmc5883l.yaml+52 -02 replies
3/5iio: magnetometer: qmc5883l: Add initial driver supportdrivers/iio/magnetometer/Kconfig drivers/iio/magnetometer/Makefile drivers/iio/magnetometer/qmc5883l.c+486 -02 replies
4/5iio: magnetometer: qmc5883l: add extended sysfs attributes and configuration optionsdrivers/iio/magnetometer/qmc5883l.c+274 -22 replies
5/5iio: magnetometer: qmc5883l: add mount matrix, control features and power managementdrivers/iio/magnetometer/qmc5883l.c+89 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] iio: magnetometer: Add QMC5883L driver support

This series introduces support for the QST QMC5883L 3-axis magnetometer, a magnetic sensor with I2C interface.

The implementation follows standard IIO conventions and includes:

Patch 1/5: dt-bindings: vendor-prefixes
- Adds 'qst' prefix for QST Corporation

Patch 2/5: dt-bindings: iio: magnetometer - Adds QMC5883L bindings
- Adds compatible string and required properties
- Includes example device tree node

Patch 3/5: iio: magnetometer - Base driver implementation
- Basic register access via regmap
- X/Y/Z axis and temperature readings
- Triggered buffer support
- Initialization and core functionality

Patch 4/5: Extended sysfs attributes and configuration
- ODR (10-200Hz) and FSR (±2G/±8G) control
- Mode selection (standby/continuous)
- Oversampling ratio configuration (512-64)
- Status monitoring (DRDY/OVL flags)
- Available scale and sampling frequency attributes

Patch 5/5: Advanced features and power management
- Mount matrix support for orientation compensation
- Power management (suspend/resume)
- Control register features (soft reset, pointer rollover)

The driver has been tested on a Raspberry Pi 5 and all features have been verified.