summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-09-22 17:01:34 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-23 15:49:59 +0000
commitb5f74864dbcf3d7980f9d5d5bc7edb9dc2513d88 (patch)
treee2e94ea99f8cb8db80fa9a53cbcb594d97a1cae8
parente5253ca54aa540e6d0db997a9937de801b146e7d (diff)
downloadchrome-ec-b5f74864dbcf3d7980f9d5d5bc7edb9dc2513d88.tar.gz
zephyr: guybrush: enable I2C controllers
Explicitly enable all used I2C controllers. CL:3176841 disables the NPCX I2C controllers by default to save flash and RAM space. BUG=b:200292035 BRANCH=none TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: If2bbfbaee2e8392040776a9c87f0464274a7f2dd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3177580 Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r--zephyr/boards/arm/npcx9/npcx9.dts32
1 files changed, 32 insertions, 0 deletions
diff --git a/zephyr/boards/arm/npcx9/npcx9.dts b/zephyr/boards/arm/npcx9/npcx9.dts
index e6acb22ede..ab44d8119e 100644
--- a/zephyr/boards/arm/npcx9/npcx9.dts
+++ b/zephyr/boards/arm/npcx9/npcx9.dts
@@ -103,41 +103,73 @@
clock-frequency = <I2C_BITRATE_FAST>;
};
+&i2c_ctrl0 {
+ status = "okay";
+};
+
&i2c1_0 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST_PLUS>;
};
+&i2c_ctrl1 {
+ status = "okay";
+};
+
&i2c2_0 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST_PLUS>;
};
+&i2c_ctrl2 {
+ status = "okay";
+};
+
&i2c3_0 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST_PLUS>;
};
+&i2c_ctrl3 {
+ status = "okay";
+};
+
&i2c4_1 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};
+&i2c_ctrl4 {
+ status = "okay";
+};
+
&i2c5_0 {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
};
+&i2c_ctrl5 {
+ status = "okay";
+};
+
&i2c6_1 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};
+&i2c_ctrl6 {
+ status = "okay";
+};
+
&i2c7_0 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};
+&i2c_ctrl7 {
+ status = "okay";
+};
+
&cros_kb_raw {
status = "okay";
/* No KSO2 (it's inverted and implemented by GPIO) */