]> git.karo-electronics.de Git - linux-beck.git/commit
i2c: designware: make SCL and SDA falling time configurable
authorRomain Baeriswyl <Romain.Baeriswyl@abilis.com>
Mon, 20 Jan 2014 16:43:43 +0000 (17:43 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 9 Mar 2014 08:29:08 +0000 (09:29 +0100)
commit6468276b22069d4442aafcd8c59e5d8ccae23f5f
treeed2cc9b10bf940ddc6da148618140b662086f853
parent5029a22a45056603497c82445db9dd203b050e82
i2c: designware: make SCL and SDA falling time configurable

This patch allows to set independantly SCL and SDA falling times.
The tLOW period is computed by taking into account the SCL falling time.
The tHIGH period is computed by taking into account the SDA falling time.

For instance in case the margin on tLOW is considered too small, it can
be increased by increasing the SCL falling time which is by default set
at 300ns.

The same applies for tHIGH period with the help of SDA falling time.

Signed-off-by: Romain Baeriswyl <romainba@abilis.com>
Reviewed-by: Christian Ruppert <christian.ruppert@abilis.com>
Acked-by: Shinya Kuribayashi <skuribay@pobox.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/devicetree/bindings/i2c/i2c-designware.txt
drivers/i2c/busses/i2c-designware-core.c
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-platdrv.c