How to make LS1012A work as a I2C slave device?

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

How to make LS1012A work as a I2C slave device?

跳至解决方案
1,127 次查看
nineteenalready
Contributor II

Guys, I have a NXP LS1012a board (https://www.nxp.com/docs/en/referenc...-LS1012ARM.pdf), and my goal is to use it as I2C slave.

I want to have SoC-to-SoC communication via I2C, the other SoC will be Rpi3 (for the time being). Both of them are 3V3.

I was able to transfer data from LS1012a to Rpi3 as master-to-slave, but I want vice-versa.

Question: Could you please explain my steps what I need to do in order to make LS1012a work as a slave? There is the option with bit-banging GPIO pins from the userspace, but I Want to have it as a Kernel module.

I asked a similar question in NXP forum (LS1012A - i2c slave mode , sorry for asking this twice, but I didnt receive any useful answer), they referred me to this - https://community.nxp.com/thread/340162. I didnt find it much helpful, it has a part of custom driver code. But i thought that I should've re-used this driver code, same is used for I2C master mode for this board (https://github.com/torvalds/linux/bl...sses/i2c-imx.c).

If I should ask linux-i2c maintainers, then please let me know their addresses because this guy does not answer, wsa@sang-engineering.com.

Thanks

标记 (3)
1 解答
1,045 次查看
lpcxpresso_supp
NXP Employee
NXP Employee

MCUXpresso IDE does not support Layerscape devices, so posting your questions here is not likely to get you much assistance. Perhaps you could try posting in a more relevant community such as https://community.nxp.com/community/qoriq 

Regards,

MCUXpresso IDE Support

在原帖中查看解决方案

1 回复
1,046 次查看
lpcxpresso_supp
NXP Employee
NXP Employee

MCUXpresso IDE does not support Layerscape devices, so posting your questions here is not likely to get you much assistance. Perhaps you could try posting in a more relevant community such as https://community.nxp.com/community/qoriq 

Regards,

MCUXpresso IDE Support