summaryrefslogtreecommitdiff
path: root/zephyr/test/i2c/overlay.dts
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-02-05 12:24:38 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-06 01:00:40 +0000
commit9fc79b2e2d2b3c0119df50afbad81ea541c36519 (patch)
tree2c26ee5bd251fe8322bfcbc9c791d4995ec3dc3c /zephyr/test/i2c/overlay.dts
parent08aa55288e75eec80c66efff1a59c14a6048ac5d (diff)
downloadchrome-ec-9fc79b2e2d2b3c0119df50afbad81ea541c36519.tar.gz
zephyr: zmake: add board-specific DTS overlays
Allow board-specific DTS overlays to be placed at zephyr/dts/board-overlays/${BOARD}.dts in any module. Zmake will find the file and append it to the DTC_OVERLAY_FILE list when discovered. BUG=b:179491802 BRANCH=none TEST=provided unit test passes Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I53d4a04b6056689696b4615b5998937dbcf801c4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2678795 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/test/i2c/overlay.dts')
-rw-r--r--zephyr/test/i2c/overlay.dts22
1 files changed, 22 insertions, 0 deletions
diff --git a/zephyr/test/i2c/overlay.dts b/zephyr/test/i2c/overlay.dts
new file mode 100644
index 0000000000..ec534a1b88
--- /dev/null
+++ b/zephyr/test/i2c/overlay.dts
@@ -0,0 +1,22 @@
+/* Copyright 2020 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.
+ */
+
+/ {
+ named-i2c-ports {
+ compatible = "named-i2c-ports";
+ accel-0 {
+ i2c-port = <&bmi_i2c>;
+ label = "ACCEL_0";
+ };
+ };
+};
+
+&i2c0 {
+ bmi_i2c: bmi@68 {
+ compatible = "bosch,bmi160";
+ reg = <0x68>;
+ label = "accel-i2c";
+ };
+};