summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/emul
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2021-11-21 12:32:19 -0700
committerCommit Bot <commit-bot@chromium.org>2021-11-22 19:59:14 +0000
commit62fb2d16161f66d1d2a3bd6cf394af9d0e2d0eb0 (patch)
tree47b045ac1fce066c273f2c5d8ff89b5087a76887 /zephyr/dts/bindings/emul
parent0b293e2fd74ea5aeccafcd310c077791e68af5e2 (diff)
downloadchrome-ec-62fb2d16161f66d1d2a3bd6cf394af9d0e2d0eb0.tar.gz
zephyr test: Use interrupt GPIO for SYV682x
Set and clear the ALERT_L signal in the SYV682x emulator based on the state of underlying conditions. Test the driver by just setting the underlying conditions instead of calling the ISR from within the test. Define the interrupt signal in the device tree and enable interrupts from it in the test. BUG=b:190519131 TEST=zmake configure --test zephyr/test/drivers BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: Idc8b957fe53ce78bd8236e4af6b005636498ada2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3288914 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings/emul')
-rw-r--r--zephyr/dts/bindings/emul/zephyr,syv682x.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/emul/zephyr,syv682x.yaml b/zephyr/dts/bindings/emul/zephyr,syv682x.yaml
index e1ce84e85d..8652b42b82 100644
--- a/zephyr/dts/bindings/emul/zephyr,syv682x.yaml
+++ b/zephyr/dts/bindings/emul/zephyr,syv682x.yaml
@@ -13,3 +13,7 @@ properties:
type: phandle
description: The GPIO that controls FRS enable on this device
required: true
+ alert_gpio:
+ type: phandle
+ description: The GPIO that receives the alert signal from this device
+ required: true