Lines Matching +full:thermal +full:- +full:sensor
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/thermal/generic-adc-thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: General Purpose Analog To Digital Converter (ADC) based thermal sensor
10 - Laxman Dewangan <ldewangan@nvidia.com>
13 On some of platforms, thermal sensor like thermistors are connected to
14 one of ADC channel and sensor resistance is read via voltage across the
15 sensor resistor. The voltage read across the sensor is mapped to
16 temperature using voltage-temperature lookup table.
20 const: generic-adc-thermal
22 '#thermal-sensor-cells':
25 io-channels:
28 io-channel-names:
29 const: sensor-channel
31 temperature-lookup-table:
39 $ref: /schemas/types.yaml#/definitions/int32-matrix
42 - description: Temperature in milliCelsius
43 - description: ADC read value
46 - compatible
47 - '#thermal-sensor-cells'
48 - io-channels
49 - io-channel-names
54 - |
55 #include <dt-bindings/thermal/thermal.h>
57 thermal-sensor {
58 compatible = "generic-adc-thermal";
59 #thermal-sensor-cells = <0>;
60 io-channels = <&ads1015 1>;
61 io-channel-names = "sensor-channel";
62 temperature-lookup-table = <
63 (-40000) 2578
64 (-39000) 2577
65 (-38000) 2576
66 (-37000) 2575
67 (-36000) 2574
68 (-35000) 2573
69 (-34000) 2572
70 (-33000) 2571
71 (-32000) 2569
72 (-31000) 2568
73 (-30000) 2567