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

@ -908,6 +908,32 @@
status = "disabled";
#pwm-cells = <3>;
};
i3c1: i3c@4330000 {
compatible = "nxp,mcux-i3c";
reg = <0x4330000 0x1000>;
interrupts = <12 0>;
clocks = <&ccm IMX_CCM_I3C1_CLK 0x67 0>;
clk-divider = <2>;
clk-divider-slow = <1>;
clk-divider-tc = <1>;
status = "disabled";
#address-cells = <3>;
#size-cells = <0>;
};
i3c2: i3c@2520000 {
compatible = "nxp,mcux-i3c";
reg = <0x2520000 0x1000>;
interrupts = <61 0>;
clocks = <&ccm IMX_CCM_I3C2_CLK 0x68 0>;
clk-divider = <2>;
clk-divider-slow = <1>;
clk-divider-tc = <1>;
status = "disabled";
#address-cells = <3>;
#size-cells = <0>;
};
};
&flexspi {

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;