summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2022-03-08 16:16:52 -0700
committerCommit Bot <commit-bot@chromium.org>2022-03-15 18:18:27 +0000
commit3fe32582658cf55f92005b22b9bcfb510d7f4cf8 (patch)
treeb023d0d3d7f69cceca1d269c7c783302a80bc1a8
parentdcf99a4a0a2f818df91f22e47f46a3e8243b64ae (diff)
downloadchrome-ec-3fe32582658cf55f92005b22b9bcfb510d7f4cf8.tar.gz
Skyrim: Add FW_CONFIG
Add device tree entries for FW_CONFIG defined for skyrim. BRANCH=None BUG=b:208515128 TEST=zmake testall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I31eed725880381a25d95037196a786f189b802f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3514505 Reviewed-by: Rob Barnes <robbarnes@google.com> Reviewed-by: Jonathon Murphy <jpmurphy@google.com> Commit-Queue: Jonathon Murphy <jpmurphy@google.com>
-rw-r--r--zephyr/projects/skyrim/skyrim.dts43
1 files changed, 43 insertions, 0 deletions
diff --git a/zephyr/projects/skyrim/skyrim.dts b/zephyr/projects/skyrim/skyrim.dts
index 4e75721f1d..4bf65ffc74 100644
--- a/zephyr/projects/skyrim/skyrim.dts
+++ b/zephyr/projects/skyrim/skyrim.dts
@@ -137,4 +137,47 @@
handler = "baseboard_set_soc_pwr_pgood";
};
};
+
+ /*
+ * Note this is expected to vary per-board, so we keep it in the board
+ * dts files.
+ */
+ skyrim-fw-config {
+ compatible = "cros-ec,cbi-fw-config";
+
+ form-factor {
+ enum-name = "FW_FORM_FACTOR";
+ start = <0>;
+ size = <1>;
+
+ ff-clamshell {
+ compatible = "cros-ec,cbi-fw-config-value";
+ enum-name = "FW_FF_CLAMSHELL";
+ value = <0>;
+ };
+ ff-convertible {
+ compatible = "cros-ec,cbi-fw-config-value";
+ enum-name = "FW_FF_CONVERTIBLE";
+ value = <1>;
+ default;
+ };
+ };
+ io-db {
+ enum-name = "FW_IO_DB";
+ start = <6>;
+ size = <2>;
+
+ io-db-ps8811-ps8818 {
+ compatible = "cros-ec,cbi-fw-config-value";
+ enum-name = "FW_IO_DB_PS8811_PS8818";
+ value = <0>;
+ };
+ io-db-none-anx7483 {
+ compatible = "cros-ec,cbi-fw-config-value";
+ enum-name = "FW_IO_DB_NONE_ANX7483";
+ value = <1>;
+ default;
+ };
+ };
+ };
};