Skip to contentSkip to conversation

iio: chemical: add AMS iAQ-core support

PATCH Superseded Matt Ranostay 1 participant 2 messages Dec 5, 2015

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover iio: chemical: add AMS iAQ-core support

Changes from v1:
* changed channel masks to IIO_CHAN_INFO_PROCESSED
* return IIO_VAL_INT_PLUS_MICRO/NANO for VOC channels since they don't require any special scaling values
* change i2c_msg array to single element
* make sure data->buffer is locked in *_read_raw

Matt Ranostay (1):
iio: chemical: add AMS iAQ-core support

 .../devicetree/bindings/i2c/trivial-devices.txt    |   1 +
 drivers/iio/chemical/Kconfig                       |   8 +
 drivers/iio/chemical/Makefile                      |   1 +
 drivers/iio/chemical/ams-iaq-core.c                | 200 +++++++++++++++++++++
 4 files changed, 210 insertions(+)
 create mode 100644 drivers/iio/chemical/ams-iaq-core.c
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/1 iio: chemical: add AMS iAQ-core support

Add support for AMS iAQ-core continuous and pulsed VOC sensors.

---
 .../devicetree/bindings/i2c/trivial-devices.txt    |   1 +
 drivers/iio/chemical/Kconfig                       |   8 +
 drivers/iio/chemical/Makefile                      |   1 +
 drivers/iio/chemical/ams-iaq-core.c                | 200 +++++++++++++++++++++
 4 files changed, 210 insertions(+)
 create mode 100644 drivers/iio/chemical/ams-iaq-core.c
Documentation/devicetree/bindings/i2c/trivial-devices.txt +1 -0
index c50cf13..f6fec95 100644
@@ -20,6 +20,7 @@ adi,adt7476		+/-1C TDM Extended Temp Range I.C
 adi,adt7490		+/-1C TDM Extended Temp Range I.C
 adi,adxl345		Three-Axis Digital Accelerometer
 adi,adxl346		Three-Axis Digital Accelerometer (backward-compatibility value "adi,adxl345" must be listed too)
+ams,iaq-core		AMS iAQ-Core VOC Sensor
 at,24c08		i2c serial eeprom  (24cxx)
 atmel,24c00		i2c serial eeprom  (24cxx)
 atmel,24c01		i2c serial eeprom  (24cxx)
drivers/iio/chemical/Kconfig +8 -0
index 3061b72..f16de61 100644
@@ -4,6 +4,14 @@
 
 menu "Chemical Sensors"
 
+config IAQCORE
+	tristate "AMS iAQ-Core VOC sensors"
+	depends on I2C
+	help
+	  Say Y here to build I2C interface support for the AMS
+	  iAQ-Core Continuous/Pulsed VOC (Volatile Organic Compounds)
+	  sensors
+
 config VZ89X
 	tristate "SGX Sensortech MiCS VZ89X VOC sensor"
 	depends on I2C
drivers/iio/chemical/Makefile +1 -0
index 7292f2d..167861f 100644
@@ -3,4 +3,5 @@
 #
 
 # When adding new entries keep the list in alphabetical order
+obj-$(CONFIG_IAQCORE)		+= ams-iaq-core.o
 obj-$(CONFIG_VZ89X)		+= vz89x.o
drivers/iio/chemical/ams-iaq-core.c new file +200 -0

200 lines not on this page · raw message

Signature · 1 line
1.9.1