aboutsummaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/iio/health/max30100.txt
diff options
context:
space:
mode:
authorMatt Ranostay <mranostay@gmail.com>2015-12-09 22:04:49 -0800
committerJonathan Cameron <jic23@kernel.org>2015-12-12 12:14:37 +0000
commit4d33615df58bf308626489cbfb8acbc8bbd45658 (patch)
tree2d6d54bf0408df7066312b42a8f7d4775a3dd8ba /Documentation/devicetree/bindings/iio/health/max30100.txt
parentb41fa86b67bd338d4ffa0b69f0fb1c3013a489e0 (diff)
downloadlinux-4d33615df58bf308626489cbfb8acbc8bbd45658.tar.gz
iio: light: add MAX30100 oximeter driver support
MAX30100 is an heart rate and pulse oximeter sensor that works using two LEDS of different wavelengths, and detecting the light reflected back. This patchset adds support for both IR and RED LED channels which can be processed in userspace to determine heart rate and blood oxygen levels. Signed-off-by: Matt Ranostay <mranostay@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/health/max30100.txt')
-rw-r--r--Documentation/devicetree/bindings/iio/health/max30100.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/health/max30100.txt b/Documentation/devicetree/bindings/iio/health/max30100.txt
new file mode 100644
index 000000000000..f6fbac66ad06
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/health/max30100.txt
@@ -0,0 +1,21 @@
+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.
+
+Example:
+
+max30100@057 {
+ compatible = "maxim,max30100";
+ reg = <57>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <16 2>;
+};