Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1401652

Re: [PATCH v10 7/8] i2c: rk3x: add i2c support for rk3399 soc

From Doug Anderson <dianders@chromium.org>
Newsgroups linux.kernel
Subject Re: [PATCH v10 7/8] i2c: rk3x: add i2c support for rk3399 soc
Date 2016-05-16 19:30 +0200
Message-ID <rzuvd-1tB-5@gated-at.bofh.it> (permalink)
References <rzrxf-85I-3@gated-at.bofh.it> <rzrGW-892-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


David,

On Mon, May 16, 2016 at 7:05 AM, David Wu <david.wu@rock-chips.com> wrote:
> - 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>
> ---
> Change in v10:
> - fix the clean of con register in rk3x_i2c_stop()
>
> Change in v9:
> - add spin lock for tuning updated in rk3x_i2c_adapt_div() (Doug)
>
> Changes in v8:
> - update tuning in RKI2C_CON register by doing a read-modify-write (Doug)
> - new method to use pclk and clk (Doug)
>
> Changes in v7:
> - transform into a 9 series patches (Doug)
> - drop highspeed with mastercode, and support fast-mode plus (Doug)
>
>  drivers/i2c/busses/i2c-rk3x.c | 294 +++++++++++++++++++++++++++++++++++++++---
>  1 file changed, 274 insertions(+), 20 deletions(-)

Reviewed-by: Douglas Anderson <dianders@chromium.org>

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v10 0/8] add i2c driver supported for rk3399 David Wu <david.wu@rock-chips.com> - 2016-05-16 16:20 +0200
  [PATCH v10 7/8] i2c: rk3x: add i2c support for rk3399 soc David Wu <david.wu@rock-chips.com> - 2016-05-16 16:30 +0200
    Re: [PATCH v10 7/8] i2c: rk3x: add i2c support for rk3399 soc Doug Anderson <dianders@chromium.org> - 2016-05-16 19:30 +0200
  [PATCH v10 5/8] i2c: rk3x: Move spec timing data to "static const" structs David Wu <david.wu@rock-chips.com> - 2016-05-16 16:30 +0200
  [PATCH v10 8/8] i2c: rk3x: support fast-mode plus for rk3399 David Wu <david.wu@rock-chips.com> - 2016-05-16 16:30 +0200
  [PATCH v10 6/8] dt-bindings: i2c: rk3x: add support for rk3399 David Wu <david.wu@rock-chips.com> - 2016-05-16 16:30 +0200
    Re: [PATCH v10 6/8] dt-bindings: i2c: rk3x: add support for rk3399 Rob Herring <robh@kernel.org> - 2016-05-16 18:50 +0200
  Re: [PATCH v10 0/8] add i2c driver supported for rk3399 Doug Anderson <dianders@chromium.org> - 2016-05-16 22:20 +0200

csiph-web