summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2022-02-25 10:08:31 -0800
committerCommit Bot <commit-bot@chromium.org>2022-02-26 01:14:02 +0000
commitfdff2da9817e6bc319e0efeaa6ae58ff18ecd546 (patch)
tree0a54dfb780f0ce03518430755b5b8a828abb178e
parent4c4391b410e4ae4b0fe92222c10c684431b8270a (diff)
downloadchrome-ec-fdff2da9817e6bc319e0efeaa6ae58ff18ecd546.tar.gz
villager: Update the USB-C dts overlay
Fork the USBC dts overlay and update the PPC nodes to reflect the component change. BRANCH=None BUG=b:221444985 TEST=Built the villager EC image without breaking the herobrine and hoglin images. Change-Id: Ia1af9366c7cc6198172bc9f4188d2b080ba15fd3 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3491321 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--zephyr/projects/herobrine/BUILD.py10
-rw-r--r--zephyr/projects/herobrine/usbc_herobrine.dts (renamed from zephyr/projects/herobrine/usbc.dts)0
-rw-r--r--zephyr/projects/herobrine/usbc_villager.dts57
3 files changed, 66 insertions, 1 deletions
diff --git a/zephyr/projects/herobrine/BUILD.py b/zephyr/projects/herobrine/BUILD.py
index 04d632230b..924e5487e6 100644
--- a/zephyr/projects/herobrine/BUILD.py
+++ b/zephyr/projects/herobrine/BUILD.py
@@ -19,7 +19,6 @@ def register_variant(project_name, extra_dts_overlays=(), extra_kconfig_files=()
here / "motionsense.dts",
here / "pwm.dts",
here / "switchcap.dts",
- here / "usbc.dts",
# Project-specific DTS customization.
*extra_dts_overlays,
],
@@ -34,17 +33,26 @@ def register_variant(project_name, extra_dts_overlays=(), extra_kconfig_files=()
register_variant(
project_name="herobrine",
+ extra_dts_overlays=[
+ here / "usbc_herobrine.dts",
+ ],
extra_kconfig_files=[here / "prj_herobrine.conf"],
)
register_variant(
project_name="hoglin",
+ extra_dts_overlays=[
+ here / "usbc_herobrine.dts",
+ ],
extra_kconfig_files=[here / "prj_hoglin.conf"],
)
register_variant(
project_name="villager",
+ extra_dts_overlays=[
+ here / "usbc_villager.dts",
+ ],
extra_kconfig_files=[here / "prj_villager.conf"],
)
diff --git a/zephyr/projects/herobrine/usbc.dts b/zephyr/projects/herobrine/usbc_herobrine.dts
index d1fa1bb1d4..d1fa1bb1d4 100644
--- a/zephyr/projects/herobrine/usbc.dts
+++ b/zephyr/projects/herobrine/usbc_herobrine.dts
diff --git a/zephyr/projects/herobrine/usbc_villager.dts b/zephyr/projects/herobrine/usbc_villager.dts
new file mode 100644
index 0000000000..aa23fe9803
--- /dev/null
+++ b/zephyr/projects/herobrine/usbc_villager.dts
@@ -0,0 +1,57 @@
+/* Copyright 2022 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/ {
+ usbc {
+ compatible = "named-usbc-ports";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ port0: usbc-port@0 {
+ reg = <0>;
+ bc12 {
+ compatible = "pericom,pi3usb9201";
+ status = "okay";
+ irq = <&int_usb_c0_bc12>;
+ port = <&i2c_power>;
+ i2c-addr-flags = "PI3USB9201_I2C_ADDR_3_FLAGS";
+ };
+ ppc {
+ compatible = "silergy,syv682x";
+ status = "okay";
+ port = <&i2c_tcpc0>;
+ i2c-addr-flags = "SYV682X_ADDR1_FLAGS";
+ };
+ tcpc {
+ compatible = "parade,ps8xxx";
+ status = "okay";
+ port = <&i2c_tcpc0>;
+ i2c-addr-flags = "PS8XXX_I2C_ADDR1_FLAGS";
+ };
+ };
+
+ port1: usbc-port@1 {
+ reg = <1>;
+ bc12 {
+ compatible = "pericom,pi3usb9201";
+ status = "okay";
+ irq = <&int_usb_c1_bc12>;
+ port = <&i2c_eeprom>;
+ i2c-addr-flags = "PI3USB9201_I2C_ADDR_3_FLAGS";
+ };
+ ppc {
+ compatible = "silergy,syv682x";
+ status = "okay";
+ port = <&i2c_tcpc1>;
+ i2c-addr-flags = "SYV682X_ADDR1_FLAGS";
+ };
+ tcpc {
+ compatible = "parade,ps8xxx";
+ status = "okay";
+ port = <&i2c_tcpc1>;
+ i2c-addr-flags = "PS8XXX_I2C_ADDR1_FLAGS";
+ };
+ };
+ };
+};