1/* 2 * SPDX-License-Identifier: Apache-2.0 3 * 4 * Copyright (c) 2024 Nordic Semiconductor ASA 5 */ 6 7/ { 8 zephyr,user { 9 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 7>; 10 }; 11}; 12 13/ { 14 aliases { 15 adc0 = &adc; 16 }; 17}; 18 19&adc { 20 #address-cells = <1>; 21 #size-cells = <0>; 22 23 channel@0 { 24 reg = <0>; 25 zephyr,gain = "ADC_GAIN_1"; 26 zephyr,reference = "ADC_REF_INTERNAL"; 27 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 28 zephyr,input-positive = <NRF_SAADC_AIN4>; /* P1.11 */ 29 zephyr,resolution = <10>; 30 }; 31 32 channel@1 { 33 reg = <1>; 34 zephyr,gain = "ADC_GAIN_1"; 35 zephyr,reference = "ADC_REF_INTERNAL"; 36 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 37 zephyr,input-positive = <NRF_SAADC_AIN2>; /* P1.06 */ 38 zephyr,resolution = <12>; 39 zephyr,oversampling = <8>; 40 }; 41 42 channel@2 { 43 reg = <2>; 44 zephyr,gain = "ADC_GAIN_1"; 45 zephyr,reference = "ADC_REF_INTERNAL"; 46 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 47 zephyr,input-positive = <NRF_SAADC_DVDD>; /* 0.9 V internal */ 48 zephyr,resolution = <12>; 49 zephyr,oversampling = <8>; 50 }; 51 52 channel@7 { 53 reg = <7>; 54 zephyr,gain = "ADC_GAIN_1"; 55 zephyr,reference = "ADC_REF_INTERNAL"; 56 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 57 zephyr,input-positive = <NRF_SAADC_AIN6>; /* P1.13 */ 58 zephyr,input-negative = <NRF_SAADC_AIN7>; /* P1.14 */ 59 zephyr,resolution = <12>; 60 }; 61}; 62