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 1>; 11 }; 12}; 13 14&adc1 { 15 dmas = <&dmamux1 0 5 (STM32_DMA_PERIPH_RX | STM32_DMA_MEM_16BITS | 16 STM32_DMA_PERIPH_16BITS)>; 17 dma-names = "dmamux"; 18 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@1 { 31 reg = <1>; 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 43&dma2 { 44 status = "okay"; 45}; 46 47&dmamux1 { 48 status = "okay"; 49}; 50