samples: adc: Enable ADC samples for frdm_mcxc444 board

Enable ADC samples for frdm_mcxc444 board.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
This commit is contained in:
Neil Chen 2024-11-07 11:32:26 +08:00 committed by Benjamin Cabé
commit 844882af38
4 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1 @@
CONFIG_ADC_MCUX_ADC16_VREF_ALTERNATE=y

View file

@ -0,0 +1,31 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2024 NXP
*/
/ {
zephyr,user {
/* adjust channel number according to pinmux in board.dts */
io-channels = <&adc0 0>;
};
};
&adc0 {
#address-cells = <1>;
#size-cells = <0>;
/*
* To use this sample:
* - Connect ADC0 SE0 signal to voltage between 0~3.3V (J4 pin 1)
*/
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>;
};
};

View file

@ -0,0 +1 @@
CONFIG_ADC_MCUX_ADC16_VREF_ALTERNATE=y

View file

@ -0,0 +1,30 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2024 NXP
*/
/ {
aliases {
adc0 = &adc0;
};
};
&adc0 {
#address-cells = <1>;
#size-cells = <0>;
/*
* To use this sample:
* - Connect ADC0 SE0 signal to voltage between 0~3.3V (J4 pin 1)
*/
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>;
};
};