1/* 2 * SPDX-License-Identifier: Apache-2.0 3 * 4 * Copyright 2021,2023-2024 NXP 5 */ 6 7#include <zephyr/dt-bindings/adc/mcux-lpadc.h> 8 9/ { 10 zephyr,user { 11 /* adjust channel number according to pinmux in board.dts */ 12 io-channels = <&lpadc0 0>; 13 }; 14}; 15 16&lpadc0 { 17 #address-cells = <1>; 18 #size-cells = <0>; 19 20 /* 21 * To use this sample: 22 * - Connect LPADC0 CH0 signal to voltage between 0~1.8V (J9 pin 10) 23 */ 24 25 channel@0 { 26 reg = <0>; 27 zephyr,gain = "ADC_GAIN_1"; 28 zephyr,reference = "ADC_REF_EXTERNAL0"; 29 zephyr,vref-mv = <1800>; 30 zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_TICKS, 7)>; 31 zephyr,resolution = <12>; 32 zephyr,input-positive = <MCUX_LPADC_CH0A>; 33 }; 34}; 35