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>
This commit is contained in:

committed by
Eduardo Valentin

parent
9e389e383b
commit
b3aef78f76
@@ -411,4 +411,14 @@ config QCOM_SPMI_TEMP_ALARM
|
||||
real time die temperature if an ADC is present or an estimate of the
|
||||
temperature based upon the over temperature stage value.
|
||||
|
||||
config GENERIC_ADC_THERMAL
|
||||
tristate "Generic ADC based thermal sensor"
|
||||
depends on IIO
|
||||
help
|
||||
This enabled a thermal sysfs driver for the temperature sensor
|
||||
which is connected to the General Purpose ADC. The ADC channel
|
||||
is read via IIO framework and the channel information is provided
|
||||
to this driver. This driver reports the temperature by reading ADC
|
||||
channel and converts it to temperature based on lookup table.
|
||||
|
||||
endif
|
||||
|
Reference in New Issue
Block a user