From 86f0df4ca20bf69e773da2656d5526e4bf8aa076 Mon Sep 17 00:00:00 2001 From: Sunwei Li Date: Fri, 10 Sep 2021 15:36:32 +0800 Subject: mb/google/dedede/var/cappy2: Configure I2C times for tp & codec Configure I2C high / low time in the device tree to ensure I2C CLK runs accurately between 380 kHz and 400 kHz. Measured I2C frequency just as below after tuning: touchpad:390kHz codec:395.8kHz BUG=b:199481261 BRANCH=dedede TEST=Build and check after tuning I2C clock is between 380 kHz and 400 kHz Signed-off-by: Sunwei Li Change-Id: Ifadc3d19eb57fe6f67504be154c30df7bc0fee71 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57551 Tested-by: build bot (Jenkins) Reviewed-by: Karthik Ramasubramanian --- src/mainboard/google/dedede/variants/cappy2/overridetree.cb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mainboard/google/dedede/variants/cappy2/overridetree.cb b/src/mainboard/google/dedede/variants/cappy2/overridetree.cb index 7519a326ff..7e95edae0a 100644 --- a/src/mainboard/google/dedede/variants/cappy2/overridetree.cb +++ b/src/mainboard/google/dedede/variants/cappy2/overridetree.cb @@ -22,6 +22,8 @@ chip soc/intel/jasperlake register "common_soc_config" = "{ .i2c[0] = { .speed = I2C_SPEED_FAST, + .rise_time_ns = 255, + .fall_time_ns = 14, }, .i2c[1] = { .speed = I2C_SPEED_FAST, @@ -34,6 +36,8 @@ chip soc/intel/jasperlake }, .i2c[4] = { .speed = I2C_SPEED_FAST, + .rise_time_ns = 105, + .fall_time_ns = 4, }, }" -- cgit v1.2.3