2013-06-03 18:58:00 +04:00
|
|
|
#
|
|
|
|
# Pressure drivers
|
|
|
|
#
|
2013-07-15 11:45:00 +04:00
|
|
|
# When adding new entries keep the list in alphabetical order
|
|
|
|
|
2013-06-24 01:28:00 +04:00
|
|
|
menu "Pressure sensors"
|
2013-06-03 18:58:00 +04:00
|
|
|
|
iio: pressure: Add driver for Honeywell ABP family
This patch adds minimal driver for the Honeywell Amplified Basic
Pressure sensors series. Sensors are pretty simple but are
available in many variants:
- psi/mbar/kPa output,
- analog/i2c/spi,
- gage/differential measurement,
- different measure ranges etc.
Refer to datasheets for more details:
http://sensing.honeywell.com/honeywell-sensing-basic-board-mount-pressure-sensors-abp-series-datasheet-323005128-c-en.pdf
http://sensing.honeywell.com/index.php%3Fci_id%3D45841
Driver internals:
- i2c only. measure request is done by the SMBUS QUICK cmd, so if the i2c
bus doesn't support it, it is required to send a dummy byte to trigger
measurement,
- since iio sysfs expects kilopascals, mbar-variants are treated as their
respective kPa-s, hence i2c id-table has doubled entries in one line:
{ "abp060mg", ABP006KG }, { "abp006kg", ABP006KG },
- psi-variants have prescaled values in config,
- no temperature reads yet.
Work remained:
- optional temperature channel,
- SPI support,
- DT binding.
Changes since v1:
- mutex is now locked in read_raw(),
- corrected error codes,
- fixed coding style issues,
- renamed few defines and functions abp -> abp060mg
(some structs left as they were to keep the sensible meaning).
Signed-off-by: Marcin Malagowski <mrc@bourne.st>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-09-26 20:23:06 +03:00
|
|
|
config ABP060MG
|
|
|
|
tristate "Honeywell ABP pressure sensor driver"
|
|
|
|
depends on I2C
|
|
|
|
help
|
|
|
|
Say yes here to build support for the Honeywell ABP pressure
|
|
|
|
sensors.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called abp060mg.
|
|
|
|
|
2014-10-21 12:09:58 +04:00
|
|
|
config BMP280
|
2016-06-30 04:48:50 +03:00
|
|
|
tristate "Bosch Sensortec BMP180/BMP280 pressure sensor I2C driver"
|
2016-06-30 04:48:51 +03:00
|
|
|
depends on (I2C || SPI_MASTER)
|
2016-06-30 04:48:50 +03:00
|
|
|
select REGMAP
|
|
|
|
select BMP280_I2C if (I2C)
|
2016-06-30 04:48:51 +03:00
|
|
|
select BMP280_SPI if (SPI_MASTER)
|
2014-10-21 12:09:58 +04:00
|
|
|
help
|
2016-04-24 16:52:10 +03:00
|
|
|
Say yes here to build support for Bosch Sensortec BMP180 and BMP280
|
2016-05-05 08:57:30 +03:00
|
|
|
pressure and temperature sensors. Also supports the BE280 with
|
2016-06-30 04:48:50 +03:00
|
|
|
an additional humidity sensor channel.
|
2014-10-21 12:09:58 +04:00
|
|
|
|
2016-06-30 04:48:51 +03:00
|
|
|
To compile this driver as a module, choose M here: the core module
|
|
|
|
will be called bmp280 and you will also get bmp280-i2c for I2C
|
|
|
|
and/or bmp280-spi for SPI support.
|
2016-06-30 04:48:50 +03:00
|
|
|
|
|
|
|
config BMP280_I2C
|
|
|
|
tristate
|
|
|
|
depends on BMP280
|
|
|
|
depends on I2C
|
|
|
|
select REGMAP_I2C
|
2014-10-21 12:09:58 +04:00
|
|
|
|
2016-06-30 04:48:51 +03:00
|
|
|
config BMP280_SPI
|
|
|
|
tristate
|
|
|
|
depends on BMP280
|
|
|
|
depends on SPI_MASTER
|
|
|
|
select REGMAP
|
|
|
|
|
2017-01-24 16:41:41 +03:00
|
|
|
config IIO_CROS_EC_BARO
|
|
|
|
tristate "ChromeOS EC Barometer Sensor"
|
|
|
|
depends on IIO_CROS_EC_SENSORS_CORE
|
|
|
|
help
|
|
|
|
Say yes here to build support for the Barometer sensor when
|
|
|
|
presented by the ChromeOS EC Sensor hub.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called cros_ec_baro.
|
|
|
|
|
2014-02-20 10:30:00 +04:00
|
|
|
config HID_SENSOR_PRESS
|
|
|
|
depends on HID_SENSOR_HUB
|
|
|
|
select IIO_BUFFER
|
|
|
|
select IIO_TRIGGERED_BUFFER
|
|
|
|
select HID_SENSOR_IIO_COMMON
|
|
|
|
select HID_SENSOR_IIO_TRIGGER
|
|
|
|
tristate "HID PRESS"
|
|
|
|
help
|
|
|
|
Say yes here to build support for the HID SENSOR
|
|
|
|
Pressure driver
|
|
|
|
|
2016-01-24 20:06:50 +03:00
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called hid-sensor-press.
|
2014-02-20 10:30:00 +04:00
|
|
|
|
2016-04-18 17:05:24 +03:00
|
|
|
config HP03
|
|
|
|
tristate "Hope RF HP03 temperature and pressure sensor driver"
|
|
|
|
depends on I2C
|
|
|
|
select REGMAP_I2C
|
|
|
|
help
|
|
|
|
Say yes here to build support for Hope RF HP03 pressure and
|
|
|
|
temperature sensor.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called hp03.
|
|
|
|
|
2014-02-05 20:58:00 +04:00
|
|
|
config MPL115
|
2016-01-15 19:00:03 +03:00
|
|
|
tristate
|
|
|
|
|
|
|
|
config MPL115_I2C
|
2014-02-05 20:58:00 +04:00
|
|
|
tristate "Freescale MPL115A2 pressure sensor driver"
|
|
|
|
depends on I2C
|
2016-01-15 19:00:03 +03:00
|
|
|
select MPL115
|
2014-02-05 20:58:00 +04:00
|
|
|
help
|
|
|
|
Say yes here to build support for the Freescale MPL115A2
|
|
|
|
pressure sensor connected via I2C.
|
|
|
|
|
2016-01-24 20:06:50 +03:00
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called mpl115_i2c.
|
2016-01-15 19:00:03 +03:00
|
|
|
|
|
|
|
config MPL115_SPI
|
|
|
|
tristate "Freescale MPL115A1 pressure sensor driver"
|
|
|
|
depends on SPI_MASTER
|
|
|
|
select MPL115
|
|
|
|
help
|
|
|
|
Say yes here to build support for the Freescale MPL115A1
|
|
|
|
pressure sensor connected via SPI.
|
|
|
|
|
2016-01-24 20:06:50 +03:00
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called mpl115_spi.
|
2014-02-05 20:58:00 +04:00
|
|
|
|
2013-11-12 23:43:00 +04:00
|
|
|
config MPL3115
|
|
|
|
tristate "Freescale MPL3115A2 pressure sensor driver"
|
|
|
|
depends on I2C
|
|
|
|
select IIO_BUFFER
|
|
|
|
select IIO_TRIGGERED_BUFFER
|
|
|
|
help
|
|
|
|
Say yes here to build support for the Freescale MPL3115A2
|
|
|
|
pressure sensor / altimeter.
|
|
|
|
|
2016-01-24 20:06:50 +03:00
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called mpl3115.
|
2013-11-12 23:43:00 +04:00
|
|
|
|
2015-03-14 23:29:31 +03:00
|
|
|
config MS5611
|
2015-06-16 22:27:03 +03:00
|
|
|
tristate "Measurement Specialties MS5611 pressure sensor driver"
|
2016-02-16 17:55:07 +03:00
|
|
|
select IIO_BUFFER
|
2016-02-03 19:50:38 +03:00
|
|
|
select IIO_TRIGGERED_BUFFER
|
2015-03-14 23:29:31 +03:00
|
|
|
help
|
2015-06-16 22:27:03 +03:00
|
|
|
Say Y here to build support for the Measurement Specialties
|
2015-06-23 21:45:48 +03:00
|
|
|
MS5611, MS5607 pressure and temperature sensors.
|
2015-03-14 23:29:31 +03:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module will
|
|
|
|
be called ms5611_core.
|
|
|
|
|
|
|
|
config MS5611_I2C
|
|
|
|
tristate "support I2C bus connection"
|
|
|
|
depends on I2C && MS5611
|
|
|
|
help
|
|
|
|
Say Y here to build I2C bus support for MS5611.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module will
|
|
|
|
be called ms5611_i2c.
|
|
|
|
|
|
|
|
config MS5611_SPI
|
|
|
|
tristate "support SPI bus connection"
|
|
|
|
depends on SPI_MASTER && MS5611
|
|
|
|
help
|
|
|
|
Say Y here to build SPI bus support for MS5611.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module will
|
|
|
|
be called ms5611_spi.
|
|
|
|
|
2015-10-01 17:13:40 +03:00
|
|
|
config MS5637
|
|
|
|
tristate "Measurement Specialties MS5637 pressure & temperature sensor"
|
|
|
|
depends on I2C
|
2016-01-24 20:06:50 +03:00
|
|
|
select IIO_MS_SENSORS_I2C
|
2015-10-01 17:13:40 +03:00
|
|
|
help
|
|
|
|
If you say yes here you get support for the Measurement Specialties
|
|
|
|
MS5637 pressure and temperature sensor.
|
2015-10-01 17:13:41 +03:00
|
|
|
This driver is also used for MS8607 temperature, pressure & humidity
|
|
|
|
sensor
|
2015-10-01 17:13:40 +03:00
|
|
|
|
|
|
|
This driver can also be built as a module. If so, the module will
|
|
|
|
be called ms5637.
|
|
|
|
|
2013-06-03 18:58:00 +04:00
|
|
|
config IIO_ST_PRESS
|
2013-06-24 01:28:00 +04:00
|
|
|
tristate "STMicroelectronics pressure sensor Driver"
|
2013-06-03 18:58:00 +04:00
|
|
|
depends on (I2C || SPI_MASTER) && SYSFS
|
|
|
|
select IIO_ST_SENSORS_CORE
|
|
|
|
select IIO_ST_PRESS_I2C if (I2C)
|
|
|
|
select IIO_ST_PRESS_SPI if (SPI_MASTER)
|
|
|
|
select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
|
|
|
|
help
|
2013-06-24 01:28:00 +04:00
|
|
|
Say yes here to build support for STMicroelectronics pressure
|
2016-04-19 12:18:32 +03:00
|
|
|
sensors: LPS001WP, LPS25H, LPS331AP, LPS22HB.
|
2013-06-03 18:58:00 +04:00
|
|
|
|
2013-06-24 01:28:00 +04:00
|
|
|
This driver can also be built as a module. If so, these modules
|
|
|
|
will be created:
|
2013-06-03 18:58:00 +04:00
|
|
|
- st_pressure (core functions for the driver [it is mandatory]);
|
|
|
|
- st_pressure_i2c (necessary for the I2C devices [optional*]);
|
|
|
|
- st_pressure_spi (necessary for the SPI devices [optional*]);
|
|
|
|
|
|
|
|
(*) one of these is necessary to do something.
|
|
|
|
|
|
|
|
config IIO_ST_PRESS_I2C
|
|
|
|
tristate
|
|
|
|
depends on IIO_ST_PRESS
|
|
|
|
depends on IIO_ST_SENSORS_I2C
|
|
|
|
|
|
|
|
config IIO_ST_PRESS_SPI
|
|
|
|
tristate
|
|
|
|
depends on IIO_ST_PRESS
|
|
|
|
depends on IIO_ST_SENSORS_SPI
|
|
|
|
|
2014-02-07 00:44:00 +04:00
|
|
|
config T5403
|
|
|
|
tristate "EPCOS T5403 digital barometric pressure sensor driver"
|
|
|
|
depends on I2C
|
|
|
|
help
|
|
|
|
Say yes here to build support for the EPCOS T5403 pressure sensor
|
|
|
|
connected via I2C.
|
|
|
|
|
2016-01-24 20:06:50 +03:00
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called t5403.
|
2014-02-07 00:44:00 +04:00
|
|
|
|
2016-03-29 19:14:27 +03:00
|
|
|
config HP206C
|
|
|
|
tristate "HOPERF HP206C precision barometer and altimeter sensor"
|
|
|
|
depends on I2C
|
|
|
|
help
|
|
|
|
Say yes here to build support for the HOPREF HP206C precision
|
|
|
|
barometer and altimeter sensor.
|
|
|
|
|
|
|
|
This driver can also be built as a module. If so, the module will
|
|
|
|
be called hp206c.
|
|
|
|
|
2016-09-13 15:23:14 +03:00
|
|
|
config ZPA2326
|
|
|
|
tristate "Murata ZPA2326 pressure sensor driver"
|
|
|
|
select IIO_BUFFER
|
|
|
|
select IIO_TRIGGERED_BUFFER
|
|
|
|
select REGMAP
|
|
|
|
select ZPA2326_I2C if I2C
|
|
|
|
select ZPA2326_SPI if SPI_MASTER
|
|
|
|
help
|
|
|
|
Say Y here to build support for the Murata ZPA2326 pressure and
|
|
|
|
temperature sensor.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module will
|
|
|
|
be called zpa2326.
|
|
|
|
|
|
|
|
config ZPA2326_I2C
|
|
|
|
tristate
|
|
|
|
select REGMAP_I2C
|
|
|
|
|
|
|
|
config ZPA2326_SPI
|
|
|
|
tristate
|
|
|
|
select REGMAP_SPI
|
|
|
|
|
2013-06-03 18:58:00 +04:00
|
|
|
endmenu
|