linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/2] devicetree: add documentation for MAX30102 oximeter
@ 2017-02-04 10:22 Matt Ranostay
  2017-02-04 10:22 ` [PATCH v3 2/2] iio: health: add MAX30102 oximeter driver support Matt Ranostay
  2017-02-05  9:45 ` [PATCH v3 1/2] devicetree: add documentation for MAX30102 oximeter Jonathan Cameron
  0 siblings, 2 replies; 4+ messages in thread
From: Matt Ranostay @ 2017-02-04 10:22 UTC (permalink / raw)
  To: linux-iio; +Cc: Matt Ranostay

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Matt Ranostay <matt@ranostay.consulting>
---
 .../devicetree/bindings/iio/health/max30102.txt    | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/health/max30102.txt

Changes from v1:
* none

Changes from v2:
* none

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>;
+};
-- 
2.10.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-05  9:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-04 10:22 [PATCH v3 1/2] devicetree: add documentation for MAX30102 oximeter Matt Ranostay
2017-02-04 10:22 ` [PATCH v3 2/2] iio: health: add MAX30102 oximeter driver support Matt Ranostay
2017-02-05  9:46   ` Jonathan Cameron
2017-02-05  9:45 ` [PATCH v3 1/2] devicetree: add documentation for MAX30102 oximeter Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).