I need to interface with a device via I2C. The problem I have is that such device only can work as master.
These days I was searching info about I2C in slave mode in Linux. I would like to make a program which is running, when the master (the external device) sends a certain command, then the salve (the DB) sends a certain data.
I found documentation talking about I2C in salve mode in kernel.org in the i2c page, also I found these document from Qualcomm, but I think I haven’t understood very well the documents because my program isn’t working. I previously created user-space driver to work with I2C in master mode and I was more easy to me. In particular I don’t know how to work with the I2C events described in the first link
Which documentation should I read to create the program I need? It’s correct to say that I need to create a user space driver to work with I2C in slave mode? Any example, documentation, page, examples,… would be so helpful!
Thank you so much guys!