summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2021-07-20 14:59:12 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-21 18:26:17 +0000
commit975595b95b636d98512cbaadc5f344a089a3cb52 (patch)
tree74b28746984dd3d7ace8dac0808152962761183e
parent6d7a97e11298d7580d9abc6913be677845a45428 (diff)
downloadchrome-ec-975595b95b636d98512cbaadc5f344a089a3cb52.tar.gz
zephyr: motionsense: Add default value of i2c-spi-addr-flags
Make the property consistent across different sensors: * not required * default to a common I2C address BRANCH=None BUG=b:194194887 TEST=Built the delbin and hayato images successfully. Change-Id: I7784176e6d09e883b9ef957311aba610d3e69597 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3042985 Reviewed-by: Yuval Peress <peress@chromium.org>
-rw-r--r--zephyr/dts/bindings/motionsense/driver/bmi260.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/tcs3400.yaml2
3 files changed, 3 insertions, 3 deletions
diff --git a/zephyr/dts/bindings/motionsense/driver/bmi260.yaml b/zephyr/dts/bindings/motionsense/driver/bmi260.yaml
index 1f9c16a2d9..f308472ec3 100644
--- a/zephyr/dts/bindings/motionsense/driver/bmi260.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/bmi260.yaml
@@ -10,7 +10,7 @@ include: motionsense-sensor-base.yaml
properties:
i2c-spi-addr-flags:
type: string
- required: true
description: i2c address or SPI slave logic GPIO
enum:
- "BMI260_ADDR0_FLAGS"
+ default: "BMI260_ADDR0_FLAGS"
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml
index a3d5575fb3..77d6282d7f 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml
@@ -12,10 +12,10 @@ include: motionsense-sensor-base.yaml
properties:
i2c-spi-addr-flags:
type: string
- required: true
description: i2c address or SPI slave logic GPIO
enum:
- "BMA2x2_I2C_ADDR1_FLAGS"
- "BMA2x2_I2C_ADDR2_FLAGS"
- "BMA2x2_I2C_ADDR3_FLAGS"
- "BMA2x2_I2C_ADDR4_FLAGS"
+ default: "BMA2x2_I2C_ADDR1_FLAGS"
diff --git a/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml b/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml
index ddf50f6d62..c70db23104 100644
--- a/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml
@@ -10,7 +10,7 @@ include: motionsense-sensor-base.yaml
properties:
i2c-spi-addr-flags:
type: string
- required: false
description: i2c address or SPI slave logic GPIO
enum:
- "TCS3400_I2C_ADDR_FLAGS"
+ default: "TCS3400_I2C_ADDR_FLAGS"