From: Heiko Schocher Date: Tue, 18 Feb 2020 08:20:28 +0100 Subject: [PATCH 2/2] dm: i2c-gpio: add support for clock stretching In-Reply-To: <20200207165532.219139-2-michael.auchter@ni.com> References: <20200123223009.213180-1-michael.auchter@ni.com> <20200207165532.219139-1-michael.auchter@ni.com> <20200207165532.219139-2-michael.auchter@ni.com> Message-ID: <52f8828e-7df8-07f9-402f-ff02db27ae51@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Michael, Am 07.02.2020 um 17:55 schrieb Michael Auchter: > This adds support for clock stretching to the i2c-gpio driver. This is > accomplished by switching the GPIO used for the SCL line to an input > when it should be driven high, and polling on the SCL line value until > it goes high (indicating that the I2C slave is no longer pulling it > low). > > This is enabled by default; for gpios which cannot be configured as > inputs, the i2c-gpio,scl-output-only property can be used to fall back > to the previous behavior. > > Signed-off-by: Michael Auchter > Cc: Heiko Schocher > --- > doc/device-tree-bindings/i2c/i2c-gpio.txt | 2 ++ > drivers/i2c/i2c-gpio.c | 23 ++++++++++++++++++++++- > 2 files changed, 24 insertions(+), 1 deletion(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de