This commit is contained in:
Misaki
2026-10-27 00:34:27 +08:00
commit af5987b37b
322 changed files with 135956 additions and 0 deletions
@@ -0,0 +1,25 @@
# SPDX-License-Identifier: Apache-2.0
menuconfig QMC5883P
bool "QST QMC5883P 3-axis magnetometer"
depends on DT_HAS_MISAKI_QMC5883P_ENABLED
select I2C
select SENSOR
default y
help
QST QMC5883P 3-axis magnetometer over I2C.
Zephyr has no upstream driver (the QMC5883L register map is
incompatible), so this module implements the QMC5883P registers
per its datasheet: normal mode at 100 Hz, 16-bit two's complement
output, field range configurable via the 'range' devicetree
property. Output is standard SENSOR_CHAN_MAGN_XYZ in Gauss.
if QMC5883P
config QMC5883P_LOG_LEVEL
int "QMC5883P log level"
depends on LOG
range 0 4
default 3
endif # QMC5883P