mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
b11a34607d
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>
30 lines
903 B
Plaintext
30 lines
903 B
Plaintext
Maxim MAX30100 heart rate and pulse oximeter sensor
|
|
|
|
* https://datasheets.maximintegrated.com/en/ds/MAX30100.pdf
|
|
|
|
Required properties:
|
|
- compatible: must be "maxim,max30100"
|
|
- reg: the I2C address of the sensor
|
|
- interrupt-parent: should be the phandle for the interrupt controller
|
|
- interrupts: the sole interrupt generated by the device
|
|
|
|
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>;
|
|
};
|