soc: nxp: mcxw71: Add FlexCAN node/clocking
Add node and enable clock for the FlexCAN module on MCXW71. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
a3d2b865f8
commit
df95a86bc3
2 changed files with 14 additions and 0 deletions
|
@ -307,6 +307,16 @@
|
|||
interrupts = <48 2>;
|
||||
interrupt-names = "hci_int";
|
||||
};
|
||||
|
||||
flexcan0: can@3b000 {
|
||||
compatible = "nxp,flexcan";
|
||||
reg = <0x3b000 0x3080>;
|
||||
interrupts = <47 0>;
|
||||
interrupt-names = "common";
|
||||
clocks = <&scg SCG_K4_FIRC_CLK 0xec>;
|
||||
clk-source = <2>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
&fast_peripheral0 {
|
||||
|
|
|
@ -154,6 +154,10 @@ static ALWAYS_INLINE void clock_init(void)
|
|||
if (DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(lpspi1), nxp_imx_lpspi, okay)) {
|
||||
CLOCK_EnableClock(kCLOCK_Lpspi1);
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_CAN_MCUX_FLEXCAN)) {
|
||||
CLOCK_EnableClock(kCLOCK_Can0);
|
||||
}
|
||||
}
|
||||
|
||||
static void vbat_init(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue