dts: arm: nxp: add two i3c instances for RT1180

add i3c instances
enable i3c clock under soc folder

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
This commit is contained in:
Lucien Zhao 2024-10-28 14:49:37 +08:00 committed by Benjamin Cabé
commit 08b8b160a9
2 changed files with 44 additions and 0 deletions

View file

@ -449,6 +449,24 @@ static ALWAYS_INLINE void clock_init(void)
#endif /* CONFIG_HAS_MCUX_TPM */
#ifdef CONFIG_DT_HAS_NXP_MCUX_I3C_ENABLED
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i3c1), okay)
/* Configure I3C1 using SYS_PLL3_DIV2_CLK */
rootCfg.mux = kCLOCK_I3C1_ClockRoot_MuxSysPll3Div2;
rootCfg.div = 10;
CLOCK_SetRootClock(kCLOCK_Root_I3c1, &rootCfg);
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i3c2), okay)
/* Configure I3C2 using SYS_PLL3_DIV2_CLK */
rootCfg.mux = kCLOCK_I3C2_ClockRoot_MuxSysPll3Div2;
rootCfg.div = 10;
CLOCK_SetRootClock(kCLOCK_Root_I3c2, &rootCfg);
#endif
#endif /* CONFIG_DT_HAS_NXP_MCUX_I3C_ENABLED */
/* Keep core clock ungated during WFI */
CCM->LPCG[1].LPM0 = 0x33333333;
CCM->LPCG[1].LPM1 = 0x33333333;