maxim,max32664c (on i2c bus)

Description

MAX32664 biometric sensor hub


The MAX32664 is a ultra-low power biometric sensor hub.

NOTES:
This driver is primarily written to work with a MAX86141. Other sensors can be
used but they are untested! The driver supports up to two photodetectors (PDs)
and three LEDs fix. It requires a specific LED
configuration for the MAX86141.
  LED1 -> Green
  LED2 -> IR
  LED3 -> Red
The LEDs can be changed manually but this may require changes in the driver.

This driver is tested with Sensor Hub firmware 30.13.31 and an external
Accelerometer (e.g. LIS2DH12).

See more info at:
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX32664.pdf

Properties

Properties not inherited from the base binding file.

Name

Type

Details

reset-gpios

phandle-array

External System Reset (Active-Low) Input.

This property is required.

mfio-gpios

phandle-array

MFIO asserts low as an output when the sensor hub needs to communication with the host; MFIO acts as an input and when held low during a reset, the sensor hub enters bootloader mode.

This property is required.

use-max86141

boolean

Use the MAX86141 as the AFE for the MAX32664C. This is the default and recommended configuration. The driver is optimized for this sensor.

use-max86161

boolean

Use the MAX86161 as the AFE for the MAX32664C.

motion-time

int

Sensor Hub configuration - Motion activation time in milliseconds. The default corresponds to Table 12 in the HR and SpO2 User guide.

Default value: 200

motion-threshold

int

Sensor Hub configuration - Motion activation time in milli-g. The default corresponds to Table 12 in the HR and SpO2 User guide.

Default value: 500

report-period

int

Sensor Hub configuration - Set the samples report period (e.g., a value of 25 means a samples report is generated once every 25 samples). The default corresponds to Table 16 in the HR and SpO2 User guide.

Default value: 1

spo2-calib

array

Algorithm configuration - SpO2 calibration coefficients. The default corresponds to Table 12 in the HR and SpO2 User guide.

Default value: [4293300630, 833333, 10000000]

min-integration-time

int

Algorithm configuration - Minimum integration time in microseconds. The default corresponds to Table 11 in the HR and SpO2 User guide.

Default value: 14

Legal values: 14, 29, 58, 117

min-sampling-rate

int

Algorithm configuration - Minimum sampling rate (samples per second) and averaging (samples). The default corresponds to Table 11 in the HR and SpO2 User guide.

Default value: 50

Legal values: 25, 50, 100, 200, 400

max-integration-time

int

Algorithm configuration - Maximum integration time in microseconds. The default corresponds to Table 11 in the HR and SpO2 User guide.

Default value: 117

Legal values: 14, 29, 58, 117

max-sampling-rate

int

Algorithm configuration - Maximum sampling rate (samples per second) and averaging (samples). The default corresponds to Table 11 in the HR and SpO2 User guide.

Default value: 100

Legal values: 25, 50, 100, 200, 400

led-current

uint8-array

Initial LED current configuration in bits. Please check the datasheet of the attached AFE to determine the appropriate values. The current can also be changed later by the firmware. Index 0 corresponds to LED1, index 1 to LED2, and index 2 to LED3. The default corresponds to Table 5 in the HR and SpO2 User guide.

Default value: [127, 127, 127]

hr-config

uint8-array

Algorithm configuration - LED and PD configuration for the heartrate measurement. The first entry configures channel 1, the second channel 2. The default corresponds to Table 15 in the HR and SpO2 User guide.

Default value: [0, 1]

spo2-config

uint8-array

Algorithm configuration - LED and PD configuration for the SpO2 measurement. The first entry configures the IR channel, the second the red channel. The default corresponds to Table 15 in the HR and SpO2 User guide.

Default value: [16, 32]

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.