| .. | .. |
|---|
| 8 | 8 | Required properties: |
|---|
| 9 | 9 | =================== |
|---|
| 10 | 10 | - compatible: Must be "generic-adc-thermal". |
|---|
| 11 | +- #thermal-sensor-cells: Should be 1. See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml for a description |
|---|
| 12 | + of this property. |
|---|
| 13 | +Optional properties: |
|---|
| 14 | +=================== |
|---|
| 11 | 15 | - temperature-lookup-table: Two dimensional array of Integer; lookup table |
|---|
| 12 | 16 | to map the relation between ADC value and |
|---|
| 13 | 17 | temperature. When ADC is read, the value is |
|---|
| 14 | 18 | looked up on the table to get the equivalent |
|---|
| 15 | 19 | temperature. |
|---|
| 20 | + |
|---|
| 16 | 21 | The first value of the each row of array is the |
|---|
| 17 | 22 | temperature in milliCelsius and second value of |
|---|
| 18 | 23 | the each row of array is the ADC read value. |
|---|
| 19 | | -- #thermal-sensor-cells: Should be 1. See ./thermal.txt for a description |
|---|
| 20 | | - of this property. |
|---|
| 24 | + |
|---|
| 25 | + If not specified, driver assumes the ADC channel |
|---|
| 26 | + gives milliCelsius directly. |
|---|
| 21 | 27 | |
|---|
| 22 | 28 | Example : |
|---|
| 23 | 29 | #include <dt-bindings/thermal/thermal.h> |
|---|