zephyr/dts/bindings/sensor/ti,tmp116.yaml
Fredrik Gihl 3a07f6d7dd driver: sensor: tmp116: adjust yaml to render nicer in documentation
Adjust detail description of ODR to contain documentation about
valid values.

Signed-off-by: Fredrik Gihl <fgihl@hotmail.com>
2025-01-24 15:41:50 +01:00

41 lines
1.1 KiB
YAML

# Copyright (c) 2019 Centaur Analytics, Inc
# SPDX-License-Identifier: Apache-2.0
description: Texas Instruments TMP116 temperature sensor
compatible: "ti,tmp116"
bus: tmp116
include: [sensor-device.yaml, i2c-device.yaml]
properties:
odr:
type: int
default: 0x200
enum: [0, 0x80, 0x100, 0x180, 0x200, 0x280, 0x300, 0x380]
description: |
Specify the default temperature output data rate in milliseconds (ms).
Default is power-up configuration.
- 0 # TMP116_DT_ODR_15_5_MS
- 0x80 # TMP116_DT_ODR_125_MS
- 0x100 # TMP116_DT_ODR_250_MS
- 0x180 # TMP116_DT_ODR_500_MS
- 0x200 # TMP116_DT_ODR_1000_MS
- 0x280 # TMP116_DT_ODR_4000_MS
- 0x300 # TMP116_DT_ODR_8000_MS
- 0x380 # TMP116_DT_ODR_16000_MS
oversampling:
type: int
default: 0x20
enum: [0, 0x20, 0x40, 0x60]
description: |
Set number of sample to averaging in one readout.
Default is power-up configuration (8 samples).
- 0 # TMP116_DT_OVERSAMPLING_1
- 0x20 # TMP116_DT_OVERSAMPLING_8
- 0x40 # TMP116_DT_OVERSAMPLING_32
- 0x60 # TMP116_DT_OVERSAMPLING_64