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