1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
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':
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.
37 If not specified, driver assumes the ADC channel gives milliCelsius
39 $ref: /schemas/types.yaml#/definitions/int32-matrix
42 - description: Temperature in milliCelsius
43 - description: ADC read value
47 - '#thermal-sensor-cells'
51 additionalProperties: false
55 #include <dt-bindings/thermal/thermal.h>
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 = <