i2c: designware: Use SCL rise and fall times in DT
authorPhil Elwell <phil@raspberrypi.com>
Tue, 16 Jan 2024 15:54:22 +0000 (15:54 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:33 +0000 (11:35 +0000)
commit2eec998d6ed491e0fb3872d9798a007eaadee4a1
tree4b43b1fcacf2535fa24d9475772028bc7248ccce
parent8fa93390be11d9f6ea73db3890930856e3a0f635
i2c: designware: Use SCL rise and fall times in DT

Calculate the HCNT and LCNT values for all modes using the rise and
fall times of SCL, the aim being a 50/50 mark/space ratio.

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