Path: blob/master/Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/temperature/adi,ltc2983.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices LTC2983, LTC2986, LTM2985 Multi-sensor Temperature system78maintainers:9- Nuno Sá <nuno.sa@analog.com>1011description: |12Analog Devices LTC2983, LTC2984, LTC2986, LTM2985 Multi-Sensor Digital13Temperature Measurement Systems1415https://www.analog.com/media/en/technical-documentation/data-sheets/2983fc.pdf16https://www.analog.com/media/en/technical-documentation/data-sheets/2984fb.pdf17https://www.analog.com/media/en/technical-documentation/data-sheets/29861fa.pdf18https://www.analog.com/media/en/technical-documentation/data-sheets/ltm2985.pdf1920$defs:21sensor-node:22type: object23description: Sensor node common constraints2425properties:26reg:27description:28Channel number. Connects the sensor to the channel with this number29of the device.30minimum: 131maximum: 203233adi,sensor-type:34description: Type of sensor connected to the device.35$ref: /schemas/types.yaml#/definitions/uint323637required:38- reg39- adi,sensor-type404142properties:43compatible:44oneOf:45- enum:46- adi,ltc298347- adi,ltc298648- adi,ltm298549- items:50- const: adi,ltc298451- const: adi,ltc29835253reg:54maxItems: 15556interrupts:57maxItems: 15859vdd-supply: true6061adi,mux-delay-config-us:62description: |63Extra delay prior to each conversion, in addition to the internal 1ms64delay, for the multiplexer to switch input configurations and65excitation values.6667This property is supposed to be in microseconds, but to maintain68compatibility, this value will be multiplied by 100 before usage.69maximum: 25570default: 07172adi,filter-notch-freq:73description:74Notch frequency of the digital filter.750 - 50/60Hz rejection761 - 60Hz rejection772 - 50Hz rejection78$ref: /schemas/types.yaml#/definitions/uint3279minimum: 080maximum: 281default: 08283'#address-cells':84const: 18586'#size-cells':87const: 08889patternProperties:90"^thermocouple@":91$ref: '#/$defs/sensor-node'92unevaluatedProperties: false9394description: Thermocouple sensor.9596properties:97adi,sensor-type:98description: |991 - Type J Thermocouple1002 - Type K Thermocouple1013 - Type E Thermocouple1024 - Type N Thermocouple1035 - Type R Thermocouple1046 - Type S Thermocouple1057 - Type T Thermocouple1068 - Type B Thermocouple1079 - Custom Thermocouple108$ref: /schemas/types.yaml#/definitions/uint32109minimum: 1110maximum: 9111112adi,single-ended:113description: Whether the sensor is single-ended.114type: boolean115116adi,sensor-oc-current-microamp:117description: Pulsed current value applied during open-circuit detect.118enum: [10, 100, 500, 1000]119default: 10120121adi,cold-junction-handle:122description:123Sensor responsible for measuring the thermocouple cold junction124temperature.125$ref: /schemas/types.yaml#/definitions/phandle126127adi,custom-thermocouple:128description:129Used for digitizing custom thermocouples.130See Page 59 of the datasheet.131$ref: /schemas/types.yaml#/definitions/int64-matrix132minItems: 3133maxItems: 64134items:135items:136- description: Voltage point in nV, signed.137- description: Temperature point in uK.138139allOf:140- if:141properties:142adi,sensor-type:143const: 9144then:145required:146- adi,custom-thermocouple147148"^diode@":149$ref: '#/$defs/sensor-node'150unevaluatedProperties: false151152description: Diode sensor.153154properties:155adi,sensor-type:156description: Sensor type for diodes.157$ref: /schemas/types.yaml#/definitions/uint32158const: 28159160adi,single-ended:161description: Whether the sensor is single-ended.162type: boolean163164adi,three-conversion-cycles:165description:166Whether to use three conversion cycles to remove parasitic167resistance between the device and the diode.168type: boolean169170adi,average-on:171description:172Whether to use a running average of the diode temperature173reading to reduce the noise when the diode is used as a cold174junction temperature element on an isothermal block where175temperatures change slowly.176type: boolean177178adi,excitation-current-microamp:179description:180Magnitude of the 1l excitation current applied to the diode.1814l excitation current will be 4 times this value, and 8l182excitation current will be 8 times value.183enum: [10, 20, 40, 80]184default: 10185186adi,ideal-factor-value:187description:188Diode ideality factor.189Set this property to 1000000 times the real value.190$ref: /schemas/types.yaml#/definitions/uint32191default: 0192193"^rtd@":194$ref: '#/$defs/sensor-node'195unevaluatedProperties: false196description: RTD sensor.197198properties:199reg:200minimum: 2201maximum: 20202203adi,sensor-type:204description: |20510 - RTD PT-1020611 - RTD PT-5020712 - RTD PT-10020813 - RTD PT-20020914 - RTD PT-50021015 - RTD PT-100021116 - RTD PT-1000 (0.00375)21217 - RTD NI-12021318 - RTD Custom214$ref: /schemas/types.yaml#/definitions/uint32215minimum: 10216maximum: 18217218adi,rsense-handle:219description: Associated sense resistor sensor.220$ref: /schemas/types.yaml#/definitions/phandle221222adi,number-of-wires:223description:224Number of wires used by the RTD.2255 means 4 wires with Kelvin sense resistor.226$ref: /schemas/types.yaml#/definitions/uint32227enum: [2, 3, 4, 5]228default: 2229230adi,rsense-share:231description:232Whether to enable sense resistor sharing, where one sense233resistor is used by multiple sensors.234type: boolean235236adi,excitation-current-microamp:237description: Excitation current applied to the RTD.238enum: [5, 10, 25, 50, 100, 250, 500, 1000]239default: 5240241adi,rtd-curve:242description: |243RTD curve and the corresponding Callendar-VanDusen constants.2440 - European2451 - American2462 - Japanese2473 - ITS-90248$ref: /schemas/types.yaml#/definitions/uint32249minimum: 0250maximum: 3251default: 0252253adi,custom-rtd:254description:255Used for digitizing custom RTDs.256See Page 62 of the datasheet.257$ref: /schemas/types.yaml#/definitions/uint64-matrix258minItems: 3259maxItems: 64260items:261items:262- description: Resistance point in uOhms.263- description: Temperature point in uK.264265required:266- adi,rsense-handle267268allOf:269- if:270properties:271adi,number-of-wires:272const: 4273then:274properties:275adi,current-rotate:276description:277Whether to enable excitation current rotation to automatically278remove parasitic thermocouple effects.279type: boolean280281dependencies:282adi,current-rotate: [ "adi,rsense-share" ]283284- if:285properties:286adi,sensor-type:287const: 18288then:289required:290- adi,custom-rtd291292"^thermistor@":293$ref: '#/$defs/sensor-node'294unevaluatedProperties: false295description: Thermistor sensor.296297properties:298adi,sensor-type:299description:30019 - Thermistor 44004/44033 2.252kohm at 25°C30120 - Thermistor 44005/44030 3kohm at 25°C30221 - Thermistor 44007/44034 5kohm at 25°C30322 - Thermistor 44006/44031 10kohm at 25°C30423 - Thermistor 44008/44032 30kohm at 25°C30524 - Thermistor YSI 400 2.252kohm at 25°C30625 - Thermistor Spectrum 1003k 1kohm30726 - Thermistor Custom Steinhart-Hart30827 - Custom Thermistor309$ref: /schemas/types.yaml#/definitions/uint32310minimum: 19311maximum: 27312313adi,rsense-handle:314description: Associated sense resistor sensor.315$ref: /schemas/types.yaml#/definitions/phandle316317adi,single-ended:318description: Whether the sensor is single-ended.319type: boolean320321adi,rsense-share:322description:323Whether to enable sense resistor sharing, where one sense324resistor is used by multiple sensors.325type: boolean326327adi,current-rotate:328description:329Whether to enable excitation current rotation to automatically330remove parasitic thermocouple effects.331type: boolean332333adi,excitation-current-nanoamp:334description:335Excitation current applied to the thermistor.3360 sets the sensor in auto-range mode.337enum: [0, 250, 500, 1000, 5000, 10000, 25000, 50000, 100000, 250000,338500000, 1000000]339default: 0340341adi,custom-thermistor:342description:343Used for digitizing custom thermistors.344See Page 65 of the datasheet.345$ref: /schemas/types.yaml#/definitions/uint64-matrix346minItems: 3347maxItems: 64348items:349items:350- description: Resistance point in uOhms.351- description: Temperature point in uK.352353adi,custom-steinhart:354description:355Steinhart-Hart coefficients in raw format, used for digitizing356custom thermistors.357See Page 68 of the datasheet.358$ref: /schemas/types.yaml#/definitions/uint32-array359minItems: 6360maxItems: 6361362required:363- adi,rsense-handle364365dependencies:366adi,current-rotate: [ "adi,rsense-share" ]367368allOf:369- if:370properties:371adi,sensor-type:372const: 26373then:374properties:375adi,excitation-current-nanoamp:376enum: [250, 500, 1000, 5000, 10000, 25000, 50000, 100000,377250000, 500000, 1000000]378default: 1000379required:380- adi,custom-steinhart381- if:382properties:383adi,sensor-type:384const: 27385then:386properties:387adi,excitation-current-nanoamp:388enum: [250, 500, 1000, 5000, 10000, 25000, 50000, 100000,389250000, 500000, 1000000]390default: 1000391required:392- adi,custom-thermistor393394"^adc@":395$ref: '#/$defs/sensor-node'396unevaluatedProperties: false397description: Direct ADC sensor.398399properties:400adi,sensor-type:401description: Sensor type for direct ADC sensors.402$ref: /schemas/types.yaml#/definitions/uint32403const: 30404405adi,single-ended:406description: Whether the sensor is single-ended.407type: boolean408409"^temp@":410$ref: '#/$defs/sensor-node'411unevaluatedProperties: false412description: Active analog temperature sensor.413414properties:415adi,sensor-type:416description: Sensor type for active analog temperature sensors.417$ref: /schemas/types.yaml#/definitions/uint32418const: 31419420adi,single-ended:421description: Whether the sensor is single-ended.422type: boolean423424adi,custom-temp:425description:426Used for digitizing active analog temperature sensors.427See Page 67 of the LTM2985 datasheet.428$ref: /schemas/types.yaml#/definitions/uint64-matrix429minItems: 3430maxItems: 64431items:432items:433- description: Voltage point in nV, signed.434- description: Temperature point in uK.435436required:437- adi,custom-temp438439"^rsense@":440$ref: '#/$defs/sensor-node'441unevaluatedProperties: false442description: Sense resistor sensor.443444properties:445reg:446minimum: 2447maximum: 20448449adi,sensor-type:450description: Sensor type sense resistor sensors.451$ref: /schemas/types.yaml#/definitions/uint32452const: 29453454adi,rsense-val-milli-ohms:455description: Value of the sense resistor.456457required:458- adi,rsense-val-milli-ohms459460required:461- compatible462- reg463- interrupts464- vdd-supply465466additionalProperties: false467468allOf:469- if:470properties:471compatible:472contains:473enum:474- adi,ltc2983475- adi,ltc2984476then:477patternProperties:478"^temp@": false479480examples:481- |482#include <dt-bindings/interrupt-controller/irq.h>483spi {484#address-cells = <1>;485#size-cells = <0>;486487temperature-sensor@0 {488compatible = "adi,ltc2983";489reg = <0>;490491#address-cells = <1>;492#size-cells = <0>;493494vdd-supply = <&supply>;495interrupts = <20 IRQ_TYPE_EDGE_RISING>;496interrupt-parent = <&gpio>;497498thermocouple@18 {499reg = <18>;500adi,sensor-type = <8>; //Type B501adi,sensor-oc-current-microamp = <10>;502adi,cold-junction-handle = <&diode5>;503};504505diode5: diode@5 {506reg = <5>;507adi,sensor-type = <28>;508};509510rsense2: rsense@2 {511reg = <2>;512adi,sensor-type = <29>;513adi,rsense-val-milli-ohms = <1200000>; //1.2Kohms514};515516rtd@14 {517reg = <14>;518adi,sensor-type = <15>; //PT1000519/*2-wire, internal gnd, no current rotation*/520adi,number-of-wires = <2>;521adi,rsense-share;522adi,excitation-current-microamp = <500>;523adi,rsense-handle = <&rsense2>;524};525526adc@10 {527reg = <10>;528adi,sensor-type = <30>;529adi,single-ended;530};531532thermistor@12 {533reg = <12>;534adi,sensor-type = <26>; //Steinhart535adi,rsense-handle = <&rsense2>;536adi,custom-steinhart = <0x00f371ec 0x123456785370x2c0f8733 0x10018c66 0xa0feaccd5380x90021d99>; //6 entries539};540541thermocouple@20 {542reg = <20>;543adi,sensor-type = <9>; //custom thermocouple544adi,single-ended;545adi,custom-thermocouple =546/bits/ 64 <(-50220000) 0>,547/bits/ 64 <(-30200000) 99100000>,548/bits/ 64 <(-5300000) 135400000>,549/bits/ 64 <0 273150000>,550/bits/ 64 <40200000 361200000>,551/bits/ 64 <55300000 522100000>,552/bits/ 64 <88300000 720300000>,553/bits/ 64 <132200000 811200000>,554/bits/ 64 <188700000 922500000>,555/bits/ 64 <460400000 1000000000>; //10 pairs556};557};558};559...560561562