diff options
author | Matt Ranostay <mranostay@gmail.com> | 2015-12-29 21:44:48 -0800 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-01-03 17:59:49 +0000 |
commit | b11a34607ded9b3dfb1992da47ac94bdf5945d53 (patch) | |
tree | 95cfcf34ff268480906abfa66dd002cd2edc2d3c /Documentation | |
parent | 35f739679a18d7a9680960c9cfc472ef012682dd (diff) | |
download | linux-b11a34607ded9b3dfb1992da47ac94bdf5945d53.tar.bz2 |
iio: health: max30100: add config for LED current
Allow the current for both RED and IR LEDs to be set via an device tree
property setting.
This is an optional setting that is useful for applications that have a
known glass attenuation factor.
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/iio/health/max30100.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/health/max30100.txt b/Documentation/devicetree/bindings/iio/health/max30100.txt index f6fbac66ad06..295a9edfa4fd 100644 --- a/Documentation/devicetree/bindings/iio/health/max30100.txt +++ b/Documentation/devicetree/bindings/iio/health/max30100.txt @@ -11,11 +11,19 @@ Required properties: Refer to interrupt-controller/interrupts.txt for generic interrupt client node bindings. +Optional properties: + - maxim,led-current-microamp: configuration for LED current in microamperes + while the engine is running. First indexed value is the configuration for + the RED LED, and second value is for the IR LED. + + Refer to the datasheet for the allowed current values. + Example: max30100@057 { compatible = "maxim,max30100"; reg = <57>; + maxim,led-current-microamp = <24000 50000>; interrupt-parent = <&gpio1>; interrupts = <16 2>; }; |