]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i2c: au1550: relax bus timings a bit
authorManuel Lauss <manuel.lauss@gmail.com>
Tue, 8 Sep 2015 06:56:23 +0000 (08:56 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 20 Oct 2015 15:43:13 +0000 (17:43 +0200)
commit8a5e3d472e04a19a47de41cbe4856169ade11af2
tree64b90e93e09aa16e974e25803bc814dfbdad7d9a
parent26f590e674d3ecf7517148fdb62d2983469bd993
i2c: au1550: relax bus timings a bit

The i2c-au1550 driver has to program various setup and hold times
for the sda/scl signals by hand.  The current values seem to be
working best when the driver is supplied with 50MHz, however on the
DB1300 board 48MHz is the closest we can get to it, and the timings
are a bit too tight for that, leading to the last bit of a transmission
sometimes being swallowed.  This manifests itself in wrong readings
of the ne1619 sensor and inability to configure the wm8731 i2s codec.

With the relaxed timings, both the sensor and the i2s codec can now
be accessed more reliably over a wider range of I2C block input
frequencies.

Verified on DB1200, DB1300 and DB1550 boards.

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-au1550.c