/* * SPDX-License-Identifier: Apache-2.0 * * Copyright (c) Benjamin Björnsson */ / { zephyr,user { /* adjust channel number according to pinmux in board.dts */ io-channels = <&adc1 0>, <&adc1 1>; }; }; &adc1 { dmas = <&dma2 0 0 (STM32_DMA_PERIPH_RX | STM32_DMA_MEM_16BITS | STM32_DMA_PERIPH_16BITS) STM32_DMA_FIFO_FULL>; dma-names = "dma"; pinctrl-0 = <&adc1_in0_pa0 &adc1_in1_pa1>; #address-cells = <1>; #size-cells = <0>; channel@0 { reg = <0>; zephyr,gain = "ADC_GAIN_1"; zephyr,reference = "ADC_REF_INTERNAL"; zephyr,acquisition-time = ; zephyr,resolution = <12>; }; channel@10 { reg = <1>; zephyr,gain = "ADC_GAIN_1"; zephyr,reference = "ADC_REF_INTERNAL"; zephyr,acquisition-time = ; zephyr,resolution = <12>; }; }; &dma2 { status = "okay"; };