Skip to content

Commit 5ea0701

Browse files
congnguyenhuummahadevan108
authored andcommitted
tests: drivers: adc: adc_api: enbale test for mr_canhubk3
Enable adc0 with 2 channels 22, 23 on standard group with normal end of conversion callback. Channels correspond to VREFL(0V), VREFH(3.3V). Signed-off-by: Cong Nguyen Huu <[email protected]>
1 parent a0db65e commit 5ea0701

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 2023 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/adc/adc.h>
8+
9+
/ {
10+
zephyr,user {
11+
io-channels = <&adc0 22>, <&adc0 23>;
12+
};
13+
};
14+
15+
&adc0 {
16+
group-channel = "standard";
17+
status = "okay";
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
21+
channel@16 {
22+
reg = <22>;
23+
zephyr,gain = "ADC_GAIN_1";
24+
zephyr,reference = "ADC_REF_INTERNAL";
25+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
26+
zephyr,resolution = <14>;
27+
};
28+
29+
channel@17 {
30+
reg = <23>;
31+
zephyr,gain = "ADC_GAIN_1";
32+
zephyr,reference = "ADC_REF_INTERNAL";
33+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34+
zephyr,resolution = <14>;
35+
};
36+
};

0 commit comments

Comments
 (0)