dts: arm: nxp: rt118x: add flexcan instances
Enable flexcan clocks add 3 flexcan instances Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
This commit is contained in:
parent
2f50e26c40
commit
ef4ff8eb2c
2 changed files with 55 additions and 0 deletions
|
@ -602,6 +602,36 @@
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flexcan1: can@43a0000 {
|
||||||
|
compatible = "nxp,flexcan-fd", "nxp,flexcan";
|
||||||
|
reg = <0x43a0000 0x1000>;
|
||||||
|
interrupts = <8 0>, <9 0>;
|
||||||
|
interrupt-names = "common", "error";
|
||||||
|
clocks = <&ccm IMX_CCM_CAN1_CLK 0x68 14>;
|
||||||
|
clk-source = <0>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
flexcan2: can@25b0000 {
|
||||||
|
compatible = "nxp,flexcan-fd", "nxp,flexcan";
|
||||||
|
reg = <0x25b0000 0x1000>;
|
||||||
|
interrupts = <51 0>, <52 0>;
|
||||||
|
interrupt-names = "common", "error";
|
||||||
|
clocks = <&ccm IMX_CCM_CAN2_CLK 0x68 18>;
|
||||||
|
clk-source = <0>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
flexcan3: can@45b0000 {
|
||||||
|
compatible = "nxp,flexcan-fd", "nxp,flexcan";
|
||||||
|
reg = <0x45b0000 0x1000>;
|
||||||
|
interrupts = <191 0>, <192 0>;
|
||||||
|
interrupt-names = "common", "error";
|
||||||
|
clocks = <&ccm IMX_CCM_CAN3_CLK 0x84 6>;
|
||||||
|
clk-source = <0>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&flexspi1 {
|
&flexspi1 {
|
||||||
|
|
|
@ -341,6 +341,31 @@ static ALWAYS_INLINE void clock_init(void)
|
||||||
BLK_CTRL_WAKEUPMIX_NETC_PORT_MISC_CFG_TMR_EXT_CLK_SEL_MASK;
|
BLK_CTRL_WAKEUPMIX_NETC_PORT_MISC_CFG_TMR_EXT_CLK_SEL_MASK;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_CAN_MCUX_FLEXCAN
|
||||||
|
|
||||||
|
#if DT_NODE_HAS_STATUS(DT_NODELABEL(flexcan1), okay)
|
||||||
|
/* Configure CAN1 using MuxSysPll3Out */
|
||||||
|
rootCfg.mux = kCLOCK_CAN1_ClockRoot_MuxSysPll3Out;
|
||||||
|
rootCfg.div = 6;
|
||||||
|
CLOCK_SetRootClock(kCLOCK_Root_Can1, &rootCfg);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if DT_NODE_HAS_STATUS(DT_NODELABEL(flexcan2), okay)
|
||||||
|
/* Configure CAN2 using MuxSysPll3Out */
|
||||||
|
rootCfg.mux = kCLOCK_CAN2_ClockRoot_MuxSysPll3Out;
|
||||||
|
rootCfg.div = 6;
|
||||||
|
CLOCK_SetRootClock(kCLOCK_Root_Can2, &rootCfg);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if DT_NODE_HAS_STATUS(DT_NODELABEL(flexcan3), okay)
|
||||||
|
/* Configure CAN3 using MuxSysPll3Out */
|
||||||
|
rootCfg.mux = kCLOCK_CAN3_ClockRoot_MuxSysPll3Out;
|
||||||
|
rootCfg.div = 6;
|
||||||
|
CLOCK_SetRootClock(kCLOCK_Root_Can3, &rootCfg);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* CONFIG_CAN_MCUX_FLEXCAN */
|
||||||
|
|
||||||
/* Keep core clock ungated during WFI */
|
/* Keep core clock ungated during WFI */
|
||||||
CCM->LPCG[1].LPM0 = 0x33333333;
|
CCM->LPCG[1].LPM0 = 0x33333333;
|
||||||
CCM->LPCG[1].LPM1 = 0x33333333;
|
CCM->LPCG[1].LPM1 = 0x33333333;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue