Path: blob/master/Documentation/devicetree/bindings/iio/afe/temperature-sense-rtd.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/afe/temperature-sense-rtd.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Temperature Sense RTD78maintainers:9- Liam Beguin <liambeguin@gmail.com>1011description: |12RTDs (Resistance Temperature Detectors) are a kind of temperature sensors13used to get a linear voltage to temperature reading within a give range14(usually 0 to 100 degrees Celsius).1516When an io-channel measures the output voltage across an RTD such as a17PT1000, the interesting measurement is almost always the corresponding18temperature, not the voltage output. This binding describes such a circuit.1920The general transfer function here is (using SI units)2122V = R(T) * iexc23R(T) = r0 * (1 + alpha * T)24T = 1 / (alpha * r0 * iexc) * (V - r0 * iexc)2526The following circuit matches what's in the examples section.27285V029-----30|31+---+----+32| R 5k |33+---+----+34|35V 1mA36|37+---- Vout38|39+---+----+40| PT1000 |41+---+----+42|43-----44GND4546properties:47compatible:48const: temperature-sense-rtd4950io-channels:51maxItems: 152description: |53Channel node of a voltage io-channel.5455'#io-channel-cells':56const: 05758excitation-current-microamp:59description: The current fed through the RTD sensor.6061alpha-ppm-per-celsius:62description: |63alpha can also be expressed in micro-ohms per ohm Celsius. It's a linear64approximation of the resistance versus temperature relationship65between 0 and 100 degrees Celsius.6667alpha = (R_100 - R_0) / (100 * R_0)6869Where, R_100 is the resistance of the sensor at 100 degrees Celsius, and70R_0 (or r-naught-ohms) is the resistance of the sensor at 0 degrees71Celsius.7273Pure platinum has an alpha of 3925. Industry standards such as IEC6075174and ASTM E-1137 specify an alpha of 3850.7576r-naught-ohms:77description: |78Resistance of the sensor at 0 degrees Celsius.79Common values are 100 for PT100, 500 for PT500, and 1000 for PT10008081additionalProperties: false82required:83- compatible84- io-channels85- excitation-current-microamp86- alpha-ppm-per-celsius87- r-naught-ohms8889examples:90- |91pt1000_1: temperature-sensor0 {92compatible = "temperature-sense-rtd";93#io-channel-cells = <0>;94io-channels = <&temp_adc1 0>;9596excitation-current-microamp = <1000>; /* i = U/R = 5 / 5000 */97alpha-ppm-per-celsius = <3908>;98r-naught-ohms = <1000>;99};100...101102103