Max clock-rate for i.MX 93 CAN controller

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Max clock-rate for i.MX 93 CAN controller

跳至解决方案
1,731 次查看
cstoidner
Contributor II

Hello,

I like to know what the maximum clock-rate is, that is allowed to be assigned to the i.MX 93 flexcan controller.

Background of my question:
The CAN controller clock-rate impacts the granularity of the flexcan sample-points. Currently we have assigned 40MHz to the CAN controller (see the dts snippet below). 40MHz allows sample point to only be selected in 0.2 steps. But our customer need steps of 0.1 or even better 0.05. So, does the CAN controller support more than 40MHz for the clock rate? And what is the maximum rate?

Sorry, I checked the i.MX 93 reference manual and datasheet, but I did not found any maximum rate for the flexcan interface.

See here the DTS snippet with our 40MHz configuration:

HOST:~/linux-imx/arch/arm64/boot/dts/freescale$ grep can imx93.dtsi -A12
			flexcan1: can@443a0000 {
				compatible = "fsl,imx93-flexcan";
				reg = <0x443a0000 0x10000>;
				interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
				clocks = <&clk IMX93_CLK_BUS_AON>,
					 <&clk IMX93_CLK_CAN1_GATE>;
				clock-names = "ipg", "per";
				assigned-clocks = <&clk IMX93_CLK_CAN1>;
				assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>;
				assigned-clock-rates = <40000000>;
				fsl,clk-source = /bits/ 8 <0>;
				fsl,stop-mode = <&aonmix_ns_gpr 0x14 0>;
				status = "disabled";
			};
--
			flexcan2: can@425b0000 {
				compatible = "fsl,imx93-flexcan";
				reg = <0x425b0000 0x10000>;
				interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
				clocks = <&clk IMX93_CLK_BUS_WAKEUP>,
					 <&clk IMX93_CLK_CAN2_GATE>;
				clock-names = "ipg", "per";
				assigned-clocks = <&clk IMX93_CLK_CAN2>;
				assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>;
				assigned-clock-rates = <40000000>;
				fsl,clk-source = /bits/ 8 <0>;
				fsl,stop-mode = <&wakeupmix_gpr 0x0c 2>;
				status = "disabled";
			};


Thanks and regards,
Christoph

0 项奖励
回复
1 解答
1,694 次查看
joanxie
NXP TechSupport
NXP TechSupport

refer to the reference manual, the max clock is 80Mhz

joanxie_0-1747033289538.png

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,695 次查看
joanxie
NXP TechSupport
NXP TechSupport

refer to the reference manual, the max clock is 80Mhz

joanxie_0-1747033289538.png

 

0 项奖励
回复
1,658 次查看
cstoidner
Contributor II

Hi @joanxie , thanks for your fast reply!

0 项奖励
回复