i2c driver on imx8q_evk board

Jean-Adrien Domage jean-adrien.domage at gapfruit.com
Mon Feb 22 11:17:42 CET 2021

Dear Genodians,

I am currently working on an i2c driver for the imx8q_evk board. I'm 
to generate any kind of signal(s) on the i2c bus.

First I had a look at os/src/drivers/touch/synaptic_dsx. I tried to run 
the i2c implementation from this
driver on the i2c bus 2. It hang at the first _busy() call in the 
_start() method, i2c.h l:83.
Please note that I skip all gpio and Event related part to make it work.

Settings I used for I2c bus 2 -> irq: 68 ([1]) mmio:0x303a0000 ([2]), 
freq_div: 0x2a (64 for 400kHz)

1. Is this possible that this implementation is specific to the synaptic 
device? Then not working for others bus?
2. Reading [3], I noticed that _start() does not exactly follow this 
flowchart, is there any reason? Doing [4] is sufficient?
3. Do you have any other example of driver(s) using i2c like the 
touch/synaptic_dsx that may help me ?

[1] IMX8MDQLQRM.pdf, chapter 7.1.2 A53 Interrupts, table 7-1 page 1023
[2] IMX8MDQLQRM.pdf, chapter 2.1.5 AIPS Memory Maps, table 2-5 page 28
[3] IMX8MDQLQRM.pdf, chapter 16.1 I2C Controller, Figure 16-7, page 6277
[4] IMX8MDQLQRM.pdf, chapter Initialization sequence, page 6270

Thanks for your time.


Jean-Adrien Domage
Software Engineer
gapfruit AG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genode.org/pipermail/users/attachments/20210222/aa56e1ef/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x31959A52.asc
Type: application/pgp-keys
Size: 2544 bytes
Desc: not available
URL: <http://lists.genode.org/pipermail/users/attachments/20210222/aa56e1ef/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <http://lists.genode.org/pipermail/users/attachments/20210222/aa56e1ef/attachment.sig>

More information about the users mailing list