Firefly Open Source Community

Title: I2C interfacing with AIO 3399J [Print This Page]

Author: KrunalShah    Time: 3/5/2018 14:16
Title: I2C interfacing with AIO 3399J
We do have on-chip I2C in AIO 3399J but I don't know which I2C it is.I want the I2C number that we have on the module and which I can use directly.They simply mentioned the I2C.
Author: big_whit    Time: 3/5/2018 23:15
There is 8 I2C  on the AIO.  Each can control different parts of the circuits. What are you looking to control ? The I2C available to the user (on J47)  on the AIO carrier board is the I2C4.  I2C4 is mosly used for the USB switch, the touch panel some encryption.

Author: KrunalShah    Time: 3/7/2018 12:15
big_whit Posted at 3/5/2018 23:15
There is 8 I2C  on the AIO.  Each can control different parts of the circuits. What are you looking  ...

Okay, Thanx
Can I use I2C4 for GPIO Expander?
Author: KrunalShah    Time: 3/7/2018 12:20
big_whit Posted at 3/5/2018 23:15
There is 8 I2C  on the AIO.  Each can control different parts of the circuits. What are you looking  ...

And do we have any GPIO expander driver available in AIO 3399J?
If not then what can I do to interface GPIO expander using I2C4?
Author: big_whit    Time: 3/9/2018 11:01
Yes you could use I2C4 to connect a GPIO expender - I dont know if there is any driver available but you could write your own. Just make sure the IC suport 3.0V i2C signaling (there is very good chance it`s supported)
Author: KrunalShah    Time: 3/13/2018 14:20
big_whit Posted at 3/9/2018 11:01
Yes you could use I2C4 to connect a GPIO expender - I dont know if there is any driver available but ...

And do I need to change anything in .dts file?Because on firefly they have mentioned that you need to add device information to .dts file. And what about device and driver registration?
See this link: http://en.t-firefly.com/doc/product/info/456.html




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1