]> git.karo-electronics.de Git - linux-beck.git/commit
i2c: rk3x: add i2c support for rk3399 soc
authorDavid Wu <david.wu@rock-chips.com>
Mon, 16 May 2016 14:05:03 +0000 (22:05 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 17 Jun 2016 11:55:03 +0000 (13:55 +0200)
commit7e086c3fc2df099f82371f320fef8d683f050be4
treeb58fc6f57355fc3308ddc4dd42758b68916bc98d
parent908dbd539135f8bea04039dad1a667a3a36d7b42
i2c: rk3x: add i2c support for rk3399 soc

- new method to caculate i2c timings for rk3399:
  There was an timing issue about "repeated start" time at the I2C
  controller of version0, controller appears to drop SDA at .875x (7/8)
  programmed clk high. On version 1 of the controller, the rule(.875x)
  isn't enough to meet tSU;STA
  requirements on 100k's Standard-mode. To resolve this issue,
  sda_update_config, start_setup_config and stop_setup_config for I2C
  timing information are added, new rules are designed to calculate
  the timing information at new v1.
- pclk and function clk are separated at rk3399

Signed-off-by: David Wu <david.wu@rock-chips.com>
Tested-by: Caesar Wang <wxt@rock-chips.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
[wsa: fixed whitespace issue]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rk3x.c