dt-bindings: thermal: generic-adc: make lookup-table optional
Update binding description making lookup-table optional. Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
This commit is contained in:
parent
d36e2fa025
commit
80d95930dc
|
@ -8,16 +8,22 @@ temperature using voltage-temperature lookup table.
|
||||||
Required properties:
|
Required properties:
|
||||||
===================
|
===================
|
||||||
- compatible: Must be "generic-adc-thermal".
|
- compatible: Must be "generic-adc-thermal".
|
||||||
|
- #thermal-sensor-cells: Should be 1. See ./thermal.txt for a description
|
||||||
|
of this property.
|
||||||
|
Optional properties:
|
||||||
|
===================
|
||||||
- temperature-lookup-table: Two dimensional array of Integer; lookup table
|
- temperature-lookup-table: Two dimensional array of Integer; lookup table
|
||||||
to map the relation between ADC value and
|
to map the relation between ADC value and
|
||||||
temperature. When ADC is read, the value is
|
temperature. When ADC is read, the value is
|
||||||
looked up on the table to get the equivalent
|
looked up on the table to get the equivalent
|
||||||
temperature.
|
temperature.
|
||||||
|
|
||||||
The first value of the each row of array is the
|
The first value of the each row of array is the
|
||||||
temperature in milliCelsius and second value of
|
temperature in milliCelsius and second value of
|
||||||
the each row of array is the ADC read value.
|
the each row of array is the ADC read value.
|
||||||
- #thermal-sensor-cells: Should be 1. See ./thermal.txt for a description
|
|
||||||
of this property.
|
If not specified, driver assumes the ADC channel
|
||||||
|
gives milliCelsius directly.
|
||||||
|
|
||||||
Example :
|
Example :
|
||||||
#include <dt-bindings/thermal/thermal.h>
|
#include <dt-bindings/thermal/thermal.h>
|
||||||
|
|
Loading…
Reference in New Issue