Analog Devices LTC2983, LTC2986, LTM2985 Multi-sensor Temperature system

Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/adi,ltc2983.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nuno Sá <nuno.sa@analog.com>"

Analog Devices LTC2983, LTC2984, LTC2986, LTM2985 Multi-Sensor Digital Temperature Measurement Systems

https://www.analog.com/media/en/technical-documentation/data-sheets/2983fc.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/2984fb.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/29861fa.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ltm2985.pdf

Reusable definitions ($defs) #

sensor-node #

Value type (type): "object"

Sensor node common constraints

Properties and child nodes (properties) #

reg — required here

Channel number. Connects the sensor to the channel with this number of the device.

Minimum value (minimum): 1

Maximum value (maximum): 20

adi,sensor-type — required here

Type of sensor connected to the device.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "reg", "adi,sensor-type"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "adi,ltc2983", "adi,ltc2986", "adi,ltm2985"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "adi,ltc2984"

Item 2

Exact value (const): "adi,ltc2983"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

vdd-supply — required here #

true — No constraints added by this property rule.

adi,mux-delay-config-us — not listed as required here #

Extra delay prior to each conversion, in addition to the internal 1ms delay, for the multiplexer to switch input configurations and excitation values.

This property is supposed to be in microseconds, but to maintain compatibility, this value will be multiplied by 100 before usage.

Maximum value (maximum): 255

Default value (default): 0

adi,filter-notch-freq — not listed as required here #

Notch frequency of the digital filter. 0 - 50/60Hz rejection 1 - 60Hz rejection 2 - 50Hz rejection

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 2

Default value (default): 0

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^thermocouple@ — name matches this regular expression #

Shared schema rule ($ref): #/$defs/sensor-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Thermocouple sensor.

Properties and child nodes (properties) #

adi,sensor-type — not listed as required here

1 - Type J Thermocouple 2 - Type K Thermocouple 3 - Type E Thermocouple 4 - Type N Thermocouple 5 - Type R Thermocouple 6 - Type S Thermocouple 7 - Type T Thermocouple 8 - Type B Thermocouple 9 - Custom Thermocouple

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1

Maximum value (maximum): 9

adi,single-ended — not listed as required here

Whether the sensor is single-ended.

Value type (type): "boolean"

adi,sensor-oc-current-microamp — not listed as required here

Pulsed current value applied during open-circuit detect.

Allowed values (enum): 10, 100, 500, 1000

Default value (default): 10

adi,cold-junction-handle — not listed as required here

Sensor responsible for measuring the thermocouple cold junction temperature.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

adi,custom-thermocouple — not listed as required here

Used for digitizing custom thermocouples. See Page 59 of the datasheet.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/int64-matrix

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 64

Array item rules (items)

Array item rules (items)

Item 1

Voltage point in nV, signed.

Item 2

Temperature point in uK.

All of these rules must match (allOf) #

Rule 1

Condition (if)

Properties and child nodes (properties)

adi,sensor-type — not listed as required here

Exact value (const): 9

When the condition matches (then)

Required in this object (required): "adi,custom-thermocouple"

^diode@ — name matches this regular expression #

Shared schema rule ($ref): #/$defs/sensor-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Diode sensor.

Properties and child nodes (properties) #

adi,sensor-type — not listed as required here

Sensor type for diodes.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Exact value (const): 28

adi,single-ended — not listed as required here

Whether the sensor is single-ended.

Value type (type): "boolean"

adi,three-conversion-cycles — not listed as required here

Whether to use three conversion cycles to remove parasitic resistance between the device and the diode.

Value type (type): "boolean"

adi,average-on — not listed as required here

Whether to use a running average of the diode temperature reading to reduce the noise when the diode is used as a cold junction temperature element on an isothermal block where temperatures change slowly.

Value type (type): "boolean"

adi,excitation-current-microamp — not listed as required here

Magnitude of the 1l excitation current applied to the diode. 4l excitation current will be 4 times this value, and 8l excitation current will be 8 times value.

Allowed values (enum): 10, 20, 40, 80

Default value (default): 10

adi,ideal-factor-value — not listed as required here

Diode ideality factor. Set this property to 1000000 times the real value.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 0

^rtd@ — name matches this regular expression #

Shared schema rule ($ref): #/$defs/sensor-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

RTD sensor.

Properties and child nodes (properties) #

reg — not listed as required here

Minimum value (minimum): 2

Maximum value (maximum): 20

adi,sensor-type — not listed as required here

10 - RTD PT-10 11 - RTD PT-50 12 - RTD PT-100 13 - RTD PT-200 14 - RTD PT-500 15 - RTD PT-1000 16 - RTD PT-1000 (0.00375) 17 - RTD NI-120 18 - RTD Custom

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 10

Maximum value (maximum): 18

adi,rsense-handle — required here

Associated sense resistor sensor.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

adi,number-of-wires — not listed as required here

Number of wires used by the RTD. 5 means 4 wires with Kelvin sense resistor.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 2, 3, 4, 5

Default value (default): 2

adi,rsense-share — not listed as required here

Whether to enable sense resistor sharing, where one sense resistor is used by multiple sensors.

Value type (type): "boolean"

adi,excitation-current-microamp — not listed as required here

Excitation current applied to the RTD.

Allowed values (enum): 5, 10, 25, 50, 100, 250, 500, 1000

Default value (default): 5

adi,rtd-curve — not listed as required here

RTD curve and the corresponding Callendar-VanDusen constants. 0 - European 1 - American 2 - Japanese 3 - ITS-90

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 3

Default value (default): 0

adi,custom-rtd — not listed as required here

Used for digitizing custom RTDs. See Page 62 of the datasheet.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64-matrix

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 64

Array item rules (items)

Array item rules (items)

Item 1

Resistance point in uOhms.

Item 2

Temperature point in uK.

Required in this object (required): "adi,rsense-handle"

All of these rules must match (allOf) #

Rule 1

Condition (if)

Properties and child nodes (properties)

adi,number-of-wires — not listed as required here

Exact value (const): 4

When the condition matches (then)

Properties and child nodes (properties)

adi,current-rotate — not listed as required here

Whether to enable excitation current rotation to automatically remove parasitic thermocouple effects.

Value type (type): "boolean"

Property dependencies (dependencies)

adi,current-rotate — applies when this property is present

Also requires: "adi,rsense-share"

Rule 2

Condition (if)

Properties and child nodes (properties)

adi,sensor-type — not listed as required here

Exact value (const): 18

When the condition matches (then)

Required in this object (required): "adi,custom-rtd"

^thermistor@ — name matches this regular expression #

Shared schema rule ($ref): #/$defs/sensor-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Thermistor sensor.

Properties and child nodes (properties) #

adi,sensor-type — not listed as required here

19 - Thermistor 44004/44033 2.252kohm at 25°C 20 - Thermistor 44005/44030 3kohm at 25°C 21 - Thermistor 44007/44034 5kohm at 25°C 22 - Thermistor 44006/44031 10kohm at 25°C 23 - Thermistor 44008/44032 30kohm at 25°C 24 - Thermistor YSI 400 2.252kohm at 25°C 25 - Thermistor Spectrum 1003k 1kohm 26 - Thermistor Custom Steinhart-Hart 27 - Custom Thermistor

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 19

Maximum value (maximum): 27

adi,rsense-handle — required here

Associated sense resistor sensor.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

adi,single-ended — not listed as required here

Whether the sensor is single-ended.

Value type (type): "boolean"

adi,rsense-share — not listed as required here

Whether to enable sense resistor sharing, where one sense resistor is used by multiple sensors.

Value type (type): "boolean"

adi,current-rotate — not listed as required here

Whether to enable excitation current rotation to automatically remove parasitic thermocouple effects.

Value type (type): "boolean"

adi,excitation-current-nanoamp — not listed as required here

Excitation current applied to the thermistor. 0 sets the sensor in auto-range mode.

Allowed values (enum): 0, 250, 500, 1000, 5000, 10000, 25000, 50000, 100000, 250000, 500000, 1000000

Default value (default): 0

adi,custom-thermistor — not listed as required here

Used for digitizing custom thermistors. See Page 65 of the datasheet.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64-matrix

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 64

Array item rules (items)

Array item rules (items)

Item 1

Resistance point in uOhms.

Item 2

Temperature point in uK.

adi,custom-steinhart — not listed as required here

Steinhart-Hart coefficients in raw format, used for digitizing custom thermistors. See Page 68 of the datasheet.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

Required in this object (required): "adi,rsense-handle"

Property dependencies (dependencies) #

adi,current-rotate — applies when this property is present

Also requires: "adi,rsense-share"

All of these rules must match (allOf) #

Rule 1

Condition (if)

Properties and child nodes (properties)

adi,sensor-type — not listed as required here

Exact value (const): 26

When the condition matches (then)

Properties and child nodes (properties)

adi,excitation-current-nanoamp — not listed as required here

Allowed values (enum): 250, 500, 1000, 5000, 10000, 25000, 50000, 100000, 250000, 500000, 1000000

Default value (default): 1000

Required in this object (required): "adi,custom-steinhart"

Rule 2

Condition (if)

Properties and child nodes (properties)

adi,sensor-type — not listed as required here

Exact value (const): 27

When the condition matches (then)

Properties and child nodes (properties)

adi,excitation-current-nanoamp — not listed as required here

Allowed values (enum): 250, 500, 1000, 5000, 10000, 25000, 50000, 100000, 250000, 500000, 1000000

Default value (default): 1000

Required in this object (required): "adi,custom-thermistor"

^adc@ — name matches this regular expression #

Shared schema rule ($ref): #/$defs/sensor-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Direct ADC sensor.

Properties and child nodes (properties) #

adi,sensor-type — not listed as required here

Sensor type for direct ADC sensors.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Exact value (const): 30

adi,single-ended — not listed as required here

Whether the sensor is single-ended.

Value type (type): "boolean"

^temp@ — name matches this regular expression #

Shared schema rule ($ref): #/$defs/sensor-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Active analog temperature sensor.

Properties and child nodes (properties) #

adi,sensor-type — not listed as required here

Sensor type for active analog temperature sensors.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Exact value (const): 31

adi,single-ended — not listed as required here

Whether the sensor is single-ended.

Value type (type): "boolean"

adi,custom-temp — required here

Used for digitizing active analog temperature sensors. See Page 67 of the LTM2985 datasheet.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64-matrix

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 64

Array item rules (items)

Array item rules (items)

Item 1

Voltage point in nV, signed.

Item 2

Temperature point in uK.

Required in this object (required): "adi,custom-temp"

^rsense@ — name matches this regular expression #

Shared schema rule ($ref): #/$defs/sensor-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Sense resistor sensor.

Properties and child nodes (properties) #

reg — not listed as required here

Minimum value (minimum): 2

Maximum value (maximum): 20

adi,sensor-type — not listed as required here

Sensor type sense resistor sensors.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Exact value (const): 29

adi,rsense-val-milli-ohms — required here

Value of the sense resistor.

Required in this object (required): "adi,rsense-val-milli-ohms"

Required in this object (required): "compatible", "reg", "interrupts", "vdd-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,ltc2983", "adi,ltc2984"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^temp@ — name matches this regular expression

false — Not permitted by this property rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    temperature-sensor@0 {
        compatible = "adi,ltc2983";
        reg = <0>;

        #address-cells = <1>;
        #size-cells = <0>;

        vdd-supply = <&supply>;
        interrupts = <20 IRQ_TYPE_EDGE_RISING>;
        interrupt-parent = <&gpio>;

        thermocouple@18 {
            reg = <18>;
            adi,sensor-type = <8>; //Type B
            adi,sensor-oc-current-microamp = <10>;
            adi,cold-junction-handle = <&diode5>;
        };

        diode5: diode@5 {
            reg = <5>;
            adi,sensor-type = <28>;
        };

        rsense2: rsense@2 {
            reg = <2>;
            adi,sensor-type = <29>;
            adi,rsense-val-milli-ohms = <1200000>; //1.2Kohms
        };

        rtd@14 {
            reg = <14>;
            adi,sensor-type = <15>; //PT1000
            /*2-wire, internal gnd, no current rotation*/
            adi,number-of-wires = <2>;
            adi,rsense-share;
            adi,excitation-current-microamp = <500>;
            adi,rsense-handle = <&rsense2>;
        };

        adc@10 {
            reg = <10>;
            adi,sensor-type = <30>;
            adi,single-ended;
        };

        thermistor@12 {
            reg = <12>;
            adi,sensor-type = <26>; //Steinhart
            adi,rsense-handle = <&rsense2>;
            adi,custom-steinhart = <0x00f371ec 0x12345678
                            0x2c0f8733 0x10018c66 0xa0feaccd
                            0x90021d99>; //6 entries
        };

        thermocouple@20 {
            reg = <20>;
            adi,sensor-type = <9>; //custom thermocouple
            adi,single-ended;
            adi,custom-thermocouple =
                     /bits/ 64 <(-50220000) 0>,
                     /bits/ 64 <(-30200000) 99100000>,
                     /bits/ 64 <(-5300000) 135400000>,
                     /bits/ 64 <0 273150000>,
                     /bits/ 64 <40200000 361200000>,
                     /bits/ 64 <55300000 522100000>,
                     /bits/ 64 <88300000 720300000>,
                     /bits/ 64 <132200000 811200000>,
                     /bits/ 64 <188700000 922500000>,
                     /bits/ 64 <460400000 1000000000>; //10 pairs
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page