imx93 wrong clock frequency

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx93 wrong clock frequency

ソリューションへジャンプ
674件の閲覧回数
spawn
Contributor III

Hello,

on an imx93 processor, I configured a clock in the device tree with: 

 

&flexio2 {                                                                                                                                                                                                         
  assigned-clocks = <&clk IMX93_CLK_FLEXIO2>;                                                                                                                                                                      
  assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>;                                                                                                                                                     
  assigned-clock-rates = <80000000>;                                                                                                                                                                              
  status = "okay";                                                                                                                                                                                                
                                                                                                                                                                                                                   
  xx {                                                                                                                                                                                                        
    compatible = "xx,xx";                                                                                                                                                                        
    pinctrl-0 = <&pinctrl_xx>;                                                                                                                                                               
    pinctrl-names = "default";                                                                                                                                                                                     
    clocks = <&clk IMX93_CLK_CCM_CKO1>;                                                                                                                                                                            
    assigned-clocks = <&clk IMX93_CLK_CCM_CKO1>;                                                                                                                                                                   
    assigned-clock-rates = <50000000>;                                                                                                                                                                
  };                                                                                                                                                                                                               
};    

 

Then I confirmed that the clock freq is configured to be 50 MHz from the driver with a call to clk_get_rate().

But the signal frequency I measure is in fact 10 MHz.

Do you know what could cause the issue ?

Best Regards

0 件の賞賛
返信
1 解決策
651件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The following resource shows how to change DRAM frequency.

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/iMX-8M-Mini-Register-Programming-Aid-DRA...

 

It is for Mx8MM but it works on Mx93. clocks are described in sect. Clock Control Module (CCM) Chapter 30 i.mx93 reference manual

in uboot sources one can look at

imx-common\arm\arch - uboot-imx - i.MX U-Boot 

in linux one needs to follow clock framework rules:
https://www.kernel.org/doc/Documentation/clk.txt 
https://elinux.org/images/b/b8/Elc2013_Clement.pdf 

 

Regards

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
652件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The following resource shows how to change DRAM frequency.

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/iMX-8M-Mini-Register-Programming-Aid-DRA...

 

It is for Mx8MM but it works on Mx93. clocks are described in sect. Clock Control Module (CCM) Chapter 30 i.mx93 reference manual

in uboot sources one can look at

imx-common\arm\arch - uboot-imx - i.MX U-Boot 

in linux one needs to follow clock framework rules:
https://www.kernel.org/doc/Documentation/clk.txt 
https://elinux.org/images/b/b8/Elc2013_Clement.pdf 

 

Regards

0 件の賞賛
返信