diff --git a/dts/arm/nxp/nxp_mcxw71.dtsi b/dts/arm/nxp/nxp_mcxw71.dtsi index 608ae67fccf..b8e9edf17bb 100644 --- a/dts/arm/nxp/nxp_mcxw71.dtsi +++ b/dts/arm/nxp/nxp_mcxw71.dtsi @@ -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 { diff --git a/soc/nxp/mcx/mcxw/soc.c b/soc/nxp/mcx/mcxw/soc.c index 905a80d2a0d..f3ab6c3745e 100644 --- a/soc/nxp/mcx/mcxw/soc.c +++ b/soc/nxp/mcx/mcxw/soc.c @@ -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)