TI tmp1075 driver implemented based on tmp108 driver. The driver initializes the sensor based on the DTS. Added tmp1075 example overlay file to thermometer sample. All you need to do to use the sensor is to connect the I2C and optionally interrupt line. To see default DTS configuration option inspect `ti,tmp1075.yaml` bindings file and sensor spec. Signed-off-by: Paweł Czaplewski <pawel.czaplewski@arrow.com>
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
# Copyright (c) 2024 Arrow Electronics.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
description: |
|
|
TMP1075 Digital Temperature Sensor. See more info at
|
|
https://www.ti.com/product/TMP1075
|
|
|
|
compatible: "ti,tmp1075"
|
|
|
|
include: [sensor-device.yaml, i2c-device.yaml]
|
|
|
|
properties:
|
|
conversion-rate:
|
|
description: Conversion rate in us.
|
|
type: int
|
|
enum:
|
|
- 27500 # 27.5ms
|
|
- 55000 # 55ms
|
|
- 110000 # 110ms
|
|
- 220000 # 220ms
|
|
alert-gpios:
|
|
type: phandle-array
|
|
description: |
|
|
Identifies the ALERT signal, which is active-low open drain when
|
|
produced by the sensor.
|
|
one-shot-conversion:
|
|
description: One-shot conversion mode.
|
|
type: boolean
|
|
consecutive-fault-measurements:
|
|
description: Number of consecutive measured faults that will trigger the alert.
|
|
type: int
|
|
enum:
|
|
- 1
|
|
- 2
|
|
- 3
|
|
- 4
|
|
alert-pin-active-high:
|
|
description: Polarity of the alert pin.
|
|
type: boolean
|
|
interrupt-mode:
|
|
description: Selects the function of the ALERT pin.
|
|
type: boolean
|
|
shutdown-mode:
|
|
description: Sets the device in shutdown mode to conserve power.
|
|
type: boolean
|
|
lower-threshold:
|
|
description: Lower threshold for alert interrupt. Expressed in degrees C.
|
|
type: int
|
|
upper-threshold:
|
|
description: Upper threshold for alert interrupt. Expressed in degrees C.
|
|
type: int
|