How to enable clock output on LVDS1_CLK via device tree?

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

How to enable clock output on LVDS1_CLK via device tree?

1,436 次查看
cbobek
Contributor I

Hi Community,

 

We are migrating our existing custom i.MX6DL design from a Linux 3.0.101 kernel to 4.9.74.  Our device tree allows the board to boot successfully, but we are having trouble enabling the ETHERNET_REF clock output on the CLK1_N/P (anaclk1/1b) pins.

 

We are able to manually set the CCM_ANALOG_MISC1 register at the Linux prompt and produce the clock, but we do not know the syntax and method for enabling the clock through the device tree.

 

Is there an example device tree that shows how to properly set the LVDS1_CLK mux and enable the output?

 

Thank you,

 

Chris

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

1,239 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Chris

available options for dts (device tree) can be found in

linux/Documentation/devicetree/bindings and may be useful to check ../net/fsl-fec.txt

linux-imx.git - i.MX Linux Kernel 

but and I am afraid there are no options for generating selected  LVDS1_CLK output.

In general one can add such option in driver, as example one can look at property

"phy-reset-duration", described in linux/Documentation/devicetree/bindings/net/fsl-fec.txt
and used in linux/drivers/net/ethernet/freescale/fec_main.c

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复