Lines Matching +full:temperature +full:- +full:lookup +full:- +full:table
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#
10 - Laxman Dewangan <ldewangan@nvidia.com>
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:
33 Lookup table to map the relation between ADC value and temperature.
34 When ADC is read, the value is looked up on the table to get the
35 equivalent temperature.
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