-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Add lsm6dsvxxx sensor driver (lsm6dsv320x and lsm6dsv80x) #95802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
ba832b2 to
2fef837
Compare
2fef837 to
9822e90
Compare
|
9822e90 to
d52cada
Compare
|
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
d52cada to
1bb9226
Compare
714c379 to
b907a7c
Compare
60ee135 to
ee54c3e
Compare
The Device Tree property names that are common to lsm6dsv16x and lsm6dsv32x drivers are now prefixed with LSM6DSVXXX_ (and not LSM6DSV16X_) just for the sake of clarity. Signed-off-by: Armando Visconti <[email protected]>
This driver is currently only supporting the polling-mode read_and_decode APIs (both blocking and non-blocking). The driver implements a chip_api structure which has to be used to provide device specific callbacks. The only lsm6dsvxxx family device currently supported is lsm6dsv320x. More information about LSM6DSV16X: https://www.st.com/resource/en/datasheet/lsm6dsv320x.pdf Signed-off-by: Armando Visconti <[email protected]>
Add read_and_decode streaming APIs support.
Triggers supported:
- SENSOR_TRIG_FIFO_WATERMARK
- SENSOR_TRIG_FIFO_FULL
- SENSOR_TRIG_DATA_READY
Signed-off-by: Armando Visconti <[email protected]>
Add support to lsm6dsv80x sensor variant of LSM6DSVXXX driver. More information: https://www.st.com/resource/en/datasheet/lsm6dsv80x.pdf Signed-off-by: Armando Visconti <[email protected]>
Add support for High-g data in FIFO. The HG data wiil be marked in FIFO with LSM6DSV80X_XL_HG_TAG. Signed-off-by: Armando Visconti <[email protected]>
Add support to ism6hg256x sensor variant of LSM6DSVXXX driver. More information: https://www.st.com/resource/en/datasheet/ism6hg256x.pdf Signed-off-by: Armando Visconti <[email protected]>
ee54c3e to
70d1015
Compare
|
Rebased after #98150 has been merged |
|



Add lsm6dsvxx sensor driver, which support both the three variants lsm6dsv320x, ism6hg256x and lsm6dsv80x. The driver is supporting read_and_decode APIs only.
(this driver is going to substitute on the long run the lsm6dsv16x/lsm6dsv32x driver).
It supports following triggers:
- SENSOR_TRIG_FIFO_WATERMARK
- SENSOR_TRIG_FIFO_FULL
- SENSOR_TRIG_DATA_READY
It reads Accel (both standard and High-g scale), Gyro, temperature and SFLP (Sensor Fusion Low Power) data,
In the future the idea is to support also SensorHUB/FSM/MLC data in FIFO handling proper tags.
It has been tested on i2c bus (using nucleo_h503rb board + x_nucleo_iks5a1 shield) and on spi bus using a DIL24 connector.
EDIT:
I forgot it depends to hal_st. I need to push a new version of this module.
EDIT2:
hal_st module has been updated to v2.11.1.