diff options
| author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2018-11-11 09:15:33 -0500 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-11-16 13:32:33 -0500 |
| commit | c91c1c844ebd868ad15bcfc866879fca1079234a (patch) | |
| tree | d4d2882b32740c4d784d917bb3f1a7dd9d7c6b38 /include/linux/platform_data | |
| parent | 1775044356c2f7f268e9c64d0c3fdd64588322e2 (diff) | |
iio: imu: st_lsm6dsx: add i2c embedded controller support
i2c controller embedded in lsm6dx series can connect up to four
slave devices using accelerometer sensor as trigger for i2c
read/write operations.
Introduce sensor hub support for lsm6dso sensor. Add register map
for lis2mdl magnetometer sensor.
In order to perform single read/write operations st_lsm6dsx driver
relies on SLV0 channel (hw FIFO is not supported yet)
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/st_sensors_pdata.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/st_sensors_pdata.h b/include/linux/platform_data/st_sensors_pdata.h index f8274b0c6888..728193111c2f 100644 --- a/include/linux/platform_data/st_sensors_pdata.h +++ b/include/linux/platform_data/st_sensors_pdata.h | |||
| @@ -18,11 +18,13 @@ | |||
| 18 | * Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet). | 18 | * Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet). |
| 19 | * @open_drain: set the interrupt line to be open drain if possible. | 19 | * @open_drain: set the interrupt line to be open drain if possible. |
| 20 | * @spi_3wire: enable spi-3wire mode. | 20 | * @spi_3wire: enable spi-3wire mode. |
| 21 | * @pullups: enable/disable i2c controller pullup resistors. | ||
| 21 | */ | 22 | */ |
| 22 | struct st_sensors_platform_data { | 23 | struct st_sensors_platform_data { |
| 23 | u8 drdy_int_pin; | 24 | u8 drdy_int_pin; |
| 24 | bool open_drain; | 25 | bool open_drain; |
| 25 | bool spi_3wire; | 26 | bool spi_3wire; |
| 27 | bool pullups; | ||
| 26 | }; | 28 | }; |
| 27 | 29 | ||
| 28 | #endif /* ST_SENSORS_PDATA_H */ | 30 | #endif /* ST_SENSORS_PDATA_H */ |
