ti,tmp451 (on i2c bus)

Description

Texas Instruments TMP451 remote and local temperature sensor.
See https://www.ti.com/product/TMP451

Properties

Properties not inherited from the base binding file.

Name

Type

Details

conversion-rate-microhz

int

Conversion rate in micro-Hz. Controls how often the sensor
performs temperature conversions in continuous mode.
  62500    = 0.0625 Hz (16s)
  125000   = 0.125 Hz (8s)
  250000   = 0.25 Hz (4s)
  500000   = 0.5 Hz (2s)
  1000000  = 1 Hz (1s)
  2000000  = 2 Hz (500ms)
  4000000  = 4 Hz (250ms)
  8000000  = 8 Hz (125ms)
  16000000 = 16 Hz (63ms)
  32000000 = 32 Hz (32ms)
Defaults to 16000000 (16 Hz), which matches POR value.

Default value: 16000000

Legal values: 62500, 125000, 250000, 500000, 1000000, 2000000, 4000000, 8000000, 16000000, 32000000

therm-hysteresis

int

THERM hysteresis value in deg C. Defines how far below the
THERM limit the temperature must drop before the THERM output is
de-asserted.
Valid range: 0 to 255.
Defaults to 10, which matches POR value.

Default value: 10

ideality-factor

int

Ideality factor (eta-factor) correction register value for the remote diode.
See Table 27 in the TMP451 datasheet for the mapping between
register value and effective ideality factor.
Valid range: -128 to 127.
Defaults to 0 (eta = 1.008), which matches POR value.

Default value: 0

digital-filter

int

Digital filter control register value. Enables the on-chip digital
filter on the remote temperature channel.
  0 = filter disabled
  1 = filter level 1 enabled (averages last 4 samples)
  2 = filter level 2 enabled (averages last 8 samples)
Defaults to 0 (disabled), which matches POR value.

Default value: 0

Legal values: 0, 1, 2

remote-offset-millicelsius

int

Remote temperature offset in milli-deg C. This value is
added to the remote ADC result to compensate for system-level
calibration errors. The TMP451 offset register has 0.0625 deg C
resolution.
Valid range: -128000 to 127937.
Defaults to 0, which matches POR value.

Default value: 0

local-therm-limit

int

Local temperature THERM limit in deg C.
When the local temperature exceeds this value, the THERM output (pin 4) is asserted.
Valid range: -64 to 191.
Defaults to 85, which matches POR value (but raw value adjusted for extended range).

Default value: 85

remote-therm-limit

int

Remote temperature THERM limit in deg C.
When the remote temperature exceeds this value, the THERM output (pin 4) is asserted.
Valid range: -64 to 191.
Defaults to 108, which matches POR value (but raw value adjusted for extended range).

Default value: 108

pin6-mode

string

Configures the function of pin 6 (ALERT/THERM2).
Note: Software triggers only support the ALERT configuration; the driver assumes
if this pin is configured for THERM2 it will not be used as an interrupt.
  "alert" = latching; triggers on any limit violation or remote diode open
  "therm2" = non-latching; triggers on high limit exceeded only, self-clears with hysteresis
Defaults to "alert", which matches POR value.

Default value: alert

Legal values: alert, therm2

consecutive-alerts

int

Number of consecutive out-of-limit measurements required before the ALERT pin is asserted.
Note: Only applies when pin6-mode is configured as ALERT.
Defaults to 1, which matches POR value.

Default value: 1

Legal values: 1, 2, 3, 4

alert-gpios

phandle-array

GPIO connected to the ALERT pin (pin 6).
Active-low, open-drain output.
Note: The driver only supports this if pin6-mode is configured as ALERT.

friendly-name

string

Human readable string describing the sensor. It can be used to
distinguish multiple instances of the same model (e.g., lid accelerometer
vs. base accelerometer in a laptop) to a host operating system.

This property is defined in the Generic Sensor Property Usages of the HID
Usage Tables specification
(https://usb.org/sites/default/files/hut1_3_0.pdf, section 22.5).

supply-gpios

phandle-array

GPIO specifier that controls power to the device.

This property should be provided when the device has a dedicated
switch that controls power to the device.  The supply state is
entirely the responsibility of the device driver.

Contrast with vin-supply.

vin-supply

phandle

Reference to the regulator that controls power to the device.
The referenced devicetree node must have a regulator compatible.

This property should be provided when device power is supplied
by a shared regulator.  The supply state is dependent on the
request status of all devices fed by the regulator.

Contrast with supply-gpios.  If both properties are provided
then the regulator must be requested before the supply GPIOS is
set to an active state, and the supply GPIOS must be set to an
inactive state before releasing the regulator.