1/* 2 * SPDX-License-Identifier: Apache-2.0 3 * 4 * Copyright (c) 2022 Nordic Semiconductor ASA 5 */ 6 7 8/ { 9 zephyr,user { 10 io-channels = <&adc 0>, <&adc 1>, <&adc 7>; 11 }; 12}; 13 14&adc { 15 #address-cells = <1>; 16 #size-cells = <0>; 17 18 channel@0 { 19 reg = <0>; 20 zephyr,gain = "ADC_GAIN_1_6"; 21 zephyr,reference = "ADC_REF_INTERNAL"; 22 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 23 zephyr,input-positive = <NRF_SAADC_AIN1>; /* P0.03 */ 24 zephyr,resolution = <12>; 25 }; 26 27 channel@1 { 28 reg = <1>; 29 zephyr,gain = "ADC_GAIN_1_6"; 30 zephyr,reference = "ADC_REF_INTERNAL"; 31 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 32 zephyr,input-positive = <NRF_SAADC_VDD>; 33 zephyr,resolution = <14>; 34 zephyr,oversampling = <8>; 35 }; 36 37 channel@7 { 38 reg = <7>; 39 zephyr,gain = "ADC_GAIN_1_5"; 40 zephyr,reference = "ADC_REF_VDD_1_4"; 41 zephyr,vref-mv = <750>; 42 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 43 zephyr,input-positive = <NRF_SAADC_AIN6>; /* P0.30 */ 44 zephyr,input-negative = <NRF_SAADC_AIN7>; /* P0.31 */ 45 zephyr,resolution = <12>; 46 }; 47}; 48