summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@google.com>2021-06-16 12:10:54 -0600
committerCommit Bot <commit-bot@chromium.org>2021-06-17 18:33:01 +0000
commit4bc2cd067712a8732b8b0f75fd7d2e05a05bd749 (patch)
tree28528c72ca600775759dcec50f7ce1d4181fe5b4 /zephyr
parent748c59c5916fab15dca99121371e911a68460594 (diff)
downloadchrome-ec-4bc2cd067712a8732b8b0f75fd7d2e05a05bd749.tar.gz
zephyr: lis2dw12: add I2C addr_flags in the DTS
BUG=b:189857004 BRANCH=none TEST=ap console 'ectool motionsense' TEST=ap console 'ectool motionsense lid_angle' TEST=verify lid angle will enable/disable tablet mode Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I81b0c7883fe7f968f8226d0101e27ee03676097c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2964956 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml
index 5f7b0b40e0..76c04dcb1a 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml
@@ -8,3 +8,12 @@ compatible: "cros-ec,lis2dw12"
# 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 peripheral logic GPIO
+ enum:
+ - "LIS2DWL_ADDR0_FLAGS"
+ - "LIS2DWL_ADDR1_FLAGS"
+ default: "LIS2DWL_ADDR1_FLAGS"