tests: drivers: adc_api: support numaker_m2l31ki

Add support for Nuvoton numaker board numaker_m2l31ki.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
This commit is contained in:
cyliang tw 2024-04-18 17:28:30 +08:00 committed by Fabio Baltieri
commit 15c4d24c83
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1 @@
CONFIG_TEST_USERSPACE=n

View file

@ -0,0 +1,40 @@
/* SPDX-License-Identifier: Apache-2.0 */
/ {
zephyr,user {
io-channels = <&eadc0 5>, <&eadc0 7>;
};
};
&pinctrl {
/* EVB's UNO Pin A2 & A0 for channel 5 & 7 --> PB5, PB7 */
eadc0_default: eadc0_default {
group0 {
pinmux = <PB5MFP_EADC0_CH5>, <PB7MFP_EADC0_CH7>;
};
};
};
&eadc0 {
status = "okay";
pinctrl-0 = <&eadc0_default>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
channel@5 {
reg = <5>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <10>;
};
channel@7 {
reg = <7>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <10>;
};
};