diff options
author | Wai-Hong Tam <waihong@google.com> | 2021-07-20 15:44:09 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-21 18:26:26 +0000 |
commit | fc2016b6e2dcdee7706e14197ee373e10d761445 (patch) | |
tree | 7fef15bc1ce0a471b18192756e0d5f1bb0b0fc47 /zephyr/dts/bindings/motionsense/driver | |
parent | 975595b95b636d98512cbaadc5f344a089a3cb52 (diff) | |
download | chrome-ec-fc2016b6e2dcdee7706e14197ee373e10d761445.tar.gz |
zephyr: motionsense: Add default value of default-range
The default range is a chip-specific property. The same motionsense chip
use the same setting and rarely changes. Add the value as the default
property. So the project dts can neglect this property. Easy to switch
chip without bothering to change this property.
BRANCH=None
BUG=b:194194887
TEST=Built the delbin and hayato images successfully.
Change-Id: I856f0b93af67974f29800551f7da779b43facc55
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3042986
Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings/motionsense/driver')
4 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-accel.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-accel.yaml index 09907d8711..130600cca2 100644 --- a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-accel.yaml +++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-accel.yaml @@ -7,3 +7,7 @@ description: motion sense sensor node for BMI260 accel compatible: "cros-ec,bmi260-accel" include: bmi260.yaml + +properties: + default-range: + default: 4 diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-gyro.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-gyro.yaml index 67da0c4085..00226d0304 100644 --- a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-gyro.yaml +++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-gyro.yaml @@ -7,3 +7,7 @@ description: motion sense sensor node for BMI260 gyro compatible: "cros-ec,bmi260-gyro" include: bmi260.yaml + +properties: + default-range: + default: 1000 diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml index 76c04dcb1a..bacf8f2c75 100644 --- a/zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml +++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml @@ -17,3 +17,5 @@ properties: - "LIS2DWL_ADDR0_FLAGS" - "LIS2DWL_ADDR1_FLAGS" default: "LIS2DWL_ADDR1_FLAGS" + default-range: + default: 2 diff --git a/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml b/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml index c70db23104..2fc3d7eacd 100644 --- a/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml +++ b/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml @@ -14,3 +14,5 @@ properties: enum: - "TCS3400_I2C_ADDR_FLAGS" default: "TCS3400_I2C_ADDR_FLAGS" + default-range: + default: 0x10000 # scale = 1x, uscale = 0 |