From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f41.google.com ([74.125.83.41]:35101 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753818AbdBDKWy (ORCPT ); Sat, 4 Feb 2017 05:22:54 -0500 Received: by mail-pg0-f41.google.com with SMTP id 194so13936639pgd.2 for ; Sat, 04 Feb 2017 02:22:53 -0800 (PST) From: Matt Ranostay To: linux-iio@vger.kernel.org Cc: Matt Ranostay Subject: [PATCH v3 1/2] devicetree: add documentation for MAX30102 oximeter Date: Sat, 4 Feb 2017 02:22:50 -0800 Message-Id: <20170204102251.3841-1-matt@ranostay.consulting> Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Matt Ranostay --- .../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