adi,max30210 (on i2c bus)

Description

MAX30210, a high-accuracy digital temperature sensor from Analog Devices.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

interrupt-gpios

phandle-array

The INT1 pin defaults to active low when produced by the sensor. The property value should
ensure the flags properly describe the signal that is presented to the driver.

sampling-rate

int

The sampling rate of the sensor in Hz. This value is used to configure the sensor's internal
sampling rate. If not specified, the driver will use a default value of 0.015625 Hz
which is also the reset value.

Legal values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

alarm-high-setup

int

The high temperature threshold for the sensor in degrees Celsius. When the temperature
exceeds this threshold, the INT1 pin will be asserted. The value is represented as a
signed 16-bit integer in two's complement format, with a resolution of 0.005 degrees Celsius.
Usage: input a temperature in millidegrees Celsius (e.g., 25000 for 25.000°C), and the driver
will convert it to the appropriate register value. Default value is equivalent is 163.835°C
which is equivalent to the reset value (0x7FFF) for ALARM_HI register.

Default value: 163835

alarm-low-setup

int

The low temperature threshold for the sensor in degrees Celsius. When the temperature
falls below this threshold, the INT1 pin will be asserted. The value is represented as a
signed 16-bit integer in two's complement format, with a resolution of 0.005 degrees Celsius.
Usage: input a temperature in millidegrees Celsius (e.g., 25000 for 25.000°C), and the driver
will convert it to the appropriate register value. Default value is equivalent is -163.840°C
which is equivalent to the reset value (0x8000) for ALARM_LO register.

Default value: -163840

inc-fast-thresh

int

The increment threshold between samples. If the temperature increments
by more than N x 5 m°C between samples, the INT1 pin will be asserted
when interrupts are enabled. The default value is 0, which represents 0 m°C
and corresponds to the device register reset value.

dec-fast-thresh

int

The decrement threshold between samples. If the temperature decrements
by more than N x 5 m°C between samples, the INT1 pin will be asserted
when interrupts are enabled. The default value is 0, which represents 0 m°C
and corresponds to the device register reset value.

hi-trip-count

int

The number of trip counts exceeding the high temperature threshold that must occur
to assert required to assert the TEMP_HI alarm on the INT1 pin. Default value is 1
which equates to a single sample exceeding the high temperature threshold and corresponds
to the device register reset value.

Default value: 1

Legal values: 1, 2, 3, 4

lo-trip-count

int

The number of trip counts below the low temperature threshold that must occur
to assert required to assert the TEMP_LO alarm on the INT1 pin. Default value is 1
which equates to a single sample below the low temperature threshold and corresponds
to the device register reset value.

Default value: 1

Legal values: 1, 2, 3, 4

hi-trip-non-consecutive

boolean

If true, the high temperature threshold trip count is non-consecutive.

lo-trip-non-consecutive

boolean

If true, the low temperature threshold trip count is non-consecutive.

start-continuous-conversion

boolean

If true, the sensor will start temperature conversions immediately after initialization.
If false, the sensor will remain in standby mode until explicitly started by the driver.

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.