Skip to content

Commit b4ca871

Browse files
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 <vladislav.pejic@orioninc.com>
1 parent 3e916c0 commit b4ca871

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
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: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
/ {
8+
aliases {
9+
adc0 = &adc4052_eval_ad4052_ardz;
10+
};
11+
};
12+
713
&arduino_spi {
814
status = "okay";
915

@@ -12,12 +18,12 @@
1218
spi-max-frequency = <DT_FREQ_M(2)>;
1319
gp1-gpios = <&arduino_header 14 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
1420
gp0-gpios = <&arduino_header 15 (GPIO_PULL_DOWN)>;
15-
conversion-gpios = <&arduino_header 12 (GPIO_ACTIVE_HIGH | MAX32_GPIO_VSEL_VDDIOH)>;
21+
conversion-gpios = <&arduino_header 12 (GPIO_ACTIVE_HIGH)>;
1622
#address-cells = <1>;
1723
#size-cells = <0>;
1824
#io-channel-cells = <1>;
1925
status = "okay";
20-
compatible = "adi,ad405x-adc";
26+
compatible = "adi,ad4052-adc";
2127

2228
channel@0 {
2329
reg = <0>;

0 commit comments

Comments
 (0)