Browse Source

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: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Lorenzo Bianconi 8 years ago
parent
commit
9915c19056
1 changed files with 4 additions and 0 deletions
  1. 4 0
      drivers/iio/magnetometer/st_magn_core.c

+ 4 - 0
drivers/iio/magnetometer/st_magn_core.c

@@ -322,6 +322,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = {
 				.mask = 0x07,
 			},
 		},
+		.sim = {
+			.addr = 0x22,
+			.value = BIT(2),
+		},
 		.multi_read_bit = true,
 		.bootime = 2,
 	},