thermal: Add QPNP PMIC temperature alarm driver
authorIvan T. Ivanov <iivanov@mm-sol.com>
Thu, 5 Feb 2015 17:12:56 +0000 (19:12 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 5 May 2015 04:27:51 +0000 (21:27 -0700)
commitc610afaa21d3c6e7b02040c8563ffc01c7fc0570
tree5608bcb81c5f33391cfa6cf8a61c5a00894fec56
parentbcdcbbc71125c37195f97314f453ca9a3a4eb758
thermal: Add QPNP PMIC temperature alarm driver

Add support for the temperature alarm peripheral found inside
Qualcomm plug-and-play (QPNP) PMIC chips. The temperature alarm
peripheral outputs a pulse on an interrupt line whenever the
thermal over temperature stage value changes.

Register a thermal sensor. The temperature reported by this thermal
sensor device should reflect the actual PMIC die temperature if an
ADC is present on the given PMIC. If no ADC is present, then the
reported temperature should be estimated from the over temperature
stage value.

Cc: David Collins <collinsd@codeaurora.org>
Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Documentation/devicetree/bindings/thermal/qcom-spmi-temp-alarm.txt [new file with mode: 0644]
drivers/thermal/Kconfig
drivers/thermal/Makefile
drivers/thermal/qcom-spmi-temp-alarm.c [new file with mode: 0644]