]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
i2c: uniphier: fix violation of tLOW requirement for Fast-mode
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 6 Dec 2018 03:55:27 +0000 (12:55 +0900)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit50051ebe2e74e01735cd44c19e9ec5bd1f17cd64
treec526d147b699907c3bc963bb83d0a78bbb456e2c
parent9572e244c26735cdd889f0c278d946875ab7054e
i2c: uniphier: fix violation of tLOW requirement for Fast-mode

BugLink: https://bugs.launchpad.net/bugs/1837257
[ Upstream commit 8469636ab5d8c77645b953746c10fda6983a8830 ]

Currently, the clock duty is set as tLOW/tHIGH = 1/1. For Fast-mode,
tLOW is set to 1.25 us while the I2C spec requires tLOW >= 1.3 us.

tLOW/tHIGH = 5/4 would meet both Standard-mode and Fast-mode:
  Standard-mode: tLOW = 5.56 us, tHIGH = 4.44 us
  Fast-mode:     tLOW = 1.39 us, tHIGH = 1.11 us

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/i2c/busses/i2c-uniphier.c