how to config deviceTree to output CLKO1 in imx7d

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

how to config deviceTree to output CLKO1 in imx7d

952件の閲覧回数
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 返答(返信)

915件の閲覧回数
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 件の賞賛
返信

935件の閲覧回数
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 件の賞賛
返信