diff options
author | Dawid Niedzwiecki <dn@semihalf.com> | 2021-11-09 12:00:13 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-03-11 05:36:12 +0000 |
commit | bf8359c11960d7eea736db45424ddc9b80ce2f32 (patch) | |
tree | 254957c23c19050fda1c467d771dbcfdcc5f2fe4 /zephyr/projects/herobrine | |
parent | d0eb27ffb2c0a8aa5c3964d79b2b79b9debd5a92 (diff) | |
download | chrome-ec-bf8359c11960d7eea736db45424ddc9b80ce2f32.tar.gz |
zephyr: herobrine: enable 1Mhz I2C speed for TCPC chips
Once changing I2C speed is possible in runtime, reenable
1MHz(I2C_BITRATE_FAST_PLUS) for the TCPC ports.
Also, add remote-port property to named-i2c-port nodes in dts to define
how to access a desired port. It is done based on an enum in
registers-npcx9.h file.
BUG=b:201408942
TEST=zmake testall & Verify PD works on herobrine
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: Ie304bd6ad38fd8c7f6b33b3de8a97c175d9edf28
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3269840
Tested-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/herobrine')
-rw-r--r-- | zephyr/projects/herobrine/i2c.dts | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/zephyr/projects/herobrine/i2c.dts b/zephyr/projects/herobrine/i2c.dts index 7f8003b862..df31d9cdee 100644 --- a/zephyr/projects/herobrine/i2c.dts +++ b/zephyr/projects/herobrine/i2c.dts @@ -87,16 +87,7 @@ &i2c1_0 { label = "I2C_USB_C0_PD"; status = "okay"; - /* - * TODO(b/200280341): PS8805 SPI ROM access - * - * The PS8805 supports 1 MHz during normal operation, but only - * 400 Khz during firmware updates. The I2C passthru commands don't - * currently support changing the I2C frequency or notifying the EC - * that a programming operation is going to start. Lower the clock - * rate to 400 kHz for all accesses. - */ - clock-frequency = <I2C_BITRATE_FAST>; + clock-frequency = <I2C_BITRATE_FAST_PLUS>; }; &i2c_ctrl1 { @@ -106,8 +97,7 @@ &i2c2_0 { label = "I2C_USB_C1_PD"; status = "okay"; - /* TODO(b/200280341): PS8805 SPI ROM access */ - clock-frequency = <I2C_BITRATE_FAST>; + clock-frequency = <I2C_BITRATE_FAST_PLUS>; }; &i2c_ctrl2 { |