1/*
2 * Copyright (c) 2024 Centro de Inovacao EDGE
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <zephyr/dt-bindings/adc/mcux-lpadc.h>
8
9/ {
10	aliases {
11		adc0 = &lpadc0;
12	};
13};
14
15&lpadc0 {
16	#address-cells = <1>;
17	#size-cells = <0>;
18
19	/*
20	 * To use this sample:
21	 * LPADC0 CH0A and CH0B are set up in differential mode (B-A)
22	 * - Connect LPADC0 CH0A signal to voltage between 0~1.8V (J30 pin 1)
23	 * - Connect LPADC0 CH0B signal to voltage between 0~1.8V (J30 pin 2)
24	 * LPADC0 CH2A is set up in single ended mode
25	 * - Connect LPADC0 CH2A signal to voltage between 0~1.8V (J30 pin 3)
26	 */
27
28	channel@0 {
29		reg = <0>;
30		zephyr,gain = "ADC_GAIN_1";
31		zephyr,reference = "ADC_REF_EXTERNAL0";
32		zephyr,vref-mv = <1800>;
33		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34		zephyr,input-positive = <MCUX_LPADC_CH0B>;
35		zephyr,input-negative = <MCUX_LPADC_CH0A>;
36	};
37
38	channel@1 {
39		reg = <1>;
40		zephyr,gain = "ADC_GAIN_1";
41		zephyr,reference = "ADC_REF_EXTERNAL0";
42		zephyr,vref-mv = <1800>;
43		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
44		zephyr,input-positive = <MCUX_LPADC_CH2A>;
45	};
46};
47