OSDN Git Service

iio: chemical: sps30: add support for self cleaning
authorTomasz Duszynski <tduszyns@gmail.com>
Tue, 18 Dec 2018 20:28:09 +0000 (21:28 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 5 Jan 2019 16:10:39 +0000 (16:10 +0000)
commitc546d49656143855093c7b7fde60866e6e23a69d
tree6a09d0817ee35c76d7626cf846bad54ee417ece8
parent6a4b8937a3d6238b5aa9b9c8083f7238903bfb86
iio: chemical: sps30: add support for self cleaning

Self cleaning is especially useful in cases where sensor undergoes
frequent power on/off cycles. In such scenarios it is recommended to
turn self cleaning at least once per week in order to maintain reliable
measurements.

Self cleaning is activated by writing 1 to a dedicated attribute.
Internal fan accelerates to its maximum speed and keeps spinning
for about 10 seconds blowing out accumulated dust.

Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
Tested-by: Andreas Brauchli <andreas.brauchli@sensirion.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/ABI/testing/sysfs-bus-iio-sps30 [new file with mode: 0644]
drivers/iio/chemical/sps30.c