File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
tests/drivers/adc/adc_api/boards Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
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
+ };
You can’t perform that action at this time.
0 commit comments