1/*
2 * Copyright 2024 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 = <&sar_adc0 2>, <&sar_adc0 3>, <&sar_adc0 4>, <&sar_adc0 5>,
12				<&sar_adc1 3>, <&sar_adc1 4>, <&sar_adc1 5>, <&sar_adc1 6>;
13	};
14};
15
16&sar_adc0 {
17	group-channel = "precision";
18	callback-select = "normal-end-chain";
19	status = "okay";
20	#address-cells = <1>;
21	#size-cells = <0>;
22	vref-mv = <1800>;
23
24	channel@2 {
25		reg = <2>;
26		zephyr,gain = "ADC_GAIN_1";
27		zephyr,reference = "ADC_REF_INTERNAL";
28		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
29		zephyr,resolution = <12>;
30	};
31
32	channel@3 {
33		reg = <3>;
34		zephyr,gain = "ADC_GAIN_1";
35		zephyr,reference = "ADC_REF_INTERNAL";
36		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
37		zephyr,resolution = <12>;
38	};
39
40	channel@4 {
41		reg = <4>;
42		zephyr,gain = "ADC_GAIN_1";
43		zephyr,reference = "ADC_REF_INTERNAL";
44		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
45		zephyr,resolution = <12>;
46	};
47
48	channel@5 {
49		reg = <5>;
50		zephyr,gain = "ADC_GAIN_1";
51		zephyr,reference = "ADC_REF_INTERNAL";
52		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
53		zephyr,resolution = <12>;
54	};
55
56};
57
58&sar_adc1 {
59	group-channel = "standard";
60	status = "okay";
61	#address-cells = <1>;
62	#size-cells = <0>;
63
64	channel@3 {
65		reg = <3>;
66		zephyr,gain = "ADC_GAIN_1";
67		zephyr,reference = "ADC_REF_INTERNAL";
68		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
69		zephyr,resolution = <12>;
70	};
71
72	channel@4 {
73		reg = <4>;
74		zephyr,gain = "ADC_GAIN_1";
75		zephyr,reference = "ADC_REF_INTERNAL";
76		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
77		zephyr,resolution = <12>;
78	};
79
80	channel@5 {
81		reg = <5>;
82		zephyr,gain = "ADC_GAIN_1";
83		zephyr,reference = "ADC_REF_INTERNAL";
84		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
85		zephyr,resolution = <12>;
86	};
87
88	channel@6 {
89		reg = <6>;
90		zephyr,gain = "ADC_GAIN_1";
91		zephyr,reference = "ADC_REF_INTERNAL";
92		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
93		zephyr,resolution = <12>;
94	};
95};
96