summaryrefslogtreecommitdiff
path: root/zephyr/test/i2c_dts/boards/native_posix.overlay
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/test/i2c_dts/boards/native_posix.overlay')
-rw-r--r--zephyr/test/i2c_dts/boards/native_posix.overlay22
1 files changed, 22 insertions, 0 deletions
diff --git a/zephyr/test/i2c_dts/boards/native_posix.overlay b/zephyr/test/i2c_dts/boards/native_posix.overlay
new file mode 100644
index 0000000000..272be85361
--- /dev/null
+++ b/zephyr/test/i2c_dts/boards/native_posix.overlay
@@ -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 = "i2c-keys";
+ accel-0 {
+ i2c-port = <&bmi_i2c>;
+ label = "ACCEL_0";
+ };
+ };
+};
+
+&i2c0 {
+ bmi_i2c: bmi@68 {
+ compatible = "bosch,bmi160";
+ reg = <0x68>;
+ label = "accel-i2c";
+ };
+};