summaryrefslogtreecommitdiff
path: root/zephyr/projects/nissa/xivu/cbi.dts
diff options
context:
space:
mode:
authorShou-Chieh Hsu <shouchieh@google.com>2022-08-30 18:16:07 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-31 07:09:59 +0000
commit7aafb1faf3c2f02096fceb86275b867fa4dab272 (patch)
tree3778f92bae0193b6ae6db552b4a989b00a19ff83 /zephyr/projects/nissa/xivu/cbi.dts
parent4b97bd83ad39183d645702c0fe80a3b46aad432c (diff)
downloadchrome-ec-7aafb1faf3c2f02096fceb86275b867fa4dab272.tar.gz
nissa: xivu: add customized xivu/cbi.dts
FW_CONFIG bit 0 and bit 1 is already occupied in Xivu in boxster config. So we want to overwrite the EC FW_CONFIG definition for Xivu. BUG=b:244121371 TEST=zmake build xivu `ectool cbi set 6 0x7 4` and check typeC sub-board functionality BRANCH=None Signed-off-by: Shou-Chieh Hsu <shouchieh@chromium.org> Change-Id: Iac54979f7d44de376e7a0ff305d5cf447f34edde Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3864608 Reviewed-by: Henry Sun <henrysun@google.com> Tested-by: SamSP Liu <samsp_liu2@compal.corp-partner.google.com>
Diffstat (limited to 'zephyr/projects/nissa/xivu/cbi.dts')
-rw-r--r--zephyr/projects/nissa/xivu/cbi.dts77
1 files changed, 77 insertions, 0 deletions
diff --git a/zephyr/projects/nissa/xivu/cbi.dts b/zephyr/projects/nissa/xivu/cbi.dts
new file mode 100644
index 0000000000..3da5917282
--- /dev/null
+++ b/zephyr/projects/nissa/xivu/cbi.dts
@@ -0,0 +1,77 @@
+/* Copyright 2022 The ChromiumOS Authors.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/ {
+ /* Xivu-specific fw_config fields. */
+ nissa-fw-config {
+ /*
+ * FW_CONFIG field to enable WFC or not.
+ */
+ wfc {
+ enum-name = "FW_WFC";
+ start = <0>;
+ size = <1>;
+
+ wfc-mipi {
+ compatible = "cros-ec,cbi-fw-config-value";
+ enum-name = "FW_WFC_MIPI";
+ value = <0>;
+ };
+ wfc-absent {
+ compatible = "cros-ec,cbi-fw-config-value";
+ enum-name = "FW_WFC_ABSENT";
+ value = <1>;
+ };
+ };
+
+ /*
+ * FW_CONFIG field to enable stylus or not.
+ */
+ stylus {
+ enum-name = "FW_STYLUS";
+ start = <1>;
+ size = <1>;
+
+ stylus-present {
+ compatible = "cros-ec,cbi-fw-config-value";
+ enum-name = "FW_STYLUS_PRESENT";
+ value = <0>;
+ };
+ stylus-absent {
+ compatible = "cros-ec,cbi-fw-config-value";
+ enum-name = "FW_STYLUS_ABSENT";
+ value = <1>;
+ };
+ };
+ /*
+ * FW_CONFIG field to indicate which sub-board
+ * is attached.
+ */
+ sub-board {
+ enum-name = "FW_SUB_BOARD";
+ start = <2>;
+ size = <2>;
+
+ sub-board-1 {
+ compatible = "cros-ec,cbi-fw-config-value";
+ enum-name = "FW_SUB_BOARD_1";
+ value = <1>;
+ };
+ sub-board-2 {
+ compatible = "cros-ec,cbi-fw-config-value";
+ enum-name = "FW_SUB_BOARD_2";
+ value = <2>;
+ };
+ sub-board-3 {
+ compatible = "cros-ec,cbi-fw-config-value";
+ enum-name = "FW_SUB_BOARD_3";
+ value = <3>;
+ };
+ };
+
+/delete-node/ fan;
+ };
+
+};