diff options
author | Keith Short <keithshort@chromium.org> | 2021-11-22 17:18:02 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-06 21:29:04 +0000 |
commit | ee5fe104f5378a17de5a24438500f9e3eccfa08d (patch) | |
tree | ca3a05ba0153ce1144eb9db3f9fbf128693df6ef | |
parent | a0a6158f4b8074dd57d2bc2f4de49c9ed900c94f (diff) | |
download | chrome-ec-ee5fe104f5378a17de5a24438500f9e3eccfa08d.tar.gz |
zephyr: herobrine: Update I2C bus labels
The EC chip provides a default label for every I2C bus. Override the
default label with a label matching the schematic net name.
Typing "i2c scan <tab>" on Herobrine now shows the following labels:
uart:~$ i2c scan
I2C_SENSOR I2C_EEPROM I2C_RTC I2C_USB_C1_PD I2C_USB_C0_PD
I2C_POWER
BUG=none
BRANCH=none
TEST=Boot Zephyr on herobrine, verify the new I2C bus labels
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I41c4bfbffca5ee49b66d6ffbfc0a6d73ea06db8d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3300665
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
-rw-r--r-- | zephyr/projects/herobrine/herobrine_npcx9/i2c.dts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/zephyr/projects/herobrine/herobrine_npcx9/i2c.dts b/zephyr/projects/herobrine/herobrine_npcx9/i2c.dts index e5a35c10d5..d8cb226710 100644 --- a/zephyr/projects/herobrine/herobrine_npcx9/i2c.dts +++ b/zephyr/projects/herobrine/herobrine_npcx9/i2c.dts @@ -64,6 +64,7 @@ }; &i2c0_0 { + label = "I2C_POWER"; status = "okay"; clock-frequency = <I2C_BITRATE_STANDARD>; @@ -79,6 +80,7 @@ }; &i2c1_0 { + label = "I2C_USB_C0_PD"; status = "okay"; /* * TODO(b/200280341): PS8805 SPI ROM access @@ -97,6 +99,7 @@ }; &i2c2_0 { + label = "I2C_USB_C1_PD"; status = "okay"; /* TODO(b/200280341): PS8805 SPI ROM access */ clock-frequency = <I2C_BITRATE_FAST>; @@ -111,11 +114,8 @@ clock-frequency = <I2C_BITRATE_FAST>; }; -&i2c_ctrl3 { - status = "okay"; -}; - &i2c4_1 { + label = "I2C_RTC"; status = "okay"; clock-frequency = <I2C_BITRATE_FAST>; @@ -132,6 +132,7 @@ }; &i2c5_0 { + label = "I2C_EEPROM"; status = "okay"; clock-frequency = <I2C_BITRATE_FAST>; }; @@ -141,6 +142,7 @@ }; &i2c7_0 { + label = "I2C_SENSOR"; status = "okay"; clock-frequency = <I2C_BITRATE_FAST>; }; |