drivers: input: drop the zephyr,gpio-keys binding

This is now redundant and `gpio-keys` can be used instead.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2023-08-04 10:02:48 +00:00 committed by Carles Cufí
parent 2b489fd1f2
commit 35e3bfcdef
5 changed files with 5 additions and 14 deletions

View file

@ -4,7 +4,7 @@
config INPUT_GPIO_KEYS
bool "GPIO Keys input driver"
default y
depends on DT_HAS_GPIO_KEYS_ENABLED || DT_HAS_ZEPHYR_GPIO_KEYS_ENABLED
depends on DT_HAS_GPIO_KEYS_ENABLED
depends on GPIO
help
Enable support for GPIO Keys input driver.

View file

@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT gpio_keys
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/input/input.h>
@ -180,9 +182,4 @@ static int gpio_keys_init(const struct device *dev)
&gpio_keys_config_##i, POST_KERNEL, CONFIG_INPUT_INIT_PRIORITY, \
NULL);
#define DT_DRV_COMPAT gpio_keys
DT_INST_FOREACH_STATUS_OKAY(GPIO_KEYS_INIT)
#undef DT_DRV_COMPAT
#define DT_DRV_COMPAT zephyr_gpio_keys
DT_INST_FOREACH_STATUS_OKAY(GPIO_KEYS_INIT)

View file

@ -1,6 +0,0 @@
# Copyright (c) 2022 Google LLC
# SPDX-License-Identifier: Apache-2.0
compatible: "zephyr,gpio-keys"
include: [gpio-keys.yaml]

View file

@ -18,7 +18,7 @@
};
gpio-keys {
compatible = "zephyr,gpio-keys";
compatible = "gpio-keys";
debounce-interval-ms = <30>;
button_0 {
gpios = <&test_gpio 0 0>;

View file

@ -10,7 +10,7 @@
/ {
buttons: gpio-keys0 {
compatible = "zephyr,gpio-keys";
compatible = "gpio-keys";
debounce-interval-ms = <30>;
voldown_button: button_0 {