diff options
author | Matt Ranostay <matt@ranostay.consulting> | 2017-02-04 02:22:50 -0800 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-02-05 09:44:57 +0000 |
commit | 5247dd46cf1c2e3300545ea102b866a46aaddbc3 (patch) | |
tree | 773dd0b471fdd5fa94cd264b514a0a33c011f6c0 /Documentation/devicetree/bindings/iio/health/max30102.txt | |
parent | 2eaf14277b02fb400b9a5baee5a7cb079cb6e63d (diff) | |
download | blackbird-obmc-linux-5247dd46cf1c2e3300545ea102b866a46aaddbc3.tar.gz blackbird-obmc-linux-5247dd46cf1c2e3300545ea102b866a46aaddbc3.zip |
devicetree: add documentation for MAX30102 oximeter
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Matt Ranostay <matt@ranostay.consulting>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/health/max30102.txt')
-rw-r--r-- | Documentation/devicetree/bindings/iio/health/max30102.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/health/max30102.txt b/Documentation/devicetree/bindings/iio/health/max30102.txt new file mode 100644 index 000000000000..c695e7cbeefb --- /dev/null +++ b/Documentation/devicetree/bindings/iio/health/max30102.txt @@ -0,0 +1,30 @@ +Maxim MAX30102 heart rate and pulse oximeter sensor + +* https://datasheets.maximintegrated.com/en/ds/MAX30102.pdf + +Required properties: + - compatible: must be "maxim,max30102" + - 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,red-led-current-microamp: configuration for RED LED current + - maxim,ir-led-current-microamp: configuration for IR LED current + + Note that each step is approximately 200 microamps, ranging from 0 uA to + 50800 uA. + +Example: + +max30100@57 { + compatible = "maxim,max30102"; + reg = <0x57>; + maxim,red-led-current-microamp = <7000>; + maxim,ir-led-current-microamp = <7000>; + interrupt-parent = <&gpio1>; + interrupts = <16 2>; +}; |