thermal: generic-adc: Add ADC based thermal sensor driver
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 19 Apr 2016 07:22:01 +0000 (12:52 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 17 May 2016 14:28:31 +0000 (07:28 -0700)
commitb3aef78f76959b94e6df54f80040669a11cc4897
treecaa7c6d3db2f0ff71e70697ecad0572f934313e9
parent9e389e383b30c5d63de67e7a0cfa39c527a98bbc
thermal: generic-adc: Add ADC based thermal sensor driver

In some of platform, thermal sensors like NCT thermistors are
connected to the one of ADC channel. The temperature is read by
reading the voltage across the sensor resistance via ADC. Lookup
table for ADC read value to temperature is referred to get
temperature. ADC is read via IIO framework.

Add support for thermal sensor driver which read the voltage across
sensor resistance from ADC through IIO framework.

Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/Kconfig
drivers/thermal/Makefile
drivers/thermal/thermal-generic-adc.c [new file with mode: 0644]