Re: [RFC PATCH v1 0/2] iio: imu: Add support for QST QMI8658C

From: Andy Shevchenko

Date: Fri Dec 04 2026 - 04:48:14 EST


On Fri, Dec 04, 2026 at 04:55:02PM +0800, NanamiKite wrote:
> This series adds a DT binding and an initial I2C driver for the QST
> QMI8658C 6-axis IMU (3-axis accelerometer, 3-axis gyroscope, and
> temperature sensor).
>
> Right now it only covers direct sysfs reads, scale/ODR settings,
> mount-matrix, and vdd/vddio supplies. Triggers, FIFO, interrupts, and
> runtime PM can come later once the basic layout looks reasonable.
>
> A few things I'd like feedback on:

First of all, please setup the email and patch sending on your side.
The three patches were sent as three different emails! No, we want
a single email thread (for example, --thread to `git format-patch` makes
this happen).

> - Keeping both accel and gyro enabled for now: the chip uses different
> ODR tables for the same aODR register values depending on whether the
> gyro is on or off. Leaving it in 6DOF mode keeps the ODR table simple
> for an initial driver, or would you rather see separate modes from
> the start?
> - Regulator startup delay: the datasheet lists t0 = 150 ms from power
> up. Should probe() sleep after enabling supplies before reading
> WHO_AM_I, in case a board actually switches them off?
> - Chip IDs: my QMI8658C module returns WHO_AM_I = 0x05 and
> REVISION_ID = 0x7b (rev 0.9 datasheet says 0x79). The driver warns on
> an unexpected WHO_AM_I rather than failing probe, and only logs
> REVISION_ID at dbg level.

Why a brand new driver? You should research existing ones and if there are some
close enough explain, why they are not suitable to host this HW.

--
With Best Regards,
Andy Shevchenko