diff options
author | Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> | 2021-03-19 18:20:27 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-23 23:13:19 +0000 |
commit | f8f4e0c36a674963c725f8876728d23ece8cc3ff (patch) | |
tree | 797c2c693d43b7a2d10a3aaae74aa00ba563c65f /zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-channel-scale.yaml | |
parent | 52c66f7e5f5faf5d96625fe95c53a88b1f5c801c (diff) | |
download | chrome-ec-f8f4e0c36a674963c725f8876728d23ece8cc3ff.tar.gz |
zephyr: DT: support sensor driver data
This has basic support to create instances of sensor-specific
driver data using the information from device tree.
BUG=b:173507858
BRANCH=none
TEST=make buildall -j8
build volteer on zephyr
Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com>
Change-Id: I196d7595e8bd880e2314290660f08274ad99e172
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2778815
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-channel-scale.yaml')
-rw-r--r-- | zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-channel-scale.yaml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-channel-scale.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-channel-scale.yaml new file mode 100644 index 0000000000..753edc7ea8 --- /dev/null +++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-channel-scale.yaml @@ -0,0 +1,29 @@ +# 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: | + Bindings for als_channel_scale_t in accelgyro.h. + Each channel has scaling factor for normalization & cover + +compatible: cros-ec,accelgyro-als-channel-scale + +properties: + k-channel-scale: + type: int + required: true + description: Channel scale factor + cover-scale: + type: int + required: true + description: Cover compensation scale factor + +# +# examples: +# +# als-channel-scale { +# compatible = "cros-ec,accelgyro-als-channel-scale"; +# k-channel-scale = <1>; +# cover-scale = <1>; +# }; +# |