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