Commit 9915c190 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Jonathan Cameron

iio: magnetometer: st_magn: add SPI-3wire support to LIS3MDL

Add SPI Serial Interface Mode (SIM) register information to
LIS3MDL magn sensor
Signed-off-by: default avatarLorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 281dbadb
...@@ -322,6 +322,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = { ...@@ -322,6 +322,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = {
.mask = 0x07, .mask = 0x07,
}, },
}, },
.sim = {
.addr = 0x22,
.value = BIT(2),
},
.multi_read_bit = true, .multi_read_bit = true,
.bootime = 2, .bootime = 2,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment