1# Copyright (c) 2023 TOKITA Hiroshi
2# SPDX-License-Identifier: Apache-2.0
3
4description: RaspberryPi Pico family temperature sensor node
5
6compatible: "raspberrypi,pico-temp"
7
8include: sensor-device.yaml
9
10properties:
11  io-channels:
12    required: true
13    description: ADC channel for CPU temperature sensor
14
15  vbe:
16    type: int
17    default: 706000
18    description: |
19      Vbe voltage in microvolts at 27 degrees C. Vbe = 0.706V typically.
20      The temperature sensor measures the Vbe voltage of a biased bipolar diode.
21      The temperature calculates from the Vbe voltage measured by the sensor
22      using the following equation typical case.
23
24        T = 27 - (ADC_Voltage - 0.706)/0.001721
25
26      See also the vbe-slope section.
27
28  vbe-slope:
29    type: int
30    default: -1721
31    description: |
32      The slope of Vbe voltage in microvolts per degree C.
33      Typically, a slope of -1.721mV per degree.
34
35      See also the vbe section.
36