boards: nxp/frdm_mcxn947: Support vref for NXP frdm_mcxn947

Support vref for NXP frdm_mcxn947

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
This commit is contained in:
Zhaoxiang Jin 2024-04-19 08:52:25 +08:00 committed by Carles Cufí
commit 979d90bb95
4 changed files with 12 additions and 0 deletions

View file

@ -205,6 +205,11 @@ static int frdm_mcxn947_init(void)
flexspi_clock_set_freq(MCUX_FLEXSPI_CLK, MHZ(50));
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(vref), okay)
CLOCK_EnableClock(kCLOCK_Vref);
SPC_EnableActiveModeAnalogModules(SPC0, kSPC_controlVref);
#endif
/* Set SystemCoreClock variable. */
SystemCoreClock = CLOCK_INIT_CORE_CLOCK;

View file

@ -84,6 +84,8 @@ The FRDM-MCXN947 board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| USDHC | on-chip | sdhc |
+-----------+------------+-------------------------------------+
| VREF | on-chip | REGULATOR |
+-----------+------------+-------------------------------------+
Targets available
==================

View file

@ -153,3 +153,7 @@
status = "okay";
};
};
&vref {
status = "okay";
};

View file

@ -24,4 +24,5 @@ supported:
- pwm
- counter
- sdhc
- regulator
vendor: nxp