Maxim MAX30101/2 heart rate and pulse oximeter and MAX30105 particle-sensor

Schema identifier ($id): "http://devicetree.org/schemas/iio/health/maxim,max30102.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Matt Ranostay <matt.ranostay@konsulko.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "maxim,max30102", "maxim,max30105"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "maxim,max30101"

Item 2

Exact value (const): "maxim,max30105"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Connected to ADC_RDY pin.

maxim,red-led-current-microamp — not listed as required here #

RED LED current. Each step is approximately 200 microamps.

Minimum value (minimum): 0

Maximum value (maximum): 50800

maxim,ir-led-current-microamp — not listed as required here #

IR LED current. Each step is approximately 200 microamps.

Minimum value (minimum): 0

Maximum value (maximum): 50800

maxim,green-led-current-microamp — not listed as required here #

Green LED current. Each step is approximately 200 microamps.

Minimum value (minimum): 0

Maximum value (maximum): 50800

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "maxim,max30102"

When the condition matches (then) #

Properties and child nodes (properties)

maxim,green-led-current-microamp — not listed as required here

false — Not permitted by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts"

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    heart-rate@57 {
        compatible = "maxim,max30102";
        reg = <0x57>;
        maxim,red-led-current-microamp = <7000>;
        maxim,ir-led-current-microamp = <7000>;
        interrupt-parent = <&gpio1>;
        interrupts = <16 2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page