]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: icy: Add LTC2990 present on 2019 board revision
authorMax Staudt <max@enpas.org>
Mon, 19 Aug 2019 12:16:18 +0000 (14:16 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 29 Aug 2019 19:05:35 +0000 (21:05 +0200)
commitf357814edcd49617e6b3edc02f6f24cce890778a
tree8538fe83e784124610e37cd894acb484d6ce8155
parentb5bfdd14dc15cdee97d24786a7393cf8ccdb5131
i2c: icy: Add LTC2990 present on 2019 board revision

Since the 2019 a1k.org community re-print of these PCBs sports an
LTC2990 hwmon chip as an example use case, let this driver autoprobe
for that as well. If it is present, modprobing ltc2990 is sufficient.

The property_entry enables the three additional inputs available on
this particular board:

  in1 will be the voltage of the 5V rail, divided by 2.
  in2 will be the voltage of the 12V rail, divided by 4.
  temp3 will be measured using a PCB loop next the chip.

Signed-off-by: Max Staudt <max@enpas.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/Kconfig
drivers/i2c/busses/i2c-icy.c