File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
tests/drivers/adc/adc_api/boards Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * SPDX-License-Identifier: Apache-2.0
3
+ *
4
+ * Copyright (c) 2025 STMicroelectronics
5
+ */
6
+
7
+ / {
8
+ zephyr,user {
9
+ io-channels = <&adc1 4>, <&adc1 12>, <&adc1 13>;
10
+ };
11
+ };
12
+
13
+ &adc1 {
14
+ status = "okay";
15
+
16
+ pinctrl-0 = <&adc1_vinp0_pb3>;
17
+ pinctrl-names = "default";
18
+ #address-cells = <1>;
19
+ #size-cells = <0>;
20
+
21
+ vinp0: 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 = <12>;
27
+ };
28
+
29
+ adc_vbat_ch: channel@c {
30
+ reg = <12>;
31
+ zephyr,gain = "ADC_GAIN_1";
32
+ zephyr,reference = "ADC_REF_VDD_1";
33
+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34
+ zephyr,resolution = <12>;
35
+ };
36
+
37
+ adc_tempsensor_ch: channel@d {
38
+ reg = <13>;
39
+ zephyr,gain = "ADC_GAIN_1";
40
+ zephyr,reference = "ADC_REF_VDD_1_3";
41
+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
42
+ zephyr,resolution = <12>;
43
+ };
44
+ };
You can’t perform that action at this time.
0 commit comments