zephyr/dts/bindings/sensor/microchip,tcn75a.yaml
Daniel DeGrasse 6c10da7957 drivers: sensor: introduce driver for TCN75A temperature sensor
Add driver for TCN75A temperature sensor. The following features are
supported:
- TCN75A oneshot mode, which allows single shot conversions with lower
  power consumtion
- Resolution selection, up to 12 bit resolution (9 bit default)
- Triggering based on temperatue thresholds. If the TCN75A exits a set
  threshold range, the application can be notified via a callback.

Signed-off-by: Daniel DeGrasse <daniel@degrasse.com>
2023-06-17 08:01:16 -04:00

43 lines
1.3 KiB
YAML

# Copyright 2023 Daniel DeGrasse <daniel@degrasse.com>
# SPDX-License-Identifier: Apache-2.0
description: TCN75A ambient temperature sensor
compatible: "microchip,tcn75a"
include: [sensor-device.yaml, i2c-device.yaml]
properties:
alert-gpios:
type: phandle-array
description: |
ALERT pin
This pin defaults to active low when produced by the sensor.
The property value should ensure the gpio flags properly describe
the signal that is presented to the driver. Required in order to use
triggering support.
resolution:
type: string
default: "9-bit"
enum:
- "9-bit"
- "10-bit"
- "11-bit"
- "12-bit"
description: |
Sensor resolution. Higher resolutions will result in longer conversion
times. Note: datasheet's claim about the ambient temperature register:
> When the 0.5°C, 0.25°C or 0.125°C resolutions are selected,
> bit 6, bit 7 or bit 8 will remain clear <0>,
> respectively.
appears to be incorrect. Only conversion times seem to be affected by
resolution selection.
oneshot-mode:
type: boolean
description: |
Oneshot sampling mode. Reduces power consumption, but disables triggering
feature as well as high resolution sampling. Only supported with 9 bit
resolution.