Skip to content

Commit 1c1d0d1

Browse files
jclsnwoqidaideshi
authored andcommitted
overlays: Add MAX30102 HR to i2c-sensor overlay
Add support for the MAX30102 heart rate and blood oxygen sensor to the i2c-sensor overlay. See: raspberrypi/linux#4535 Signed-off-by: Phil Elwell <[email protected]>
1 parent a111628 commit 1c1d0d1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,9 @@ Params: addr Set the address for the BH1750, BME280, BME680,
17251725

17261726
htu21 Select the HTU21 temperature and humidity sensor
17271727

1728+
int_pin Set the GPIO to use for interrupts (max30102
1729+
only)
1730+
17281731
lm75 Select the Maxim LM75 temperature sensor
17291732
Valid addresses 0x48-0x4f, default 0x4f
17301733

@@ -1733,6 +1736,9 @@ Params: addr Set the address for the BH1750, BME280, BME680,
17331736
max17040 Select the Maxim Integrated MAX17040 battery
17341737
monitor
17351738

1739+
max30102 Select the Maxim Integrated MAX30102 heart-rate
1740+
and blood-oxygen sensor
1741+
17361742
sht3x Select the Sensiron SHT3x temperature and
17371743
humidity sensor. Valid addresses 0x44-0x45,
17381744
default 0x44

arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,30 @@
291291
};
292292
};
293293

294+
fragment@19 {
295+
target = <&i2c_arm>;
296+
__dormant__ {
297+
#address-cells = <1>;
298+
#size-cells = <0>;
299+
status = "okay";
300+
301+
max30102: max30102@57 {
302+
compatible = "maxim,max30102";
303+
reg = <0x57>;
304+
maxim,red-led-current-microamp = <7000>;
305+
maxim,ir-led-current-microamp = <7000>;
306+
interrupt-parent = <&gpio>;
307+
interrupts = <4 2>;
308+
};
309+
};
310+
};
311+
294312
__overrides__ {
295313
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
296314
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
297315
<&ds1621>,"reg:0", <&bme680>,"reg:0", <&ccs811>,"reg:0",
298316
<&bh1750>,"reg:0";
317+
int_pin = <&max30102>, "interrupts:0";
299318
bme280 = <0>,"+0";
300319
bmp085 = <0>,"+1";
301320
bmp180 = <0>,"+2";
@@ -316,5 +335,6 @@
316335
sgp30 = <0>,"+16";
317336
ccs811 = <0>, "+17";
318337
bh1750 = <0>, "+18";
338+
max30102 = <0>,"+19";
319339
};
320340
};

0 commit comments

Comments
 (0)