1/*
2 * SPDX-License-Identifier: Apache-2.0
3 *
4 * Copyright (c) 2020 Linaro Limited
5 * Copyright 2023-2024 NXP
6 */
7
8#include <zephyr/dt-bindings/adc/mcux-lpadc.h>
9
10/ {
11	zephyr,user {
12		/* adjust channel number according to pinmux in board.dts */
13		io-channels = <&lpadc0 0>, <&lpadc0 1>;
14	};
15};
16
17&lpadc0 {
18	#address-cells = <1>;
19	#size-cells = <0>;
20
21	/*
22	 * To use this sample:
23	 * - Connect VREF_L to GND, and VREF_H to 1.8V (connect JP9 and JP10).
24	 * - Connect LPADC0 CH0A signal to voltage between 0~1.8V (J30 pin 1)
25	 * - Connect LPADC0 CH0B signal to voltage between 0~1.8V (J30 pin 2)
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(ADC_ACQ_TIME_TICKS, 7)>;
34		zephyr,resolution = <12>;
35		zephyr,input-positive = <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(ADC_ACQ_TIME_TICKS, 7)>;
44		zephyr,resolution = <12>;
45		zephyr,input-positive = <MCUX_LPADC_CH0B>;
46	};
47};
48