Skip to content

Commit 24610e2

Browse files
hfakkizcarlescufi
authored andcommitted
tests: drivers: adc: Add MAX32 boards overlay files
Add board overlay files for the MAX32655EVKIT, MAX32655FTHR MAX32662EVKIT, MAX32666EVKIT, MAX32666FTHR, MAX32672EVKIT MAX32672FTHR and MAX32690EVKIT. Signed-off-by: Furkan Akkiz <[email protected]>
1 parent e2b0012 commit 24610e2

8 files changed

+288
-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) 2023-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 2>, <&adc 3>;
11+
};
12+
};
13+
14+
&adc {
15+
status = "okay";
16+
pinctrl-0 = <&ain2_p2_2 &ain3_p2_3>;
17+
pinctrl-names = "default";
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
21+
channel@2 {
22+
reg = <2>;
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@3 {
30+
reg = <3>;
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+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2023-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 0>, <&adc 1>;
11+
};
12+
};
13+
14+
&adc {
15+
status = "okay";
16+
pinctrl-0 = <&ain0_p2_0 &ain1_p2_1>;
17+
pinctrl-names = "default";
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
21+
channel@0 {
22+
reg = <0>;
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@1 {
30+
reg = <1>;
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+
};
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 0>, <&adc 1>;
11+
};
12+
};
13+
14+
&adc {
15+
status = "okay";
16+
pinctrl-0 = <&ain0_p0_13 &ain1_p0_12>;
17+
pinctrl-names = "default";
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
21+
channel@0 {
22+
reg = <0>;
23+
zephyr,gain = "ADC_GAIN_1";
24+
zephyr,reference = "ADC_REF_INTERNAL";
25+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
26+
zephyr,resolution = <12>;
27+
};
28+
29+
channel@1 {
30+
reg = <1>;
31+
zephyr,gain = "ADC_GAIN_1";
32+
zephyr,reference = "ADC_REF_INTERNAL";
33+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34+
zephyr,resolution = <12>;
35+
};
36+
};
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 0>, <&adc 1>;
11+
};
12+
};
13+
14+
&adc {
15+
status = "okay";
16+
pinctrl-0 = <&ain0n_p0_16 &ain0p_p0_17>;
17+
pinctrl-names = "default";
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
21+
channel@0 {
22+
reg = <0>;
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@1 {
30+
reg = <1>;
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+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2023 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 0>, <&adc 3>;
11+
};
12+
};
13+
14+
&adc {
15+
status = "okay";
16+
pinctrl-0 = <&ain0n_p0_16 &ain1p_p0_19>;
17+
pinctrl-names = "default";
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
21+
channel@0 {
22+
reg = <0>;
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@3 {
30+
reg = <3>;
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+
};
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 8>, <&adc 9>;
11+
};
12+
};
13+
14+
&adc {
15+
status = "okay";
16+
pinctrl-0 = <&ain8_p0_16 &ain9_p0_17>;
17+
pinctrl-names = "default";
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
21+
channel@8 {
22+
reg = <8>;
23+
zephyr,gain = "ADC_GAIN_1";
24+
zephyr,reference = "ADC_REF_INTERNAL";
25+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
26+
zephyr,resolution = <12>;
27+
};
28+
29+
channel@9 {
30+
reg = <9>;
31+
zephyr,gain = "ADC_GAIN_1";
32+
zephyr,reference = "ADC_REF_INTERNAL";
33+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34+
zephyr,resolution = <12>;
35+
};
36+
};
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 8>, <&adc 9>;
11+
};
12+
};
13+
14+
&adc {
15+
status = "okay";
16+
pinctrl-0 = <&ain8_p0_16 &ain9_p0_17>;
17+
pinctrl-names = "default";
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
21+
channel@8 {
22+
reg = <8>;
23+
zephyr,gain = "ADC_GAIN_1";
24+
zephyr,reference = "ADC_REF_INTERNAL";
25+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
26+
zephyr,resolution = <12>;
27+
};
28+
29+
channel@9 {
30+
reg = <9>;
31+
zephyr,gain = "ADC_GAIN_1";
32+
zephyr,reference = "ADC_REF_INTERNAL";
33+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34+
zephyr,resolution = <12>;
35+
};
36+
};
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 0>, <&adc 1>;
11+
};
12+
};
13+
14+
&adc {
15+
status = "okay";
16+
pinctrl-0 = <&ain0_p3_0 &ain1_p3_1>;
17+
pinctrl-names = "default";
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
21+
channel@0 {
22+
reg = <0>;
23+
zephyr,gain = "ADC_GAIN_1";
24+
zephyr,reference = "ADC_REF_INTERNAL";
25+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
26+
zephyr,resolution = <12>;
27+
};
28+
29+
channel@1 {
30+
reg = <1>;
31+
zephyr,gain = "ADC_GAIN_1";
32+
zephyr,reference = "ADC_REF_INTERNAL";
33+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34+
zephyr,resolution = <12>;
35+
};
36+
};

0 commit comments

Comments
 (0)