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 1>; 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@1 { 22 reg = <1>; 23 zephyr,gain = "ADC_GAIN_1"; 24 zephyr,reference = "ADC_REF_INTERNAL"; 25 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 26 zephyr,resolution = <10>; 27 }; 28}; 29 30&dma1 { 31 status = "okay"; 32}; 33