1/*
2 * SPDX-License-Identifier: Apache-2.0
3 *
4 * Copyright (c) Benjamin Björnsson <benjamin.bjornsson@gmail.com>
5 */
6
7/ {
8	zephyr,user {
9		/* adjust channel number according to pinmux in board.dts */
10		io-channels = <&adc1 4>, <&adc1 5>;
11	};
12};
13
14&adc1 {
15	dmas = <&dma1 1 0 (STM32_DMA_PERIPH_RX | STM32_DMA_MEM_16BITS | STM32_DMA_PERIPH_16BITS)>;
16	dma-names = "dma";
17
18	#address-cells = <1>;
19	#size-cells = <0>;
20
21	channel@4 {
22		reg = <4>;
23		zephyr,gain = "ADC_GAIN_1";
24		zephyr,reference = "ADC_REF_INTERNAL";
25		zephyr,acquisition-time = <ADC_ACQ_TIME_MAX>;
26		zephyr,resolution = <12>;
27	};
28
29	channel@5 {
30		reg = <5>;
31		zephyr,gain = "ADC_GAIN_1";
32		zephyr,reference = "ADC_REF_INTERNAL";
33		zephyr,acquisition-time = <ADC_ACQ_TIME_MAX>;
34		zephyr,resolution = <12>;
35	};
36};
37
38&dma1 {
39	status = "okay";
40};
41