Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: health: max30100: Add LED pulse-width property

The LED pulse width on the MAX30100 sensor determines how long the
IR/Red LEDs are driven during each sample, directly affecting the
emitted optical energy and hence the received signal amplitude.

This parameter is highly dependent on the mechanical and optical
integration of the sensor, such as:
- The type and thickness of the optical window or lens covering
the sensor.
- The distance between the LED and photodiode.
- The reflectivity of the target surface.

For example:
- A smartwatch or wearable ring with a thin glass window can operate
with shorter pulses (200-400 us) to save power.
- A medical-grade pulse oximeter or sensor mounted behind a thicker
protective layer may require longer pulses (800-1600 us) for
reliable signal amplitude.

Because this configuration is determined by hardware design rather than
by runtime conditions, it is appropriate to describe it in the DT.

If not specified, the driver defaults to 1600 us to maintain
existing behavior.

Tested on: Raspberry Pi 3B + MAX30100 breakout board.

Signed-off-by: Shrikant Raskar <raskar.shree97@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Shrikant Raskar and committed by
Jonathan Cameron
e7966a49 8f0072c7

+8
+8
Documentation/devicetree/bindings/iio/health/maxim,max30100.yaml
··· 27 27 LED current whilst the engine is running. First indexed value is 28 28 the configuration for the RED LED, and second value is for the IR LED. 29 29 30 + maxim,pulse-width-us: 31 + description: | 32 + LED pulse width in microseconds. Appropriate pulse width depends on 33 + factors such as optical window absorption, LED-to-sensor distance, 34 + and expected reflectivity of the skin or contact surface. 35 + enum: [200, 400, 800, 1600] 36 + default: 1600 37 + 30 38 additionalProperties: false 31 39 32 40 required: