xref: /freebsd/sys/contrib/device-tree/Bindings/iio/health/max30102.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotMaxim MAX30102 heart rate and pulse oximeter sensor
2*c66ec88fSEmmanuel VadotMaxim MAX30105 optical particle-sensing module
3*c66ec88fSEmmanuel Vadot
4*c66ec88fSEmmanuel Vadot* https://datasheets.maximintegrated.com/en/ds/MAX30102.pdf
5*c66ec88fSEmmanuel Vadot* https://datasheets.maximintegrated.com/en/ds/MAX30105.pdf
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotRequired properties:
8*c66ec88fSEmmanuel Vadot  - compatible: must be "maxim,max30102" or "maxim,max30105"
9*c66ec88fSEmmanuel Vadot  - reg: the I2C address of the sensor
10*c66ec88fSEmmanuel Vadot  - interrupts: the sole interrupt generated by the device
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadot  Refer to interrupt-controller/interrupts.txt for generic
13*c66ec88fSEmmanuel Vadot  interrupt client node bindings.
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotOptional properties:
16*c66ec88fSEmmanuel Vadot  - maxim,red-led-current-microamp: configuration for red LED current
17*c66ec88fSEmmanuel Vadot  - maxim,ir-led-current-microamp: configuration for IR LED current
18*c66ec88fSEmmanuel Vadot  - maxim,green-led-current-microamp: configuration for green LED current
19*c66ec88fSEmmanuel Vadot    (max30105 only)
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot    Note that each step is approximately 200 microamps, ranging from 0 uA to
22*c66ec88fSEmmanuel Vadot    50800 uA.
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel VadotExample:
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel Vadotmax30102@57 {
27*c66ec88fSEmmanuel Vadot	compatible = "maxim,max30102";
28*c66ec88fSEmmanuel Vadot	reg = <0x57>;
29*c66ec88fSEmmanuel Vadot	maxim,red-led-current-microamp = <7000>;
30*c66ec88fSEmmanuel Vadot	maxim,ir-led-current-microamp = <7000>;
31*c66ec88fSEmmanuel Vadot	interrupt-parent = <&gpio1>;
32*c66ec88fSEmmanuel Vadot	interrupts = <16 2>;
33*c66ec88fSEmmanuel Vadot};
34