Hi all!
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!