1# Copyright (c) 2021, Eug Krashtan
2# SPDX-License-Identifier: Apache-2.0
3
4description: STM32 family TEMP node
5
6compatible: "st,stm32-temp"
7
8include: base.yaml
9
10properties:
11    label:
12      required: true
13
14    io-channels:
15      required: true
16      description: ADC channel for temperature sensor
17
18    ts-voltage-mv:
19      type: int
20      default: 3300
21      description: Temperature sensor voltage in millivolts
22
23    avgslope:
24      type: int
25      default: 25
26      description: |
27        Average slope of T-V chart (in mV/C x10) according to
28        datasheet "Electrical characteristics/Operating conditions"
29        STM32F1 Table 5.3.19 (min 4 mV/C, max 4.6, default 4.3)
30        STM32F4 Table 6.3.21 default 2.5
31
32    v25:
33      type: int
34      default: 760
35      description: |
36        Voltage of temperature sensor at 25C in mV according to
37        datasheet "Electrical characteristics/Operating conditions"
38        STM32F1 Table 5.3.19 (min 1340, max 1520, default 1430)
39        STM32F4 Table 6.3.21 default 760
40
41    ntc:
42      type: boolean
43      description: Negative Temperature Coefficient. True if STM32F1
44