I2C clock not working in imx6ul

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

I2C clock not working in imx6ul

ソリューションへジャンプ
1,381件の閲覧回数
chandraevolute
Contributor V

Hi All,

we are using imx6ul based custom board with Linux version 3.14.38-6UL. We interfaced ST7036 LCD driver to i2c3. 

When we tried i2cdetect by giving ./i2cdetect -y 2 below is the output

root@imx6ulevk:/# ./i2cdetect -y 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

When we probed the SDA and SCL lines there is no clock pulse on SCL line. The SCL line is always High. 

How to resolve this

EDIT1:

Checked with imx6ul development board

root@imx6ulevk:/# ./i2cget 1 0x1e 0x1e c
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will read from device file /dev/i2c-1, chip address 0x1e, data address
0x1e, using write byte/read byte.
Continue? [Y/n] y
Warning - write failed
Error: Read failed

With Development board also it is not successful

ラベル(3)
タグ(1)
0 件の賞賛
1 解決策
935件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi chandra

one can check if i2c module clock is not gated in CCM_CCGR registers and check

pinctrl_i2c settings, please use example in imx6ul-14x14-evk.dts
git.freescale.com/git/cgit.cgi/imx/linux-imx.git/tree/arch/arm/boot/dts/imx6ul-14x14-evk.dts?id=rel_imx_4.1.15_2.0.0_ga

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

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
936件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi chandra

one can check if i2c module clock is not gated in CCM_CCGR registers and check

pinctrl_i2c settings, please use example in imx6ul-14x14-evk.dts
git.freescale.com/git/cgit.cgi/imx/linux-imx.git/tree/arch/arm/boot/dts/imx6ul-14x14-evk.dts?id=rel_imx_4.1.15_2.0.0_ga

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

0 件の賞賛
935件の閲覧回数
chandraevolute
Contributor V

thank you igor it worked

0 件の賞賛