summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/temp/cros_ec_thermistor.yaml
blob: d4bc32ed3cccef3c858cb716b70faf6f77cc7566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# 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.