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.

OMAP L137: I2C communication

Other Parts Discussed in Thread: OMAP-L137, DA8XX

Dear All,

I am using the OMAP-L137 EVM and I am running the Montavista linux on the ARM. I need to configure the I2C bus to run at 400KHz to communicate to a dvb-t frontend.

The i2c-dev.h does not have any functions to configure the clock frequency. I would appreciate your help to configure the i2c-module.

Many thanks in advance!

Kind regards,

Bogdan

  • Bogdan,

     I just noticed that this is a fairly old topic with no replies.  Are you still seeking feedback?

    -Tommy

  • Hi Tommy,

    thanks for replying! Fortunately, I solved it quite some time ago. Below is some guidance for the rest of the community.

    The file that needs to be change is "arch/arm/mach-da8xx/board-evm.c" from the LSP directory. Change

    static struct davinci_i2c_platform_data da8xx_evm_i2c_pdata0 = {
           .bus_freq       = 100,  // change this to 400
           .bus_delay      = 0,
    };

    Rebuild the uImage.

    I tested it with the oscillope on the Omap-L137. The bus is stable and reliable also at this frequency.
  • Bogdan,

    Thanks for sharing your lessons learned.

    -Tommy