1/* 2 * SPDX-License-Identifier: Apache-2.0 3 * 4 * Copyright 2023 NXP 5 */ 6 7/ { 8 zephyr,user { 9 /* adjust channel number according to pinmux in board.dts */ 10 io-channels = <&adc1 3>, <&adc1 4>; 11 }; 12}; 13 14&adc1 { 15 #address-cells = <1>; 16 #size-cells = <0>; 17 18 /* 19 * To use this sample connect 20 * J33.1 (ADC1 CH3) and J33.2 (ADC1 CH4) to voltages between 0 and 3.3V 21 */ 22 channel@3 { 23 reg = <3>; 24 zephyr,gain = "ADC_GAIN_1"; 25 zephyr,reference = "ADC_REF_INTERNAL"; 26 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 27 zephyr,resolution = <12>; 28 }; 29 30 channel@4 { 31 reg = <4>; 32 zephyr,gain = "ADC_GAIN_1"; 33 zephyr,reference = "ADC_REF_INTERNAL"; 34 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 35 zephyr,resolution = <12>; 36 }; 37}; 38