1fda8d26eSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
223cde4d6SDenis CIOCCA /*
323cde4d6SDenis CIOCCA  * STMicroelectronics sensors platform-data driver
423cde4d6SDenis CIOCCA  *
523cde4d6SDenis CIOCCA  * Copyright 2013 STMicroelectronics Inc.
623cde4d6SDenis CIOCCA  *
723cde4d6SDenis CIOCCA  * Denis Ciocca <[email protected]>
823cde4d6SDenis CIOCCA  */
923cde4d6SDenis CIOCCA 
1023cde4d6SDenis CIOCCA #ifndef ST_SENSORS_PDATA_H
1123cde4d6SDenis CIOCCA #define ST_SENSORS_PDATA_H
1223cde4d6SDenis CIOCCA 
1323cde4d6SDenis CIOCCA /**
1423cde4d6SDenis CIOCCA  * struct st_sensors_platform_data - Platform data for the ST sensors
1523cde4d6SDenis CIOCCA  * @drdy_int_pin: Redirect DRDY on pin 1 (1) or pin 2 (2).
1638934dafSAndy Shevchenko  *	Available only for accelerometer, magnetometer and pressure sensors.
1723cde4d6SDenis CIOCCA  *	Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet).
18*69ee1fb2SMarius Hoch  *	Magnetometer DRDY is supported only on LSM9DS0 and LSM303D.
190e6f6871SLinus Walleij  * @open_drain: set the interrupt line to be open drain if possible.
20a7b8829dSLorenzo Bianconi  * @spi_3wire: enable spi-3wire mode.
21c91c1c84SLorenzo Bianconi  * @pullups: enable/disable i2c controller pullup resistors.
22b7a73b33SLorenzo Bianconi  * @wakeup_source: enable/disable device as wakeup generator.
2323cde4d6SDenis CIOCCA  */
2423cde4d6SDenis CIOCCA struct st_sensors_platform_data {
2523cde4d6SDenis CIOCCA 	u8 drdy_int_pin;
260e6f6871SLinus Walleij 	bool open_drain;
27a7b8829dSLorenzo Bianconi 	bool spi_3wire;
28c91c1c84SLorenzo Bianconi 	bool pullups;
29b7a73b33SLorenzo Bianconi 	bool wakeup_source;
3023cde4d6SDenis CIOCCA };
3123cde4d6SDenis CIOCCA 
3223cde4d6SDenis CIOCCA #endif /* ST_SENSORS_PDATA_H */
33