boards: frdm_mcxc444: Add adc support

Support adc for NXP frdm_mcxc444 board

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
This commit is contained in:
Neil Chen 2024-12-10 10:13:58 +08:00 committed by Benjamin Cabé
commit eb6b726d9c
4 changed files with 17 additions and 0 deletions

View file

@ -55,6 +55,8 @@ The ``frdm_mcxc444`` board target supports the following hardware features:
+-----------+------------+-------------------------------------+
| FLASH | on-chip | soc flash |
+-----------+------------+-------------------------------------+
| ADC | on-chip | adc |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| LPTMR | on-chip | counter |

View file

@ -8,6 +8,14 @@
#include <nxp/mcx/MCXC444VLH-pinctrl.h>
&pinctrl {
pinmux_adc0: pinmux_adc0 {
group0 {
pinmux = <ADC0_SE0_PTE20>,
<ADC0_SE3_PTE22>;
drive-strength = "low";
slew-rate = "slow";
};
};
pinmux_i2c0: pinmux_i2c0 {
group0 {
pinmux = <I2C0_SCL_PTE24>,

View file

@ -119,6 +119,12 @@
status = "okay";
};
&adc0 {
status = "okay";
pinctrl-0 = <&pinmux_adc0>;
pinctrl-names = "default";
};
i2c0: &i2c0 {
status = "okay";
pinctrl-0 = <&pinmux_i2c0>;

View file

@ -15,6 +15,7 @@ toolchain:
- gnuarmemb
- xtools
supported:
- adc
- counter
- flash
- gpio