Skip to content

Commit 5768e80

Browse files
committed
dts: overlays: max30210: Added example overlay
For further information about writing the devicetree for max30210, refer to bindings/devicetree/iio/temperature/adi,max30210.yaml. Added max30210.dtbo into Makefile, in order to build it automatically with make. Signed-off-by: Daniel Matyas <[email protected]>
1 parent 894a0c9 commit 5768e80

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
140140
justboom-digi.dtbo \
141141
ltc294x.dtbo \
142142
max31827.dtbo \
143+
max30210.dtbo \
143144
max98357a.dtbo \
144145
maxtherm.dtbo \
145146
mbed-dac.dtbo \
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// SPDX-License-Identifier: (GPL-2.0+)
2+
/* Overlay for MAX30210
3+
*
4+
* Copyright 2023 Analog Devices Inc.
5+
*/
6+
7+
/dts-v1/;
8+
/plugin/;
9+
10+
/ {
11+
compatible = "bcrm, bcm2711";
12+
};
13+
14+
&{/} {
15+
vdd: regulator {
16+
compatible = "regulator-fixed";
17+
regulator-name = "vdd";
18+
regulator-min-microvolt = <1800000>;
19+
regulator-max-microvolt = <1800000>;
20+
regulator-boot-on;
21+
regulator-always-on;
22+
};
23+
};
24+
25+
&i2c1 {
26+
#address-cells = <1>;
27+
#size-cells = <0>;
28+
status = "okay";
29+
30+
temperature-sensor@40 {
31+
compatible = "adi,max30210";
32+
reg = <0x40>;
33+
vdd-supply = <&vdd>;
34+
interrupt-parent = <&gpio>;
35+
// /* IRQ_TYPE_EDGE_BOTH | IRQ_TYPE_LEVEL_HIGH */
36+
interrupts = <17 0x0>;
37+
// adi,external-convert-enable;
38+
// adi,external-convert-rising-edge;
39+
};
40+
};

0 commit comments

Comments
 (0)