Is it possible to use current I2C reserver SDA, SCL pins for I2C Slave mode? e.g. I want to use ls1012a as the i2c slave. If the driver should be re-programmed, please let me know details or how can I use the unreserved GPIO 2 pins as i2c SDA, SCL and serve it as a slave?
Thanks
|
Sorry for the late reply. Thanks, so AFAIU, the guy who asked this question in 2015, was going to use LS1021a (not a typo LS1012a) as I2C slave device as well, and he shared a part of the slave driver code.
Is there any open source code for the full version of i2c slave driver for LS1012a? I might find it a bit hard to write my own one, or I should refer to some related links that would be helpful. Thanks
and also, if I installed Ubuntu 16.04 arm64, as described in NXP tutorial for this board, then this is the current i2c master driver, right?
https://github.com/torvalds/linux/blob/master/drivers/i2c/busses/i2c-imx.c
And I need to remove the i2c master driver from kernel module and include my i2c slave driver, right? This will cause several components on boards (like accelerator) which use I2C master be dysfunctional which is OK, I need to use LS1012a for SoC-to-SoC communication.
Got the answer on my question here - https://community.nxp.com/message/1296050?commentID=1296050#comment-1296050 . Thanks