Skip to content

Commit 4d5bf29

Browse files
ttmutcarlescufi
authored andcommitted
tests: drivers: adc: Add MAX32680EVKIT overlay file
Add board overlay file for the MAX32680EVKIT. Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
1 parent 24610e2 commit 4d5bf29

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2024 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
zephyr,user {
9+
/* adjust channel number according to pinmux in board.dts */
10+
io-channels = <&adc 4>, <&adc 5>;
11+
};
12+
};
13+
14+
&adc {
15+
status = "okay";
16+
pinctrl-0 = <&ain12_p2_4 &ain13_p2_5>;
17+
pinctrl-names = "default";
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
21+
channel@4 {
22+
reg = <4>;
23+
zephyr,gain = "ADC_GAIN_1";
24+
zephyr,reference = "ADC_REF_INTERNAL";
25+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
26+
zephyr,resolution = <10>;
27+
};
28+
29+
channel@5 {
30+
reg = <5>;
31+
zephyr,gain = "ADC_GAIN_1";
32+
zephyr,reference = "ADC_REF_INTERNAL";
33+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34+
zephyr,resolution = <10>;
35+
};
36+
};

0 commit comments

Comments
 (0)