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