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