This IO extension chip can provide driver reference source code?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
The registers of these I/O expanders are very simple. Therefore, it would not make much sense to provide a reference driver because it would consist almost entirely of the code needed to interface with the I²C host hardware and the OS driver interface, which is very system dependent.
The Linux driver can be found at git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpio/gpio-pca953x.c.
Xiaofu Wen,
Please reference Clemens' comments. Let me know if you have any more questions.
Regards,
Tyler