summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/motionsense/driver
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-04-21 23:24:17 -0600
committerCommit Bot <commit-bot@chromium.org>2021-04-23 17:32:01 +0000
commit91fae3e36038080aa004507c08e43f4c12281169 (patch)
treeaa0349578d3ffa1e7679df088cf005b0560f9338 /zephyr/dts/bindings/motionsense/driver
parent03e78d7583ebdfe0f9d53f70a256d0fb23807696 (diff)
downloadchrome-ec-91fae3e36038080aa004507c08e43f4c12281169.tar.gz
zephyr: drivers: add bindings for KX022
Add the bindings files for the kx022 and generic kionix driver data. Also, add the .inc files needed to create an instance of the sensor and data structures. BRANCH=none BUG=b:185966444 TEST=zmake testall Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: Id72690763b27888848645ee38a747a4e49fa0d42 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2845558 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings/motionsense/driver')
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml
new file mode 100644
index 0000000000..b90d824575
--- /dev/null
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml
@@ -0,0 +1,21 @@
+# Copyright 2021 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.
+
+description: motionsense sensor node for KX022
+
+compatible: "cros-ec,kx022"
+
+# every motionsense sensor node should include motionsense-sensor-base.yaml
+include: motionsense-sensor-base.yaml
+
+properties:
+ i2c-spi-addr-flags:
+ type: string
+ description: i2c address or SPI slave logic GPIO
+ enum:
+ - "KX022_ADDR0_FLAGS"
+ - "KX022_ADDR1_FLAGS"
+ default: "KX022_ADDR0_FLAGS"
+ default-range:
+ default: 2