xref: /freebsd/sys/contrib/device-tree/Bindings/iio/health/maxim,max30102.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/health/maxim,max30102.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
7*7d0873ebSEmmanuel Vadottitle: Maxim MAX30101/2 heart rate and pulse oximeter and MAX30105 particle-sensor
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Matt Ranostay <matt.ranostay@konsulko.com>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotproperties:
135def4c47SEmmanuel Vadot  compatible:
14*7d0873ebSEmmanuel Vadot    oneOf:
15*7d0873ebSEmmanuel Vadot      - enum:
165def4c47SEmmanuel Vadot          - maxim,max30102
175def4c47SEmmanuel Vadot          - maxim,max30105
18*7d0873ebSEmmanuel Vadot      - items:
19*7d0873ebSEmmanuel Vadot          - const: maxim,max30101
20*7d0873ebSEmmanuel Vadot          - const: maxim,max30105
215def4c47SEmmanuel Vadot
225def4c47SEmmanuel Vadot  reg:
235def4c47SEmmanuel Vadot    maxItems: 1
245def4c47SEmmanuel Vadot
255def4c47SEmmanuel Vadot  interrupts:
265def4c47SEmmanuel Vadot    maxItems: 1
275def4c47SEmmanuel Vadot    description: Connected to ADC_RDY pin.
285def4c47SEmmanuel Vadot
295def4c47SEmmanuel Vadot  maxim,red-led-current-microamp:
305def4c47SEmmanuel Vadot    description: RED LED current. Each step is approximately 200 microamps.
315def4c47SEmmanuel Vadot    minimum: 0
325def4c47SEmmanuel Vadot    maximum: 50800
335def4c47SEmmanuel Vadot
345def4c47SEmmanuel Vadot  maxim,ir-led-current-microamp:
355def4c47SEmmanuel Vadot    description: IR LED current. Each step is approximately 200 microamps.
365def4c47SEmmanuel Vadot    minimum: 0
375def4c47SEmmanuel Vadot    maximum: 50800
385def4c47SEmmanuel Vadot
395def4c47SEmmanuel Vadot  maxim,green-led-current-microamp:
405def4c47SEmmanuel Vadot    description: Green LED current. Each step is approximately 200 microamps.
415def4c47SEmmanuel Vadot    minimum: 0
425def4c47SEmmanuel Vadot    maximum: 50800
435def4c47SEmmanuel Vadot
445def4c47SEmmanuel VadotallOf:
455def4c47SEmmanuel Vadot  - if:
465def4c47SEmmanuel Vadot      properties:
475def4c47SEmmanuel Vadot        compatible:
485def4c47SEmmanuel Vadot          contains:
4901950c46SEmmanuel Vadot            const: maxim,max30102
505def4c47SEmmanuel Vadot    then:
515def4c47SEmmanuel Vadot      properties:
525def4c47SEmmanuel Vadot        maxim,green-led-current-microamp: false
535def4c47SEmmanuel Vadot
545def4c47SEmmanuel VadotadditionalProperties: false
555def4c47SEmmanuel Vadot
565def4c47SEmmanuel Vadotrequired:
575def4c47SEmmanuel Vadot  - compatible
585def4c47SEmmanuel Vadot  - reg
595def4c47SEmmanuel Vadot  - interrupts
605def4c47SEmmanuel Vadot
615def4c47SEmmanuel Vadotexamples:
625def4c47SEmmanuel Vadot  - |
635def4c47SEmmanuel Vadot    i2c {
645def4c47SEmmanuel Vadot        #address-cells = <1>;
655def4c47SEmmanuel Vadot        #size-cells = <0>;
665def4c47SEmmanuel Vadot
675def4c47SEmmanuel Vadot        heart-rate@57 {
685def4c47SEmmanuel Vadot            compatible = "maxim,max30102";
695def4c47SEmmanuel Vadot            reg = <0x57>;
705def4c47SEmmanuel Vadot            maxim,red-led-current-microamp = <7000>;
715def4c47SEmmanuel Vadot            maxim,ir-led-current-microamp = <7000>;
725def4c47SEmmanuel Vadot            interrupt-parent = <&gpio1>;
735def4c47SEmmanuel Vadot            interrupts = <16 2>;
745def4c47SEmmanuel Vadot        };
755def4c47SEmmanuel Vadot    };
765def4c47SEmmanuel Vadot...
77