i2c bus issue in custom lx2160 board

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

i2c bus issue in custom lx2160 board

跳至解决方案
1,394 次查看
vilas_shetty
Contributor III

Hello ,
I am facing an issue wrt two i2c buses I2C3 and I2C4 where i am not able to perform any i2c transaction. I have enabled both i2c in device tree. still am not able to bring the bus up. Can anyone help me out in this. am attaching my device tree and result of i2c transaction.

LX2160A-RDB 

标签 (1)
0 项奖励
回复
1 解答
1,034 次查看
Oswalag
NXP TechSupport
NXP TechSupport

Please also check your RCW, in the last one you shared there is a mistake 

Oswalag_0-1757542588687.png

The value of those field to use them as IIC is 0b000.

Oswalag_1-1757542639413.png

 

在原帖中查看解决方案

0 项奖励
回复
9 回复数
971 次查看
vilas_shetty
Contributor III

Hello Oswalag,
I have already changed RCW file and now i2c is up. Thank you for youur support. i will attach the updated rcw file content here.

 

 

0 项奖励
回复
1,346 次查看
vilas_shetty
Contributor III

Hello,
I have created my own custom rcw file. kindly do have a look . 

0 项奖励
回复
1,327 次查看
Oswalag
NXP TechSupport
NXP TechSupport

Your issue could be related with your dts configuration, please double check it and only include the ones you are using. 

In your log there is a warning: ERROR: invalid device tree 

Please use the one for the LX2160ARDB as reference:

https://github.com/nxp-qoriq/u-boot/blob/lf_v2024.04/arch/arm/dts/fsl-lx2160a-rdb.dts

 

1,320 次查看
vilas_shetty
Contributor III
Hello ,
But am modifying and using device tree from /home/bs-user01/5GBBPC/flexbuild_lsdk2108_github/components/linux/linux/arch/arm64/boot/dts/freescale
0 项奖励
回复
1,035 次查看
Oswalag
NXP TechSupport
NXP TechSupport

Please also check your RCW, in the last one you shared there is a mistake 

Oswalag_0-1757542588687.png

The value of those field to use them as IIC is 0b000.

Oswalag_1-1757542639413.png

 

0 项奖励
回复
1,359 次查看
vilas_shetty
Contributor III

Hello ,
Sorry i shared the wrong rcw file.  am attaching the correct  rcw here

0 项奖励
回复
1,361 次查看
vilas_shetty
Contributor III

Am also sharing rcw file

0 项奖励
回复
1,363 次查看
vilas_shetty
Contributor III

Hello Oswalag,
I am sharing you the boot log of uboot and kernel . kindly do have a look. we are using NXP LSDK 21.08 with flexbuilder.

0 项奖励
回复
1,373 次查看
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

Please share the RCW configuration you are using, also test the I2C first on u-boot and share the complete log file in a .txt format.

Are you using the BSP ? what version?