[PATCH v3 0/2] iio: health: max30100: Add DT LED pulse-width support
From: Shrikant Raskar
Date: Sun Oct 12 2025 - 13:30:51 EST
Add Device Tree support for configuring the LED pulse-width of the MAX30100
sensor, and updates the driver to read and apply this property.
Testing:
- Verify DT property read successfully in probe().
- Verify default fallback to 1600 us when DT property is omitted.
- Confirm SPO2_CONFIG register programmed correctly using regmap_read().
- Validate different DT pulse-width values (200, 400, 800, 1600 us)
are applied correctly.
- Validate probe() failure for invalid LED pulse-width
- Tested-on: Raspberry Pi 3B + MAX30100 breakout board
Changelog:
Changes from v2:
- Fix DT binding schema errors
- Add default value
- Remove changelog from commit message
- Add missing header file
Shrikant Raskar (2):
dt-bindings: iio: health: max30100: Add LED pulse-width property
iio: health: max30100: Make LED pulse-width configurable via DT
.../bindings/iio/health/maxim,max30100.yaml | 8 ++++
drivers/iio/health/max30100.c | 38 +++++++++++++++++--
2 files changed, 43 insertions(+), 3 deletions(-)
base-commit: 8bd9238e511d02831022ff0270865c54ccc482d6
--
2.43.0