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)
Showing the changes to include/linux/platform_data (1 of 5 files). Show all
Unified · Split
| @@ -18,11 +18,13 @@ · 17 unmodified lines | ||
| 18 | 18 | * Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet). |
| 19 | 19 | * @open_drain: set the interrupt line to be open drain if possible. |
| 20 | 20 | * @spi_3wire: enable spi-3wire mode. |
| 21 | + * @pullups: enable/disable i2c controller pullup resistors. | |
| 21 | 22 | */ |
| 22 | 23 | struct st_sensors_platform_data { |
| 23 | 24 | u8 drdy_int_pin; |
| 24 | 25 | bool open_drain; |
| 25 | 26 | bool spi_3wire; |
| 27 | + bool pullups; | |
| 26 | 28 | }; |
| 27 | 29 | |
| 28 | 30 | #endif /* ST_SENSORS_PDATA_H */ |