Changing the speed of I2C bus in Linux

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is there a way to change the speed of the I2C bus in AVR32 Linux? I've noticed that the speed appears to be close to 100 kHz, but I require a speed of 50 kHz or less to be able to work with an image sensor, the MT9T001.

The Blackfin uCLinux folks use this speed to communicate with the MT9T001. For them, the speed is simply selected in menuconfig when setting up the kernel. What would I have to hack in the kernel to change the speed?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The i2c-atmel driver takes the baud rate as a module parameter. You can specify this in the kernel bootargs if atmel_twi is built-in (add atmel_twi.baudrate=50000 to your bootargs). Otherwise you can specify it at module load time: modprobe atmel_twi baudrate=50000

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks, Squidgit. As always, you are amazing! :D

No wonder why I enjoy using AVR32.

:wink: