i2c: meson: Use 50% duty cycle for I2C clock
authorLucas Tanure <tanure@linux.com>
Sat, 9 Apr 2022 16:43:34 +0000 (17:43 +0100)
committerWolfram Sang <wsa@kernel.org>
Fri, 15 Apr 2022 21:45:34 +0000 (23:45 +0200)
commita57f9b4dd6f5772750d8776c08c0d23c6b823da9
tree4a94bf24f2b0a81ab33ca8fc62243d60c47a63f7
parent1b9a8a6d433f254f3a0dc61c217aa692468e254c
i2c: meson: Use 50% duty cycle for I2C clock

The duty cycle of 33% is less than the required
by the I2C specs for the LOW period of the SCL
clock.

Move the duty cyle to 50% for 100Khz or lower
clocks, and (40% High SCL / 60% Low SCL) duty
cycle for clocks above 100Khz.

Signed-off-by: Lucas Tanure <tanure@linux.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-meson.c