diff options
author | Yuval Peress <peress@chromium.org> | 2021-04-22 10:56:19 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-23 20:01:23 +0000 |
commit | 4aaa85760faeec02f94b86b99d40768362d8c158 (patch) | |
tree | bacf5655e96231da3437ffb5ab7be844b5601760 /zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml | |
parent | cea345aa111d93617806d55ed68950d2e072db0e (diff) | |
download | chrome-ec-4aaa85760faeec02f94b86b99d40768362d8c158.tar.gz |
zephyr: sensors: Add alternate sensors support
In some boards there's a runtime decision for which sensor to use. In
order to support this we'll need an instance of the alternate sensors
as well as a mapping for them.
Add an optional phandle `alternate-for` to the base sensors bindings.
When used, the sensor will be excluded from the primary
motion_sensors array and added instead to the motion_sensors_alt
array.
BRANCH=none
BUG=b:183990188, b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I6f6e3a9659a381c45fd97fbce9fecb2a807f7fa2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2846415
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml')
-rw-r--r-- | zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml b/zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml index e6325a3ef1..9e8b7be2c3 100644 --- a/zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml +++ b/zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml @@ -54,6 +54,10 @@ properties: type: phandle required: false description: phandle to driver data to be used for the motion sensor + alternate-for: + type: phandle + description: phandle to another sensor that can be swapped with this one + at runtime. # # examples: |