zephyr/drivers/sensor
Armando Visconti c380142920 drivers/sensor: iis2iclx: add multi-instance
Make this driver multi-instance and use the new API.

Notes for sensorhub mode:
In case of multiples devices it is possible that some of them
has i2c slaves attached to it (sensorhub mode) but not the
others. Since the driver is configured in the same way for
all the instances (CONFIG_SENSORHUB=y), the routine that initialize
the sensorhub part does not fail anymore in case no slaves
are found for a particular instance. Instead, those non-sensorhub
driver instances will set the shub_inited flag to false and
will totally ignore the feature.

Notes for triggers:
In case of multiples devices the device pin the interrupt wire is
attached to can be different (INT1 or INT2 pin). So, this
information has been moved in DTS and then stored in the
specific instance config structure.
Currently the driver is able to handle a sngle interrupt line
at a time attached to either INT1 or INT2.
MOreover, the interrupt initialization for a driver instance proceed
only if the drdy has been configured in its DT, else it returns ok.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2020-11-11 13:17:18 +01:00
..
adt7420 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
adxl345
adxl362
adxl372 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
ak8975
amg88xx
ams_iAQcore dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
apds9960 drivers: remove unnecessary use of DEVICE_AND_API_INIT 2020-11-06 09:42:47 -06:00
bma280
bmc150_magn
bme280
bme680
bmg160
bmi160 drivers: sensor: bmi160: Add support for I2C 2020-10-27 16:41:30 +01:00
bmm150
bq274xx dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
ccs811 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
dht
dps310
ens210 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
fxas21002 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
fxos8700 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
grove
hmc5883l
hp206c
hts221 drivers: sensor: hts221: Add checks for drdy_gpios macros 2020-09-24 09:51:08 -05:00
iis2dh modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
iis2dlpc modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
iis2iclx drivers/sensor: iis2iclx: add multi-instance 2020-11-11 13:17:18 +01:00
iis2mdc modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
iis3dhhc modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
isl29035
ism330dhcx modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
lis2dh dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lis2ds12 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lis2dw12 modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
lis2mdl modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
lis3mdl dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lps22hb dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lps22hh modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
lps25hb dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lsm6ds0 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lsm6dsl drivers/sensor: iis2iclx: add multi-instance 2020-11-11 13:17:18 +01:00
lsm6dso modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
lsm9ds0_gyro dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lsm9ds0_mfd dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lsm303dlhc_magn
max17055 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
max30101 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
max44009
mchp_tach_xec drivers: sensor: Use macro parameter to dereference device 2020-10-21 08:29:36 -04:00
mcp9808
mpr dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
mpu6050
ms5607
ms5837 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
nrf5
nxp_kinetis_temp
opt3001 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
pms7003
qdec_nrfx
sht3xd
si7006 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
si7055 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
si7060 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
sm351lt
stts751 modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.03 2020-10-13 09:46:08 -05:00
sx9500
th02
ti_hdc dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
tmp007
tmp112
tmp116 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
vcnl4040 drivers: remove unnecessary use of DEVICE_AND_API_INIT 2020-11-06 09:42:47 -06:00
vl53l0x dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
wsen_itds
CMakeLists.txt drivers/sensor: add support to IIS2ICLX accelerometer 2020-10-15 09:57:47 -05:00
Kconfig drivers/sensor: add support to IIS2ICLX accelerometer 2020-10-15 09:57:47 -05:00
sensor_handlers.c
sensor_shell.c sensor_shell: added missing sensor channel. 2020-11-02 09:52:54 -06:00
shell_battery.c