Skip to content

Commit 9c770bc

Browse files
vladislav-pejiccfriedt
authored andcommitted
boards: shields: EVAL-AD4052-ARDZ comp and overlay
Fix for compatible property. Addition of hardware timer to be used with APARD32690 board. Signed-off-by: Vladislav Pejic <[email protected]>
1 parent 1d02d57 commit 9c770bc

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

boards/shields/eval_ad4052_ardz/boards/apard32690_max32690_m4.overlay

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,23 @@
99
io-channels = <&adc4052_eval_ad4052_ardz 0>;
1010
};
1111
};
12+
13+
&arduino_spi {
14+
adc4052_eval_ad4052_ardz: adc4052@0 {
15+
conversion-gpios = <&arduino_header 12 (GPIO_ACTIVE_HIGH | MAX32_GPIO_VSEL_VDDIOH)>;
16+
};
17+
};
18+
19+
&timer0 {
20+
status = "okay";
21+
22+
counter0: counter {
23+
status = "okay";
24+
};
25+
};
26+
27+
/ {
28+
chosen {
29+
zephyr,adc-clock = &counter0;
30+
};
31+
};

boards/shields/eval_ad4052_ardz/eval_ad4052_ardz.overlay

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>
88

9+
/ {
10+
aliases {
11+
adc0 = &adc4052_eval_ad4052_ardz;
12+
};
13+
};
14+
915
&arduino_spi {
1016
status = "okay";
1117

@@ -21,7 +27,7 @@
2127
#size-cells = <0>;
2228
#io-channel-cells = <1>;
2329
status = "okay";
24-
compatible = "adi,ad405x-adc";
30+
compatible = "adi,ad4052-adc";
2531

2632
channel@0 {
2733
reg = <0>;

0 commit comments

Comments
 (0)