driver/sensor: lsm6dso: Add support #13478
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add support to STM LSM6DSO 6-axis IMU sensor driver.
This driver supports communication with device though both
I2C and SPI bus and both polling and drdy trigger mode.
This driver supports also the sensorhub mode with the possibility
to connect a maximum of two external devices, typically a
magnetometer and an environmental sensor, currently selected among
following devices: lis2mdl magnetometer, lps22hh and lps22hb
pressure and temperature sensors.
Signed-off-by: Armando Visconti armando.visconti@st.com
TESTS: (similar as LIS2DW12 sensor in #12741)
tested in I2C with component on IKS01A3 shield on top of Nucleo F401RE board
tested in SPI with external component mounted on DIL24 socket of same shield
In both cases the interrupt triggered mode was used.
In case of SPI the CS was generated using a GPIO.
(Please note that IKS01A3 shield is not officially supported yet. I'm still working on it)
EDIT::
The LSM6DSO sensorhub mode has been also tested. Infact, on IKS01A3 shield is possible to
configure the LSM6DSO in sensorhub mode with LPS22HH and LIS2MDL device connected to it.