]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: humidity: si7020: add heater support
authorAntoni Pokusinski <apokusinski01@gmail.com>
Fri, 7 Jun 2024 14:10:30 +0000 (16:10 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 13 Jun 2024 18:19:23 +0000 (19:19 +0100)
commit2aac3f9aec74b28ea73ad96efbcc0c56e5ff814f
treedf8a34a178edb5a349453a7d5c9afb6d5bc2a8e2
parentb2fb2d03e2dc3963bcf41f1d0cbd467ad9e6e89b
iio: humidity: si7020: add heater support

This patch adds support for the integrated on-chip heater that is present
on all the devices supported by this driver (si7020, si7021, si7013, th6).
In order to configure the heater, the driver interacts with the following
device registers:
* User Register - the 2nd bit of this register is a "Heater Enable bit"
  (0 means that the heater is off, 1 means that it's on).
* Heater Register - this register is present only on the si70xx devices
  and controls the current flowing through the heater. The 4 lower bits
  of this register can be assigned values from 0x0 to 0xF.

Signed-off-by: Antoni Pokusinski <apokusinski01@gmail.com>
Link: https://lore.kernel.org/r/20240607141029.51744-1-apokusinski@o2.pl
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/humidity/si7020.c