diff options
author | Aaron Massey <aaronmassey@google.com> | 2023-02-23 14:44:07 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-02-23 23:41:01 +0000 |
commit | 2fe92248668777a7ed7194c4614af8819dadbed1 (patch) | |
tree | b4f9f4d687a45c75813774cad9fb992ee7fe8a0b | |
parent | 0714f88fdba22af0bbc258d1783f7452a4092680 (diff) | |
download | chrome-ec-2fe92248668777a7ed7194c4614af8819dadbed1.tar.gz |
test: Document emul output gpio bug
Document that using gpio_set_level() won't be observable from a
gpio_get_level() unless the output gpio is also configured as an input
gpio.
BRANCH=none
BUG=b:270601972
TEST=none
Change-Id: Idf9e9cabd9f4f8db7b5a8045c6f1f9cb991d7819
Signed-off-by: Aaron Massey <aaronmassey@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4288470
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r-- | zephyr/test/drivers/boards/native_posix.overlay | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/test/drivers/boards/native_posix.overlay b/zephyr/test/drivers/boards/native_posix.overlay index cfca0475c2..d77273fcad 100644 --- a/zephyr/test/drivers/boards/native_posix.overlay +++ b/zephyr/test/drivers/boards/native_posix.overlay @@ -116,6 +116,16 @@ enum-name = "GPIO_AC_PRESENT"; }; + /* + * TODO(b/270601972): + * Important note on testing emulated output GPIOs: Using + * gpio_set_level() won't be observable from a gpio_get_level() + * unless the output gpio is also configured as an input gpio. + * + * One may also configure the gpio as an input in the test + * itself instead of device tree. + * / + /* <&gpio0 1 x> is reserved as 'entering-rw' in * src/platform/ec/zephyr/dts/board-overlays/native_posix.dts */ |