Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/health/maxim,max30102.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Maxim MAX30102 heart rate and pulse oximeter and MAX30105 particle-sensor
0008 
0009 maintainers:
0010   - Matt Ranostay <matt.ranostay@konsulko.com>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - maxim,max30102
0016       - maxim,max30105
0017 
0018   reg:
0019     maxItems: 1
0020 
0021   interrupts:
0022     maxItems: 1
0023     description: Connected to ADC_RDY pin.
0024 
0025   maxim,red-led-current-microamp:
0026     description: RED LED current. Each step is approximately 200 microamps.
0027     minimum: 0
0028     maximum: 50800
0029 
0030   maxim,ir-led-current-microamp:
0031     description: IR LED current. Each step is approximately 200 microamps.
0032     minimum: 0
0033     maximum: 50800
0034 
0035   maxim,green-led-current-microamp:
0036     description: Green LED current. Each step is approximately 200 microamps.
0037     minimum: 0
0038     maximum: 50800
0039 
0040 allOf:
0041   - if:
0042       properties:
0043         compatible:
0044           contains:
0045             const: maxim,max30100
0046     then:
0047       properties:
0048         maxim,green-led-current-microamp: false
0049 
0050 additionalProperties: false
0051 
0052 required:
0053   - compatible
0054   - reg
0055   - interrupts
0056 
0057 examples:
0058   - |
0059     i2c {
0060         #address-cells = <1>;
0061         #size-cells = <0>;
0062 
0063         heart-rate@57 {
0064             compatible = "maxim,max30102";
0065             reg = <0x57>;
0066             maxim,red-led-current-microamp = <7000>;
0067             maxim,ir-led-current-microamp = <7000>;
0068             interrupt-parent = <&gpio1>;
0069             interrupts = <16 2>;
0070         };
0071     };
0072 ...