1/* 2 * SPDX-License-Identifier: Apache-2.0 3 * 4 * Copyright 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 = <&adc0 0>; 13 }; 14}; 15 16&adc0 { 17 #address-cells = <1>; 18 #size-cells = <0>; 19 20 /* 21 * This sample requires PIO1_9 found on J7 pin 1 as the ADC0 channel 3 input 22 * be connected to various voltages to observe the change in reading. 23 */ 24 25 channel@0 { 26 reg = <0>; 27 zephyr,gain = "ADC_GAIN_1"; 28 zephyr,reference = "ADC_REF_EXTERNAL0"; 29 zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_TICKS, 7)>; 30 zephyr,vref-mv = <3300>; 31 zephyr,resolution = <12>; 32 zephyr,input-positive = <MCUX_LPADC_CH0A>; 33 }; 34}; 35