summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/motionsense
diff options
context:
space:
mode:
authorHyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com>2021-03-19 22:58:11 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-24 02:10:42 +0000
commite94cd9bdd5ffedbe01b2540937cb10e1b6236a0e (patch)
tree4fb77e71ddc233727c119e2b42aae2f62c4e75da /zephyr/dts/bindings/motionsense
parent6307a8c932d667a40d5955084a28b4ef15391de5 (diff)
downloadchrome-ec-e94cd9bdd5ffedbe01b2540937cb10e1b6236a0e.tar.gz
zephyr: DT: support sensor irq enabling
This change allows motion sensor interrupt to be enabled at initial stage. 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: Ib85a1015110ae0a43c62a10c97e0d8f21a86319d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2778818 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings/motionsense')
-rw-r--r--zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-info.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-info.yaml b/zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-info.yaml
index 9afa040da8..4b97db06e4 100644
--- a/zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-info.yaml
+++ b/zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-info.yaml
@@ -19,6 +19,13 @@ properties:
of ALS sensor noded defined in motionsense-sensor node.
als-sensors = <&als_clear, &als_rgb>;
This will automatically generate motion_als_sensors array from it.
+ sensor-irqs:
+ type: phandles
+ required: false
+ description: |
+ List of GPIO interrupts from sensors to be enabled.
+ GPIOs specified here will be enabled before motion sense task starts.
+ sensor-irqs = <&gpio_ec_imu_int_l &gpio_ec_als_rgb_int_l>;
#
# examples:
@@ -28,5 +35,11 @@ properties:
#
# /* list of entries for motion_als_sensors */
# als-sensors = <&als_clear>;
+#
+# /*
+# * list of GPIO interrupts that have to
+# * be enabled at initial stage
+# */
+# sensor-irqs = <&gpio_ec_imu_int_l &gpio_ec_als_rgb_int_l>;
# };
#