diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2021-01-19 13:38:48 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-20 00:52:22 +0000 |
commit | 2f6508af6696eaa1284e32ad9347b7f88c9ac111 (patch) | |
tree | 22e2f4fd8d740c2c25eae5418ed8104a5884d196 /zephyr/projects/kohaku/boards | |
parent | b5855281c84b7f18533de252b8c6959df3e03469 (diff) | |
download | chrome-ec-2f6508af6696eaa1284e32ad9347b7f88c9ac111.tar.gz |
dts: binding: add an explicit binding for named-gpios
Currently the name-gpios node uses the gpio-keys binding. That is a
standard binding used in Zephyr for GPIO keys, as in physical button.
This copies the binding over to a dedicated "named-gpios" one, and adds
a #gpio-cells property so that we can refer to its nodes from a phandle
property of a different node.
BUG=none
TEST=build and check generated files
BRANCH=none
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: Iadd3465b23b89cfe08c96c4d03479f1e5f8e3c59
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2637643
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/kohaku/boards')
-rw-r--r-- | zephyr/projects/kohaku/boards/arm/kohaku/kohaku.dts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/projects/kohaku/boards/arm/kohaku/kohaku.dts b/zephyr/projects/kohaku/boards/arm/kohaku/kohaku.dts index 44602d0eef..ea59d26bf7 100644 --- a/zephyr/projects/kohaku/boards/arm/kohaku/kohaku.dts +++ b/zephyr/projects/kohaku/boards/arm/kohaku/kohaku.dts @@ -32,7 +32,7 @@ }; named-gpios { - compatible = "gpio-keys"; + compatible = "named-gpios"; lid_open { gpios = <&gpiod 2 GPIO_INPUT>; |