Re: [PATCH v2 2/2] iio: imu: lsm6dsx: Add alternative ACPI mount matrix retrieval
From: Andy Shevchenko
Date: Tue Feb 03 2026 - 06:32:46 EST
On Sun, Feb 01, 2026 at 05:54:50PM -0500, Samuel Dionne-Riel wrote:
> This uses the SLA0 matrix, which is how the SMOCF05 configuration
> exposes the mounting information for the accelerometer.
>
> On a limited sample size of one (1) unit, the SLG0 matrix is the
> identity matrix. It is unknown how the SLG0 mounting matrix would
> logically affect the data, if it differed from the identity matrix.
> After all, the IMU is mounted as one single unit, its mounting can't
> differ on the gyroscope compared to the accelerometer.
>
> The new `st_lsm6dsx_read_acpi_mount_matrix` function currently only
st_lsm6dsx_read_acpi_mount_matrix()
> implements the *known* ACPI methods found in the wild, but the windows
Windows
> driver seems to indicate more integration-specific methods could exist.
...
> +static bool st_lsm6dsx_read_acpi_mount_matrix(struct device *dev,
> + struct iio_mount_matrix *orientation)
> +{
> + return iio_read_acpi_mount_matrix(dev, orientation, "ROTM") ||
> + iio_read_acpi_mount_matrix(dev, orientation, "SLA0");
Indentation is incorrect.
> +}
--
With Best Regards,
Andy Shevchenko