Skip to content

Conversation

miggazElquez
Copy link
Contributor

The LSM9DS1 bindings were described as a full 9-axis IMU, while each binding only covers one part of the device. This also made the "Supported features" section of the generated docs misleading, since it only shows the first sentence.

Update the descriptions to explicitly state whether they cover the accelerometer + gyroscope or the magnetometer.

The LSM9DS1 bindings were described as a full 9-axis IMU, while each
binding only covers one part of the device. This also made the
"Supported features" section of the generated docs misleading, since it
only shows the first sentence.

Update the descriptions to explicitly state whether they cover the
accelerometer + gyroscope or the magnetometer.

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
Copy link

sonarqubecloud bot commented Sep 2, 2025

@kartben
Copy link
Contributor

kartben commented Sep 3, 2025

But why is this two different bindings in the first place, this seems wrong?

@miggazElquez
Copy link
Contributor Author

But why is this two different bindings in the first place, this seems wrong?

Even if the lsm9ds1 is only one chip, on a logical view it's really two devices : the accel+gyro part and the magn part have a different set of register, different I²C address when on a I²C bus, and different pins for the Chip Select when on a SPI bus.

So it is implemented as two different driver, with two different compatible, this seemed the most logical way to do this to me. The lsm9ds0 is implemented in the same way.

@cfriedt cfriedt merged commit 838f0c0 into zephyrproject-rtos:main Sep 5, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants