About EIM device tree setting in i.MX6SL.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About EIM device tree setting in i.MX6SL.

Jump to solution
1,318 Views
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

Labels (3)
0 Kudos
1 Solution
644 Views
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!

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

View solution in original post

0 Kudos
1 Reply
645 Views
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 Kudos