mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-03 19:53:32 +00:00
d58013f39b
A simple driver for the TVOC (Total Volatile Organic Compounds) sensor from Aosong: AGS02MA Steps in reading the VOC sensor value over i2c: 1. Read 5 bytes from the register `AGS02MA_TVOC_READ_REG` [0x00] 2. The first 4 bytes are taken as the big endian sensor data with final byte being the CRC 3. The CRC is verified and the value is returned over an `IIO_CHAN_INFO_RAW` channel as percents Tested on Raspberry Pi Zero 2W Datasheet: https://asairsensors.com/wp-content/uploads/2021/09/AGS02MA.pdf Signed-off-by: Anshul Dalal <anshulusr@gmail.com> Link: https://lore.kernel.org/r/20231215162312.143568-3-anshulusr@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
27 lines
953 B
Makefile
27 lines
953 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Makefile for IIO chemical sensors
|
|
#
|
|
|
|
# When adding new entries keep the list in alphabetical order
|
|
obj-$(CONFIG_AOSONG_AGS02MA) += ags02ma.o
|
|
obj-$(CONFIG_ATLAS_PH_SENSOR) += atlas-sensor.o
|
|
obj-$(CONFIG_ATLAS_EZO_SENSOR) += atlas-ezo-sensor.o
|
|
obj-$(CONFIG_BME680) += bme680_core.o
|
|
obj-$(CONFIG_BME680_I2C) += bme680_i2c.o
|
|
obj-$(CONFIG_BME680_SPI) += bme680_spi.o
|
|
obj-$(CONFIG_CCS811) += ccs811.o
|
|
obj-$(CONFIG_IAQCORE) += ams-iaq-core.o
|
|
obj-$(CONFIG_PMS7003) += pms7003.o
|
|
obj-$(CONFIG_SCD30_CORE) += scd30_core.o
|
|
obj-$(CONFIG_SCD30_I2C) += scd30_i2c.o
|
|
obj-$(CONFIG_SCD30_SERIAL) += scd30_serial.o
|
|
obj-$(CONFIG_SCD4X) += scd4x.o
|
|
obj-$(CONFIG_SENSEAIR_SUNRISE_CO2) += sunrise_co2.o
|
|
obj-$(CONFIG_SENSIRION_SGP30) += sgp30.o
|
|
obj-$(CONFIG_SENSIRION_SGP40) += sgp40.o
|
|
obj-$(CONFIG_SPS30) += sps30.o
|
|
obj-$(CONFIG_SPS30_I2C) += sps30_i2c.o
|
|
obj-$(CONFIG_SPS30_SERIAL) += sps30_serial.o
|
|
obj-$(CONFIG_VZ89X) += vz89x.o
|