forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 95099d4622f8cb224d94e314c7a8e0df60b13f87
kernel/Documentation/devicetree/bindings/thermal/thermal-generic-adc.txt
....@@ -8,16 +8,22 @@
88 Required properties:
99 ===================
1010 - 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
+===================
1115 - temperature-lookup-table: Two dimensional array of Integer; lookup table
1216 to map the relation between ADC value and
1317 temperature. When ADC is read, the value is
1418 looked up on the table to get the equivalent
1519 temperature.
20
+
1621 The first value of the each row of array is the
1722 temperature in milliCelsius and second value of
1823 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.
2127
2228 Example :
2329 #include <dt-bindings/thermal/thermal.h>