Hello! Is there any support for the A71CH for the i.MX8 family?
I found a similar question here, but it is from more than one year ago.
I downloaded the software package for the A71CH and was able to extract the needed pieces of code and cross compile it and test in a i.MX8 processor.
But the ioctl call in the file i2c_a7.c inside the function axI2CWriteRead is always returning an error.
Here's the error:
I2CInit: opening /dev/i2c-2
I2C driver: PEC flag cleared
I2C driver supports plain i2c-level commands.
I2C driver supports Read Block.
I2CInit: opening /dev/i2c-2
I2C driver: PEC flag cleared
I2C driver supports plain i2c-level commands.
I2C driver supports Read Block.
TX (1 byte): 07
axI2CWriteRead: ioctl cmd I2C_RDWR fails with value -1 (errno = 71)
axI2CWriteRead (Errorstring): Protocol error
In this part of the code, I'm trying to read the status of the device (that's why the TX byte is 7 accordingly to the value established in the section 13.9 of the AN12207 document)
But the ioctl call always fails
I extracted one of the pages of the docs to PDF and attached in this post
There is a line in this page that says:
"The bottom layer deals with the specific hardware of the I2C controller and is specific to the processor or board used, it is called the ‘I2C bus driver’. In case of the MCIMX6UL-EVK board the bus driver is contained in a file called ‘i2c-imx.c’."
Would that mean that maybe the i2c driver for the Linux distro that I'm using is not compatible with the Smart Card protocol, and that's why the ioctl is always failing?
I'm also attaching the i2c_a7.c file that I'm using in case it helps
Thank you so much!