diff options
Diffstat (limited to 'zephyr/dts/bindings/temp/cros-ec,thermistor.yaml')
-rw-r--r-- | zephyr/dts/bindings/temp/cros-ec,thermistor.yaml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/temp/cros-ec,thermistor.yaml b/zephyr/dts/bindings/temp/cros-ec,thermistor.yaml new file mode 100644 index 0000000000..3121f8a95f --- /dev/null +++ b/zephyr/dts/bindings/temp/cros-ec,thermistor.yaml @@ -0,0 +1,57 @@ +# Copyright 2021 The ChromiumOS Authors +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# For more information: +# https://www.electronics-tutorials.ws/io/thermistors.html + +description: Common properties for thermistors + +compatible: "cros-ec,thermistor" + +properties: + scaling-factor: + required: true + type: int + description: Scaling factor for voltage pairs + + num-pairs: + required: true + type: int + description: Number of sample data points for linear interpolation + + steinhart-reference-mv: + required: true + type: int + description: > + Used only for testing. + Is the reference voltage for temperature 25C. + + steinhart-reference-res: + required: true + type: int + description: > + Used only for testing. + Is the reference resistance for temperature 25C. + +child-binding: + description: > + Data samples derived from Steinhart-Hart + equation in a resistor divider circuit. + Used in linear interpolation. + + properties: + milivolt: + type: int + required: true + description: Voltage reading for a given temperature sample + + temp: + type: int + required: true + description: Temperature (Celcius) in a sample + + sample-index: + type: int + required: true + description: The index of a datum to maintain sample order to interpolate. |