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.

AM5728: I2C and SPI code

Part Number: AM5728
Other Parts Discussed in Thread: TVP5150

hello

I need to write C code on Linux sdk and compile it with gcc for running I2C and SPI interfaces.

the I2C is needed for initializing some video input codecs such as TVP5150AM. 

the SPI  is needed for initializing HDMI video input interface such as ADV7611.

as an other main question, could anybody please give me some guidelines for writing C code to capture video from TVP5150 and ADV7611?

thanks very much,

Ali

  • Hello,

    It seems that there are drivers for both in the drivers/media/i2c/adv7604.c and drivers/media/i2c/tvp5150.c, both within the Linux sources. 

    We also provide generic I2C and SPI support through generic Linux userspace tools like I2C dev and SPI dev. Use of these tools and the drivers above, like many other drivers provided with the kernel are best support by their respective communities as we likely have not specific expertise with them.

    I hope this is helpful to you. Thank you.

  • hello RonB

    thank you for reply.

    that's very good. can i find a simple source code for transfering data via buses I2C and SPI? for a very simple example, I want to send some bytes to SPI and I2C and then receive some other data.

    also, if I can have a simple code for interfacing with ADV7611 (and TVP5150), it will be very helpfull.

    could you please help me in this way?

    thanks and regards,

    Ali

  • Hello,

    I'm sorry, the code that I've referred you to is the best examples I can offer. 

  • Hi RonB

    thanks vey much for reply.

    Ok, I will try those codes.

    thanks and regards,

    Ali