regulator: max8973: add support for junction thermal warning
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 13 Apr 2016 09:59:45 +0000 (15:29 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 13 Apr 2016 16:19:26 +0000 (17:19 +0100)
commitd2d5437bdfdde20a75bdf59db1c1a77721613b22
tree6823866b13d70fc22ef7f3b8775b1a280fd84f81
parent19dd159ce8086293b70bd8e1aeebe06aff8d7df8
regulator: max8973: add support for junction thermal warning

The driver MAX8973 supports the driver for Maxim PMIC MAX77621.
MAX77621 supports the junction temp warning at 120 degC and
140 degC which is configurable. It generates alert signal when
junction temperature crosses these threshold.

MAX77621 does not support the continuous temp monitoring of
junction temperature. It just report whether junction temperature
crossed the threshold or not.

Add support to
- Configure junction temp warning threshold via DT property
to generate alert when it crosses the threshold.
- Add support to interrupt the host from this device when alert
occurred.
- read the junction temp via thermal framework.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig
drivers/regulator/max8973-regulator.c
include/linux/regulator/max8973-regulator.h