qst,qmi8658a (on i2c bus)

Description

QST QMI8658A 6-axis IMU

Examples

#include <zephyr/dt-bindings/gpio.h>

qmi8658a@6b {
  compatible = "qst,qmi8658a";
  reg = <0x6b>;
  accel-fs = <4>;
  gyro-fs = <512>;
  accel-odr = <896>;
  gyro-odr = <896>;
  int-gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
  int-pin = <2>;
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

int-gpios

phandle-array

Data-ready interrupt line connected to the sensor INT1 or INT2 pin.
Configure flags to match the signal level presented to the MCU.

int-pin

int

Sensor interrupt pin to use for data-ready: 1 for INT1, 2 for INT2.
The default is 2 because QMI8658A DRDY is routed to INT2 in the standard
configuration described by the datasheet interrupt mapping. Set this to 1
only when using a configuration that explicitly routes data-ready to INT1.

Default value: 2

Legal values: 1, 2

accel-fs

int

Accelerometer full-scale range in g.
The default is a general-purpose range that balances resolution with
headroom for typical handheld and board-level motion. Use 2 for highest
sensitivity at low acceleration, or 8/16 when higher acceleration is
expected.

Default value: 4

Legal values: 2, 4, 8, 16

gyro-fs

int

Gyroscope full-scale range in degrees per second (dps).
The default provides a practical balance between sensitivity and headroom
for common motion-tracking use. Use lower ranges for finer low-rate
motion, or higher ranges for faster rotational movement.

Default value: 512

Legal values: 16, 32, 64, 128, 256, 512, 1024, 2048

accel-odr

int

Requested accelerometer output data rate in Hz.
The default targets low-latency 6-DoF streaming and is paired with the
gyroscope default to keep both sensors at the same nominal rate. Use
lower values to reduce power and bandwidth, or higher values when maximum
update rate is needed.

Default value: 896

gyro-odr

int

Requested gyroscope output data rate in Hz.
The default matches the accelerometer default to keep sampling rates
aligned for fused 6-DoF data. Use lower values to reduce power and
bandwidth, or higher values when faster gyro updates are required.

Default value: 896

friendly-name

string

Human readable string describing the sensor. It can be used to
distinguish multiple instances of the same model (e.g., lid accelerometer
vs. base accelerometer in a laptop) to a host operating system.

This property is defined in the Generic Sensor Property Usages of the HID
Usage Tables specification
(https://usb.org/sites/default/files/hut1_3_0.pdf, section 22.5).

supply-gpios

phandle-array

GPIO specifier that controls power to the device.

This property should be provided when the device has a dedicated
switch that controls power to the device.  The supply state is
entirely the responsibility of the device driver.

Contrast with vin-supply.

vin-supply

phandle

Reference to the regulator that controls power to the device.
The referenced devicetree node must have a regulator compatible.

This property should be provided when device power is supplied
by a shared regulator.  The supply state is dependent on the
request status of all devices fed by the regulator.

Contrast with supply-gpios.  If both properties are provided
then the regulator must be requested before the supply GPIOS is
set to an active state, and the supply GPIOS must be set to an
inactive state before releasing the regulator.