1/* 2 * Copyright (c) 2023 Benjamin Björnsson <benjamin.bjornsson@gmail.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/ { 8 zephyr,user { 9 io-channels = <&adc0 0>, <&adc0 2>; 10 }; 11}; 12 13&adc0 { 14 #address-cells = <1>; 15 #size-cells = <0>; 16 17 channel@0 { 18 reg = <0>; 19 zephyr,gain = "ADC_GAIN_1"; 20 zephyr,reference = "ADC_REF_INTERNAL"; 21 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 22 zephyr,resolution = <10>; 23 }; 24 25 channel@2 { 26 reg = <2>; 27 zephyr,gain = "ADC_GAIN_1"; 28 zephyr,reference = "ADC_REF_INTERNAL"; 29 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 30 zephyr,resolution = <10>; 31 }; 32}; 33