About EIM device tree setting in i.MX6SL.

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

About EIM device tree setting in i.MX6SL.

跳至解决方案
1,944 次查看
keitanagashima
Senior Contributor I

Dear All,

Hello.

We referred to "kernel/Documentation/devicetree/binding/bus/imx-weim.txt" and configure the EIM setting in device tree.

But, the error happened on boot-up in L3.14.28_1.0.0.

=========

<device tree setting>

weim: weim@021b8000 {

  compatible = "fsl,imx6q-weim";

  reg = <0x021b8000 0x4000>;

  clocks = <&clks 196>;

...

<Error log>

of_clk_src_onecell_get: invalid clock index 196

imx-weim: probe of 21b8000.weim failed with error -2

==========

It looks wrong clock setting.

Could you tell me the meaning with the value of "clocks = <&clks 196>"?

Or, do you find our wrong setting?

Best Regards,

Keita

标签 (3)
0 项奖励
回复
1 解答
1,270 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Keita

i.MX6SL BSP device tree file does not have EIM definitions as it uses default

CCM settings, check i.MX6SL dts file (arch/arm/boot/dts/imx6sl.dtsi) :

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6sl.dtsi?h=imx...

arch/arm/mach-imx/clk-imx6sl.c :

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/mach-imx/clk-imx6sl.c?h=im...

If needed, it may be suggested to request through fae additional patch to provide EIM

support in dts of i.MX6SL BSP. As for question:

>Could you tell me the meaning with the value of "clocks = <&clks 196>"

196 is clks[] array index of IMX6QDL_CLK_EIM_SLOW clock, check weim: weim@021b8000 record in:

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl.dtsi?h=im...

IMX6QDL_CLK_EIM_SLOW is defined in file: ..arch/arm/mach-imx/clk-imx6q.c

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/mach-imx/clk-imx6q.c?h=imx...

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,271 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Keita

i.MX6SL BSP device tree file does not have EIM definitions as it uses default

CCM settings, check i.MX6SL dts file (arch/arm/boot/dts/imx6sl.dtsi) :

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6sl.dtsi?h=imx...

arch/arm/mach-imx/clk-imx6sl.c :

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/mach-imx/clk-imx6sl.c?h=im...

If needed, it may be suggested to request through fae additional patch to provide EIM

support in dts of i.MX6SL BSP. As for question:

>Could you tell me the meaning with the value of "clocks = <&clks 196>"

196 is clks[] array index of IMX6QDL_CLK_EIM_SLOW clock, check weim: weim@021b8000 record in:

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl.dtsi?h=im...

IMX6QDL_CLK_EIM_SLOW is defined in file: ..arch/arm/mach-imx/clk-imx6q.c

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/mach-imx/clk-imx6q.c?h=imx...

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复