]> git.baikalelectronics.ru Git - kernel.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)
commitf5863b83a6e4c75664bc785a08b54f87f89fdbae
treeed2cc9b10bf940ddc6da148618140b662086f853
parentea65cd90454aaf018fbf7523c4c4243e720717cd
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