/* * Copyright (c) 2023 Renesas Electronics Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include / { zephyr,user { /* adjust channel number according to pinmux in board.dts */ io-channels = <&adc 0 &adc 1 &adc 2 &adc 3 &sdadc 0 &sdadc 1 &sdadc 2>; }; }; &pinctrl { adc_default: adc_default { group_1 { pinmux = , , ; }; }; sdadc_default: sdadc_default { group_1 { pinmux = , , ; }; }; }; &adc { #address-cells = <1>; #size-cells = <0>; status = "okay"; channel@0 { reg = <0>; zephyr,gain = "ADC_GAIN_1_3"; zephyr,reference = "ADC_REF_INTERNAL"; zephyr,acquisition-time = ; zephyr,resolution = <12>; zephyr,oversampling = <7>; zephyr,input-positive = ; }; channel@1 { reg = <1>; zephyr,gain = "ADC_GAIN_1_3"; zephyr,reference = "ADC_REF_INTERNAL"; zephyr,acquisition-time = ; zephyr,resolution = <12>; zephyr,oversampling = <0>; zephyr,input-positive = ; }; channel@2 { reg = <2>; zephyr,gain = "ADC_GAIN_1_3"; zephyr,reference = "ADC_REF_INTERNAL"; zephyr,acquisition-time = ; zephyr,resolution = <12>; zephyr,oversampling = <0>; zephyr,input-positive = ; }; channel@3 { reg = <3>; zephyr,gain = "ADC_GAIN_1_3"; zephyr,reference = "ADC_REF_INTERNAL"; zephyr,acquisition-time = ; zephyr,resolution = <12>; zephyr,oversampling = <0>; zephyr,input-positive = ; }; pinctrl-0 = <&adc_default>; pinctrl-names = "default"; }; &sdadc { #address-cells = <1>; #size-cells = <0>; status = "okay"; channel@0 { reg = <0>; zephyr,gain = "ADC_GAIN_1"; zephyr,reference = "ADC_REF_INTERNAL"; zephyr,acquisition-time = ; zephyr,resolution = <14>; zephyr,oversampling = <7>; zephyr,input-positive = ; }; channel@1 { reg = <1>; zephyr,gain = "ADC_GAIN_1"; zephyr,reference = "ADC_REF_INTERNAL"; zephyr,acquisition-time = ; zephyr,resolution = <14>; zephyr,oversampling = <7>; zephyr,input-positive = ; zephyr,input-negative = ; }; channel@2 { reg = <2>; zephyr,gain = "ADC_GAIN_1_4"; zephyr,reference = "ADC_REF_INTERNAL"; zephyr,acquisition-time = ; zephyr,resolution = <14>; zephyr,oversampling = <7>; zephyr,input-positive = ; }; pinctrl-0 = <&sdadc_default>; pinctrl-names = "default"; };