diff options
author | Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> | 2017-01-29 11:49:25 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-02-04 12:23:37 +0000 |
commit | 0b2a3e5f17d6ba3f00aee1000718a84afb3d4d1f (patch) | |
tree | 1b434ee5fa970e33a2bd569dee5f97a93134d309 /drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c | |
parent | d068e4a0f9213074c5d893b8b80ca7bca444ed1d (diff) | |
download | blackbird-op-linux-0b2a3e5f17d6ba3f00aee1000718a84afb3d4d1f.tar.gz blackbird-op-linux-0b2a3e5f17d6ba3f00aee1000718a84afb3d4d1f.zip |
iio: imu: st_lsm6dsx: add support to lsm6dsl
Add support to STM LSM6DSL 6-axis (acc + gyro) Mems sensor
http://www.st.com/resource/en/datasheet/lsm6dsl.pdf
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c')
-rw-r--r-- | drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c index ea3041186e1e..60a3de043ae0 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c @@ -71,6 +71,10 @@ static const struct of_device_id st_lsm6dsx_i2c_of_match[] = { .data = (void *)ST_LSM6DS3_ID, }, { + .compatible = "st,lsm6dsl", + .data = (void *)ST_LSM6DSL_ID, + }, + { .compatible = "st,lsm6dsm", .data = (void *)ST_LSM6DSM_ID, }, @@ -80,6 +84,7 @@ MODULE_DEVICE_TABLE(of, st_lsm6dsx_i2c_of_match); static const struct i2c_device_id st_lsm6dsx_i2c_id_table[] = { { ST_LSM6DS3_DEV_NAME, ST_LSM6DS3_ID }, + { ST_LSM6DSL_DEV_NAME, ST_LSM6DSL_ID }, { ST_LSM6DSM_DEV_NAME, ST_LSM6DSM_ID }, {}, }; |