diff options
author | stanley.wu <stanley1.wu@lcfc.corp-partner.google.com> | 2021-09-01 11:03:07 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-09-05 19:26:50 +0000 |
commit | 30fba61502f6cc19c846fa4a219b65823bfd6728 (patch) | |
tree | c833250803fa95a9c10173d24916072d5b1f3a37 /src/mainboard/google/dedede | |
parent | 1393831856ce92dde337ffa4696890fddb05cfcc (diff) |
mb/google/dedede/var/gooey: Configure I2C times for I2C devices
Configure I2C high / low time in device tree to ensure I2C
CLK runs under I2C_SPEED_FAST (400 kHz).
Measured I2C frequency just as below after tuning:
Touchpad: 386.7kHz
Touchscreen: 387.4kHz
Audio: 385.7kHz
P-sensor: 378.1kHz
BaUG=b:197247706
BRANCH=dedede
TEST=Build and check I2C clock is under 400kHz
Signed-off-by: stanley.wu <stanley1.wu@lcfc.corp-partner.google.com>
Change-Id: Ic5d5660181f36f161ae04cbf5003f6d7ad4bc16f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57297
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Henry Sun <henrysun@google.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard/google/dedede')
-rw-r--r-- | src/mainboard/google/dedede/variants/gooey/overridetree.cb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/gooey/overridetree.cb b/src/mainboard/google/dedede/variants/gooey/overridetree.cb index 9b291fbf4f..ab0e410adb 100644 --- a/src/mainboard/google/dedede/variants/gooey/overridetree.cb +++ b/src/mainboard/google/dedede/variants/gooey/overridetree.cb @@ -13,18 +13,26 @@ chip soc/intel/jasperlake register "common_soc_config" = "{ .i2c[0] = { .speed = I2C_SPEED_FAST, + .rise_time_ns = 212, + .fall_time_ns = 38, }, .i2c[1] = { .speed = I2C_SPEED_FAST, }, .i2c[2] = { .speed = I2C_SPEED_FAST, + .rise_time_ns = 212, + .fall_time_ns = 38, }, .i2c[4] = { .speed = I2C_SPEED_FAST, + .rise_time_ns = 212, + .fall_time_ns = 38, }, .i2c[5] = { .speed = I2C_SPEED_FAST, + .rise_time_ns = 212, + .fall_time_ns = 38, }, }" |