how to config deviceTree to output CLKO1 in imx7d

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

how to config deviceTree to output CLKO1 in imx7d

943 次查看
hyoungkikim
Contributor IV

hi commuity

 

on my custom board   i like to  use CLKO1 as a referece clk of a slave device

i searched commuity and  i  found   it can be done in devicetree  with assigned-clock

but i don't find  clk names

i  set   SD1_CD_B pin as CLKO1 output in devicetree 

what clock should i use   to configure  CLKO1 to ouput 24MHZ 

thank you sincerely

 

 

标签 (1)
0 项奖励
回复
2 回复数

906 次查看
hyoungkikim
Contributor IV

Hi Chavira 

thank you for advice 

in kernel  there are 4 clk name about CLK01

i am not good at  kernel clk frame

what is the clock and clock parent ?

thank you   in advance 

sincerely

#define IMX7D_CLKO1_ROOT_SRC 338
#define IMX7D_CLKO1_ROOT_CG 339
#define IMX7D_CLKO1_ROOT_DIV 340
#define IMX7D_CLKO2_ROOT_SRC 341

0 项奖励
回复

926 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @hyoungkikim!

Thank you for contacting NXP Support!

 

You have to configure it in the device tree too using the next properties:

assigned-clocks
assigned-clock-parents

 

Best Regards!

Chavira

0 项奖励
回复