Skip to content

Commit d6dc4f7

Browse files
overlays: rpi-max14001-pmb-overlay.dts: Add MAX14001PMB example overlay
The MAX14001 is a configurable, isolated 10-bit ADC for multi-range binary inputs. Besides the ADC readings, the MAX14001 offers more features, like a binary comparator, a filtered reading that can provide the average of the last 2, 4, or 8 ADC readings, and an inrush comparator that triggers the inrush current. There is also a fault feature that can diagnose seven possible fault conditions. And an option to select an external or internal ADC voltage reference. The MAX14001PMB provides the hardware to evaluate the MAX14001 to measure two channels of data, line voltage and load current. Signed-off-by: Marilene Andrade Garcia <[email protected]>
1 parent aa26b18 commit d6dc4f7

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
309309
rpi-ltc2991.dtbo \
310310
rpi-ltc4162.dtbo \
311311
rpi-ltc6952.dtbo \
312+
rpi-max14001-pmb.dtbo \
312313
rpi-max14830-i2c.dtbo \
313314
rpi-max14830-spi.dtbo \
314315
rpi-max31335.dtbo \
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
/*
3+
* Overlay for the MAX14001 ADC
4+
*
5+
* Copyright (c) 2025 Marilene Andrade Garcia <[email protected]>
6+
*
7+
* Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/MAX14001-MAX14002.pdf
8+
*/
9+
10+
/dts-v1/;
11+
/plugin/;
12+
13+
/ {
14+
compatible = "brcm,bcm2712";
15+
};
16+
17+
&{/} {
18+
vdd: fixedregulator@0 {
19+
compatible = "regulator-fixed";
20+
regulator-name = "Isolated DC-DC Power Supply Input Voltage";
21+
regulator-min-microvolt = <3300000>;
22+
regulator-max-microvolt = <3300000>;
23+
regulator-boot-on;
24+
regulator-always-on;
25+
status = "okay";
26+
};
27+
28+
vddl: fixedregulator@1 {
29+
compatible = "regulator-fixed";
30+
regulator-name = "Logic Power Supply Voltage";
31+
regulator-min-microvolt = <3300000>;
32+
regulator-max-microvolt = <3300000>;
33+
regulator-boot-on;
34+
regulator-always-on;
35+
status = "okay";
36+
};
37+
38+
vrefin: fixedregulator@2 {
39+
compatible = "regulator-fixed";
40+
regulator-name = "Reference Input Range Voltage";
41+
regulator-min-microvolt = <1250000>;
42+
regulator-max-microvolt = <1250000>;
43+
regulator-boot-on;
44+
regulator-always-on;
45+
status = "okay";
46+
};
47+
};
48+
49+
&spi0 {
50+
status = "okay";
51+
max14001_u51: max14001@0 {
52+
compatible = "adi,max14001";
53+
reg = <0x0>;
54+
spi-max-frequency = <5000000>;
55+
vdd-supply = <&vdd>;
56+
vddl-supply = <&vddl>;
57+
vrefin-supply = <&vrefin>;
58+
status = "okay";
59+
};
60+
max14001_u11: max14001@1 {
61+
compatible = "adi,max14001";
62+
reg = <0x1>;
63+
spi-max-frequency = <5000000>;
64+
vdd-supply = <&vdd>;
65+
vddl-supply = <&vddl>;
66+
vrefin-supply = <&vrefin>;
67+
status = "okay";
68+
};
69+
};
70+
71+
&spidev0 {
72+
status = "disabled";
73+
};
74+
75+
&spidev1 {
76+
status = "disabled";
77+
};

0 commit comments

Comments
 (0)