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:
parent
5c3efe1e68
commit
eb6b726d9c
4 changed files with 17 additions and 0 deletions
|
@ -55,6 +55,8 @@ The ``frdm_mcxc444`` board target supports the following hardware features:
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
| FLASH | on-chip | soc flash |
|
| FLASH | on-chip | soc flash |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
|
| ADC | on-chip | adc |
|
||||||
|
+-----------+------------+-------------------------------------+
|
||||||
| I2C | on-chip | i2c |
|
| I2C | on-chip | i2c |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
| LPTMR | on-chip | counter |
|
| LPTMR | on-chip | counter |
|
||||||
|
|
|
@ -8,6 +8,14 @@
|
||||||
#include <nxp/mcx/MCXC444VLH-pinctrl.h>
|
#include <nxp/mcx/MCXC444VLH-pinctrl.h>
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
|
pinmux_adc0: pinmux_adc0 {
|
||||||
|
group0 {
|
||||||
|
pinmux = <ADC0_SE0_PTE20>,
|
||||||
|
<ADC0_SE3_PTE22>;
|
||||||
|
drive-strength = "low";
|
||||||
|
slew-rate = "slow";
|
||||||
|
};
|
||||||
|
};
|
||||||
pinmux_i2c0: pinmux_i2c0 {
|
pinmux_i2c0: pinmux_i2c0 {
|
||||||
group0 {
|
group0 {
|
||||||
pinmux = <I2C0_SCL_PTE24>,
|
pinmux = <I2C0_SCL_PTE24>,
|
||||||
|
|
|
@ -119,6 +119,12 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&adc0 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-0 = <&pinmux_adc0>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
};
|
||||||
|
|
||||||
i2c0: &i2c0 {
|
i2c0: &i2c0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-0 = <&pinmux_i2c0>;
|
pinctrl-0 = <&pinmux_i2c0>;
|
||||||
|
|
|
@ -15,6 +15,7 @@ toolchain:
|
||||||
- gnuarmemb
|
- gnuarmemb
|
||||||
- xtools
|
- xtools
|
||||||
supported:
|
supported:
|
||||||
|
- adc
|
||||||
- counter
|
- counter
|
||||||
- flash
|
- flash
|
||||||
- gpio
|
- gpio
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue