1# Copyright (c) 2019 Centaur Analytics, Inc
2# SPDX-License-Identifier: Apache-2.0
3
4description: Texas Instruments TMP116 temperature sensor
5
6compatible: "ti,tmp116"
7
8bus: tmp116
9
10include: [sensor-device.yaml, i2c-device.yaml]
11
12properties:
13  odr:
14    type: int
15    default: 0x200
16    enum: [0, 0x80, 0x100, 0x180, 0x200, 0x280, 0x300, 0x380]
17    description: |
18      Specify the default temperature output data rate in milliseconds (ms).
19      Default is power-up configuration.
20
21      - 0     # TMP116_DT_ODR_15_5_MS
22      - 0x80  # TMP116_DT_ODR_125_MS
23      - 0x100 # TMP116_DT_ODR_250_MS
24      - 0x180 # TMP116_DT_ODR_500_MS
25      - 0x200 # TMP116_DT_ODR_1000_MS
26      - 0x280 # TMP116_DT_ODR_4000_MS
27      - 0x300 # TMP116_DT_ODR_8000_MS
28      - 0x380 # TMP116_DT_ODR_16000_MS
29  oversampling:
30    type: int
31    default: 0x20
32    enum: [0, 0x20, 0x40, 0x60]
33    description: |
34      Set number of sample to averaging in one readout.
35      Default is power-up configuration (8 samples).
36
37      - 0    # TMP116_DT_OVERSAMPLING_1
38      - 0x20 # TMP116_DT_OVERSAMPLING_8
39      - 0x40 # TMP116_DT_OVERSAMPLING_32
40      - 0x60 # TMP116_DT_OVERSAMPLING_64
41