adi,max30009 (on i2c bus)

Description

MAX30009 Bio-Impedance AFE with I2C connection

Properties

Properties not inherited from the base binding file.

Name

Type

Details

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.

int-gpios

phandle-array

Interrupt (INT) pin. The MAX30009 INT output is active low and open-drain
by default; the property value should describe the signal presented to the SoC.

fifo-watermark

int

Specify the FIFO watermark level in frame count.
Default value is the reset value.

Default value: 129

Value range: 1 to 256

fifo-a-full-type

boolean

A_FULL_TYPE sets the A_FULL interrupt behavior. When cleared, A_FULL
reasserts every sample while the almost-full condition persists; when set,
A_FULL asserts once and does not reassert until the FIFO is read and a new
almost-full condition occurs. Cleared at reset.

fifo-rollover

boolean

FIFO_RO enables FIFO roll-over. When set, the FIFO keeps pushing samples
once full and overwrites the oldest data (write and read pointers both
advance); when cleared, new samples are dropped until the FIFO is read.
Disabled at reset.

ref-clk-source

int

PLL reference clock source (REF_CLK_SEL). "internal" selects one of the
on-chip slow oscillators; "external" selects the clock driven on the FCLK
pin. Defaults to "internal", matching the device reset state.

Default value: 0

Legal values: 0, 1

clk-freq-sel

int

PLL reference clock frequency in Hz (CLK_FREQ_SEL). When ref-clk-source is
"internal" this selects which on-chip oscillator is used; when "external"
it must match the frequency of the clock supplied on FCLK. Defaults to
32768 Hz.

Default value: 32768

Legal values: 32000, 32768

clk-fine-tune

int

Fine-tune trim for the internal slow oscillator (CLK_FINE_TUNE, 5-bit
two's-complement code, 0.2% per LSB). Defaults to 0 (no shift).

Default value: 0

Value range: 0 to 31

pll-multiplier

int

PLL feedback multiplier M, programmed into MDIV as M = MDIV + 1. Choose M
so PLL_CLK = M x REF_CLK lands in 14-28 MHz. Defaults to 444 (the MDIV
reset value of 443).

Default value: 444

Value range: 427 to 875

bioz-adc-clk-div

int

BioZ ADC clock divider (NDIV), dividing PLL_CLK to derive the BioZ ADC
sample clock. Defaults to 512 (the NDIV reset value).

Default value: 512

Legal values: 512, 1024

bioz-synth-clk-div

int

BioZ frequency-synthesis clock divider (KDIV), dividing PLL_CLK to derive
the DDS DAC clock. Defaults to 1 (the KDIV reset value).

Default value: 1

Legal values: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192

bioz-adc-osr

int

BioZ ADC oversampling ratio (BIOZ_ADC_OSR) for the I and Q ADCs. Defaults
to 8 (the reset value).

Default value: 8

Legal values: 8, 16, 32, 64, 128, 256, 512, 1024

bioz-dac-osr

int

BioZ DDS DAC oversampling ratio (BIOZ_DAC_OSR). Defaults to 32 (the reset
value).

Default value: 32

Legal values: 32, 64, 128, 256

bioz-i-en

boolean

Enable the in-phase (I) BioZ drive and receive channel (BIOZ_I_EN). Also
turns on the PLL and bandgap bias. Disabled at reset (channel off when
this property is omitted).

bioz-q-en

boolean

Enable the quadrature-phase (Q) BioZ drive and receive channel
(BIOZ_Q_EN). Also turns on the PLL and bandgap bias. Disabled at reset
(channel off when this property is omitted).

bioz-bg-en

boolean

Enable the BioZ bandgap bias. Disabled
at reset (channel off when this property is omitted).

bioz-dhpf

int

BioZ digital high-pass filter cutoff (BIOZ_DHPF[1:0]), expressed as a
register code with the cutoff given relative to the BioZ sample rate.
Defaults to 0 (bypass, the reset value).

Default value: 0

Legal values: 0, 1, 2

bioz-dlpf

int

BioZ digital low-pass filter cutoff (BIOZ_DLPF[2:0]), expressed as a
register code with the cutoff given relative to the BioZ sample rate.
Defaults to 0 (bypass, the reset value).

Default value: 0

Legal values: 0, 1, 2, 3, 4

en-bioz-thresh

boolean

Enable the BioZ threshold detector (EN_BIOZ_THRESH), comparing the
bioz-cmp-selected data against bioz-high-threshold and bioz-low-threshold.
Disabled at reset.

bioz-cmp

int

BioZ comparator selection (BIOZ_CMP[1:0]). 0=I, 1=Q, 2=Z. Defaults to 0 (I channel).

Default value: 0

Legal values: 0, 1, 2

bioz-drv-mode

int

Stimulus type driven onto the electrodes by the BioZ transmit channel
(BIOZ_DRV_MODE[1:0]). Defaults to 0 (current drive, the reset value).

Default value: 0

Legal values: 0, 1, 2, 3

bioz-idrv-rge

int

Internal current-range resistor (BIOZ_IDRV_RGE), setting the current
magnitude when bioz-ext-res is disabled.

Default value: 0

Legal values: 0, 1, 2, 3

bioz-vdrv-mag

int

In voltage drive mode, BIOZ_VDRV_MAG sets the voltage amplitude at DRVR,
which is connected to EL1. BIOZ_IDRV_RGE is ignored. In current drive mode,
BIOZ_VDRV_MAG and BIOZ_IDRV_RGE set the current magnitude.

Default value: 0

Legal values: 0, 1, 2, 3

bioz-ext-res

boolean

Enable external resistor (REXT) for BioZ current magnitude setting. When
disabled (0), internal range resistors set by BIOZ_IDRV_RGE and BIOZ_VDRV_MAG
are used. When enabled (1), REXT and BIOZ_VDRV_MAG set the current magnitude.

loff-rapid

boolean

LOFF_RAPID bypasses the approximately 128ms window delay for DC lead-off detection.

bioz-fast-start-en

boolean

BIOZ_FAST_START_EN enables the fast-start mode, which connects
the BIP and BIN inputs to VMID_RX through 10kΩ resistors after enabling the I or Q channel.

bioz-fast-manual

boolean

BIOZ_FAST_MANUAL is used to turn on the fast-start mode manually.

bioz-ahpf

int

BioZ analog high-pass filter cutoff (BIOZ_AHPF[1:0]), expressed as a
register code with the cutoff given relative to the BioZ sample rate.
Defaults to 0 (bypass, the reset value).

Default value: 0

Legal values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

bioz-ina-mode

int

BioZ INA mode (BIOZ_INA_MODE) configures the instrumentation amplifier
for either high power (low noise) or low power operation.
Defaults to 0 (high power mode, the reset value).

Default value: 0

Legal values: 0, 1

bioz-dm-dis

boolean

BIOZ_DM_DIS disables the receive channel demodulators.

bioz-gain

int

BIOZ_GAIN set the combined gain of the BioZ receive channel's INA and PGAs.
Defaults to 0 (1x gain, the reset value).

Default value: 0

Legal values: 0, 1, 2, 3

bioz-ext-cap

boolean

BIOZ_EXT_CAP selects the external capacitor (CEXT) connected between
the DRVXC and DRVSJ.

bioz-dc-restore

int

BIOZ_DC_RESTORE controls the DC restore switch in the current-generator.

Default value: 0

Legal values: 0, 1

bioz-amp-rge

int

Selects the output stage option for the voltage-drive amplifier
and current-drive amplifier within the BioZ transmit channel.

Default value: 0

Legal values: 0, 1, 2, 3

bioz-amp-bw

int

BIOZ_AMP_BW sets the gain bandwidth of the BioZ transmit channel's
voltage-drive and current-drive amplifiers. Defaults to 0 (low bandwidth).

Default value: 0

Legal values: 0, 1, 2, 3

bioz-low-threshold

int

BioZ under-range threshold (BIOZ_LO_THRESH[7:0], 8-bit register code),
compared against the symmetric band +/-32 x code. Only active when
en-bioz-thresh is set. Defaults to 0 (the reset value).

Default value: 0

Value range: 0 to 255

bioz-high-threshold

int

BioZ over-range threshold (BIOZ_HI_THRESH[7:0], 8-bit register code),
compared against the symmetric band +/-2048 x code. Only active when
en-bioz-thresh is set. Defaults to 255 (the reset value).

Default value: 255

Value range: 0 to 255

bioz-stby-on

boolean

BIOZ_STBY_ON keeps the receive channel's amplifiers, demodulators, and ADCs
enabled while the transmit channel is in standby (bioz-drv-mode = 3),
allowing faster wake-up. Disabled at reset.

bioz-q-clk-phase

int

BIOZ_Q_CLK_PHASE sets the Q channel demodulator clock phase relative to the
stimulus. 0 = quadrature phase (normal); 1 = in phase. Defaults to 0 (the
reset value).

Default value: 0

Legal values: 0, 1

bioz-i-clk-phase

int

BIOZ_I_CLK_PHASE sets the I channel demodulator clock phase relative to the
stimulus. 0 = in phase (normal); 1 = quadrature phase. Defaults to 0 (the
reset value).

Default value: 0

Legal values: 0, 1

bioz-ina-chop-en

boolean

BIOZ_INA_CHOP_EN enables chopping in the BioZ receive channel's
instrumentation amplifier; the chopping frequency is BIOZ_ADC_CLK / 2. INA
chopping is recommended except when F_BIOZ = BIOZ_ADC_CLK / 2. Disabled at
reset.

bioz-ch-fsel

boolean

BIOZ_CH_FSEL selects the BioZ receive PGA/AAF chopping frequency: disabled
(0) is BIOZ_ADC_CLK / 8, enabled (1) is BIOZ_ADC_CLK / 4. Set to 1 when
F_BIOZ = BIOZ_ADC_CLK / 8. Disabled at reset.

bmux-rsel

int

BMUX_RSEL selects the resistive calibration load across DRVP/BIP and
DRVN/BIN for non-GSR applications (BMUX_RSEL[1:0]), applied only when
bmux-bist-en is set. Defaults to 0 (5100 ohm, the reset value).

Default value: 0

Legal values: 0, 1, 2, 3

bmux-bist-en

boolean

BMUX_BIST_EN connects the built-in self-test resistor (value from
bmux-rsel) between DRVP/BIP and DRVN/BIN for non-GSR applications. Disabled
at reset.

connect-cal-only

boolean

CONNECT_CAL_ONLY, when set with mux-en and cal-en, connects only the
CAL1-CAL4 pins and disconnects the ELx pins. Disabled at reset.

mux-en

boolean

MUX_EN enables the BioZ input/output MUX connections to the ELx and/or CALx
pins. When disabled all ELx and CALx pins are disconnected. Disabled at
reset.

cal-en

boolean

CAL_EN connects the calibration pins (CAL1=DRVP, CAL2=BIP, CAL3=BIN,
CAL4=DRVN) to measure the external calibration resistor when mux-en is set,
disconnecting the electrode pins. Disabled at reset.

bmux-gsr-rsel

int

BMUX_GSR_RSEL selects the resistive calibration load across DRVP/BIP and
DRVN/BIN for GSR applications (BMUX_GSR_RSEL[1:0]), applied only when
gsr-load-en is set. Defaults to 0 (25.7 kohm, the reset value).

Default value: 0

Legal values: 0, 1, 2, 3

gsr-load-en

boolean

GSR_LOAD_EN connects the built-in GSR load resistor (value from
bmux-gsr-rsel) between DRVP/BIP and DRVN/BIN. Disabled at reset.

en-ext-inload

boolean

EN_EXT_INLOAD enables the external guard-trace-drive circuit, which outputs
the buffered voltage from BIP and BIN onto the EL2A and EL3A pins. Disabled
at reset.

en-int-inload

boolean

EN_INT_INLOAD enables the circuit that compensates for input capacitive
loading on BIN and BIP. Disabled at reset.

bip-assign

int

BIP_ASSIGN selects the electrode pin for the BioZ positive input (BIP) when
mux-en is set (BIP_ASSIGN[1:0]); ignored when cal-en is set. Defaults to 0
(EL1, the reset value).

Default value: 0

Legal values: 0, 1, 2

bin-assign

int

BIN_ASSIGN selects the electrode pin for the BioZ negative input (BIN) when
mux-en is set (BIN_ASSIGN[1:0]); ignored when cal-en is set. Defaults to 0
(EL4, the reset value).

Default value: 0

Legal values: 0, 1, 2

drvp-assign

int

DRVP_ASSIGN selects the electrode pin for the BioZ positive drive (DRVP) in
current mode when mux-en is set (DRVP_ASSIGN[1:0]); ignored when cal-en is
set, and forced to EL1 in voltage or H-bridge mode. EL1 has the lowest
on-resistance; assign DRVP to EL1 for currents of 64 uA or greater. Defaults
to 0 (EL1, the reset value).

Default value: 0

Legal values: 0, 1, 2

drvn-assign

int

DRVN_ASSIGN selects the electrode pin for the BioZ negative drive (DRVN) in
current mode when mux-en is set (DRVN_ASSIGN[1:0]); ignored when cal-en is
set, and forced to EL4 in voltage or H-bridge mode. EL4 has the lowest
on-resistance; assign DRVN to EL4 for currents of 64 uA or greater. Defaults
to 0 (EL4, the reset value).

Default value: 0

Legal values: 0, 1, 2

en-lon-det

boolean

EN_LON_DET enables ultra-low-power DC lead-on detection on BIP and BIN. Only
functions when BioZ is disabled (bioz-i-en = bioz-q-en = 0). Disabled at
reset.

en-loff-det

boolean

EN_LOFF_DET enables DC lead-off detection on BIP and BIN. Only functions
when BioZ is enabled (bioz-i-en or bioz-q-en set). Disabled at reset.

en-ext-loff

boolean

EN_EXT_LOFF applies DC lead-off detection externally through EL2B and EL3B
for AC-coupled BioZ inputs on EL2A/EL3A, instead of the internal BIP/BIN
nodes. Disabled at reset.

en-drv-oor

boolean

EN_DRV_OOR enables the DRVN voltage monitor that detects drive-electrode
lead-off via an out-of-range AC voltage (DRV_OOR status). Disabled at reset.

loff-ipol

int

LOFF_IPOL sets the polarity of the matched DC lead-off current sources.
Defaults to 0 (non-inverted, the reset value).

Default value: 0

Legal values: 0, 1

loff-imag

int

LOFF_IMAG selects the DC lead-off current amplitude (LOFF_IMAG[2:0]).
Defaults to 0 (current sources disabled, the reset value).

Default value: 0

Legal values: 0, 1, 2, 3, 4, 5

loff-thresh

int

LOFF_THRESH selects the DC lead-off comparator voltage threshold around
VMID_RX (LOFF_THRESH[3:0], 4-bit code from VMID_RX +/-215 mV at 0 to
+/-665 mV at 15, 30 mV per step). Defaults to 0 (the reset value).

Default value: 0

Value range: 0 to 15

rbias-value

int

RBIAS_VALUE selects the BioZ input lead bias resistance between BIP/BIN and
VMID_RX (RBIAS_VALUE[1:0]), applied when en-rbias-bip or en-rbias-bin is
set. Defaults to 0 (50 Mohm, the reset value).

Default value: 0

Legal values: 0, 1, 2

en-rbias-bip

boolean

EN_RBIAS_BIP connects BIP to VMID_RX through the resistor selected by
rbias-value. Disabled at reset.

en-rbias-bin

boolean

EN_RBIAS_BIN connects BIN to VMID_RX through the resistor selected by
rbias-value. Disabled at reset.

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).