tests: adc: Enable ADC tests for frdm_mcxc444 board
Enable ADC tests for frdm_mcxc444 board. Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
This commit is contained in:
parent
844882af38
commit
0f64fe4cf8
5 changed files with 66 additions and 0 deletions
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_ADC_MCUX_ADC16_VREF_ALTERNATE=y
|
|
@ -0,0 +1,29 @@
|
||||||
|
/*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*
|
||||||
|
* Copyright 2024 NXP
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Please connect voltage reference to J4 pin 1 to run the test. */
|
||||||
|
|
||||||
|
/ {
|
||||||
|
zephyr,user {
|
||||||
|
io-channels = <&adc0 0>;
|
||||||
|
reference_mv = <1650>;
|
||||||
|
expected_accuracy = <32>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&adc0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
channel@0 {
|
||||||
|
reg = <0>;
|
||||||
|
zephyr,gain = "ADC_GAIN_1";
|
||||||
|
zephyr,reference = "ADC_REF_VDD_1";
|
||||||
|
zephyr,vref-mv = <3300>;
|
||||||
|
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
|
||||||
|
zephyr,resolution = <12>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -19,6 +19,7 @@ tests:
|
||||||
- frdm_kl25z
|
- frdm_kl25z
|
||||||
- ek_ra8m1
|
- ek_ra8m1
|
||||||
- frdm_mcxc242
|
- frdm_mcxc242
|
||||||
|
- frdm_mcxc444
|
||||||
- nrf52840dk/nrf52840
|
- nrf52840dk/nrf52840
|
||||||
- nrf54l15dk/nrf54l15/cpuapp
|
- nrf54l15dk/nrf54l15/cpuapp
|
||||||
- nrf54h20dk/nrf54h20/cpuapp
|
- nrf54h20dk/nrf54h20/cpuapp
|
||||||
|
|
1
tests/drivers/adc/adc_api/boards/frdm_mcxc444.conf
Normal file
1
tests/drivers/adc/adc_api/boards/frdm_mcxc444.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_ADC_MCUX_ADC16_VREF_ALTERNATE=y
|
34
tests/drivers/adc/adc_api/boards/frdm_mcxc444.overlay
Normal file
34
tests/drivers/adc/adc_api/boards/frdm_mcxc444.overlay
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
/*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*
|
||||||
|
* Copyright 2024 NXP
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
zephyr,user {
|
||||||
|
io-channels = <&adc0 0>, <&adc0 3>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&adc0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
channel@0 {
|
||||||
|
reg = <0>;
|
||||||
|
zephyr,gain = "ADC_GAIN_1";
|
||||||
|
zephyr,reference = "ADC_REF_VDD_1";
|
||||||
|
zephyr,vref-mv = <3300>;
|
||||||
|
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
|
||||||
|
zephyr,resolution = <12>;
|
||||||
|
};
|
||||||
|
|
||||||
|
channel@3 {
|
||||||
|
reg = <3>;
|
||||||
|
zephyr,gain = "ADC_GAIN_1";
|
||||||
|
zephyr,reference = "ADC_REF_VDD_1";
|
||||||
|
zephyr,vref-mv = <3300>;
|
||||||
|
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
|
||||||
|
zephyr,resolution = <12>;
|
||||||
|
};
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue