From fd952aaa50aff91f19781648c9952b59ce315445 Mon Sep 17 00:00:00 2001 From: Tao Xia Date: Thu, 18 Mar 2021 16:18:06 +0800 Subject: mb/google/dedede/var/storo: Configure I2C times for I2C devices Configure I2C high / low time in device tree to ensure I2C CLK runs accurately at I2C_SPEED_FAST (400 kHz). Measured I2C frequency just as below after tuning: touchpad:371.63 kHz touchpanel:368.24 kHz audio codec RT5682:369.13 kHz speaker AMP L:366.21 kHz speaker AMP R:365.8 kHz P-sensor:368.34 kHz MIPI Camera:363.35 kHz BUG=b:181589325 BRANCH=dedede TEST=Build and check after tuning I2C clock is under 400kHz Signed-off-by: Tao Xia Change-Id: I1a755a54540e106b41ac427f84989ed7e8037558 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51624 Reviewed-by: Karthik Ramasubramanian Tested-by: build bot (Jenkins) --- src/mainboard/google/dedede/variants/storo/overridetree.cb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/dedede/variants/storo/overridetree.cb b/src/mainboard/google/dedede/variants/storo/overridetree.cb index 0025fece98..b3a8e2203e 100644 --- a/src/mainboard/google/dedede/variants/storo/overridetree.cb +++ b/src/mainboard/google/dedede/variants/storo/overridetree.cb @@ -26,21 +26,31 @@ chip soc/intel/jasperlake }, .i2c[0] = { .speed = I2C_SPEED_FAST, + .rise_time_ns = 125, + .fall_time_ns = 19, }, .i2c[1] = { .speed = I2C_SPEED_FAST, }, .i2c[2] = { .speed = I2C_SPEED_FAST, + .rise_time_ns = 86, + .fall_time_ns = 5, }, .i2c[3] = { .speed = I2C_SPEED_FAST, + .rise_time_ns = 84, + .fall_time_ns = 4, }, .i2c[4] = { .speed = I2C_SPEED_FAST, + .rise_time_ns = 69, + .fall_time_ns = 3, }, .i2c[5] = { .speed = I2C_SPEED_FAST, + .rise_time_ns = 129, + .fall_time_ns = 4, }, }" -- cgit v1.2.3