i2c: designware: Look for *CNT values in DT
authorPhil Elwell <phil@raspberrypi.com>
Tue, 19 Dec 2023 11:16:25 +0000 (11:16 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:25 +0000 (11:35 +0000)
commit65766fbb68652767cbcb264721910fb1da96ecf1
treec828ae719b69f1c40ba61283c90cced563f2a3d2
parentc685c35b0716bc5c924210c2060fb768b591a4d5
i2c: designware: Look for *CNT values in DT

The i2c-designware driver supports reading precise timing values from
ACPI, but the Device Tree support relies on a combination of standard
rise and fall times and hard-coded minimum timings. The result of this
is that it is difficult to get optimum timings, particularly given that
the values are bus speed-specific and only one set can be stored in
DT at a time.

Add support for initialisation from DT that is similar to that for
ACPI.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/i2c/busses/i2c-designware-platdrv.c