1/*
2 * SPDX-License-Identifier: Apache-2.0
3 *
4 * Copyright (c) 2022, Basalte bv
5 */
6
7/ {
8	zephyr,user {
9		/* adjust channel number according to pinmux in board.dts */
10		io-channels = <&adc0 5>, <&adc0 15>;
11	};
12};
13
14&adc0 {
15	#address-cells = <1>;
16	#size-cells = <0>;
17
18	/* External ADC(+) */
19	channel@5 {
20 		reg = <5>;
21 		zephyr,gain = "ADC_GAIN_1";
22 		zephyr,reference = "ADC_REF_EXTERNAL0";
23		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
24 		zephyr,input-positive = <5>;
25		zephyr,resolution = <12>;
26	};
27
28	/* Internal temperature sensor */
29	channel@f {
30 		reg = <15>;
31 		zephyr,gain = "ADC_GAIN_1";
32 		zephyr,reference = "ADC_REF_EXTERNAL0";
33		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
34 		zephyr,input-positive = <15>;
35		zephyr,resolution = <12>;
36	};
37};
38