1/* 2 * Copyright (c) 2024 Renesas Electronics Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 8/ { 9 zephyr,user { 10 io-channels = <&adc1 0>, <&adc1 2>; 11 }; 12}; 13 14&pinctrl { 15 adc1_default: adc1_default { 16 group1 { 17 /* input */ 18 psels = <RA_PSEL(RA_PSEL_ADC, 0, 0)>; 19 renesas,analog-enable; 20 }; 21 }; 22}; 23 24&adc1 { 25 pinctrl-0 = <&adc1_default>; 26 pinctrl-names = "default"; 27 status = "okay"; 28 #address-cells = <1>; 29 #size-cells = <0>; 30 31 channel@0 { 32 reg = <0>; 33 zephyr,gain = "ADC_GAIN_1"; 34 zephyr,reference = "ADC_REF_INTERNAL"; 35 zephyr,resolution = <12>; 36 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 37 zephyr,vref-mv = <3300>; 38 }; 39 40 channel@2 { 41 reg = <2>; 42 zephyr,gain = "ADC_GAIN_1"; 43 zephyr,reference = "ADC_REF_INTERNAL"; 44 zephyr,resolution = <12>; 45 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 46 zephyr,vref-mv = <3300>; 47 }; 48}; 49