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:
parent
2b489fd1f2
commit
35e3bfcdef
|
@ -4,7 +4,7 @@
|
||||||
config INPUT_GPIO_KEYS
|
config INPUT_GPIO_KEYS
|
||||||
bool "GPIO Keys input driver"
|
bool "GPIO Keys input driver"
|
||||||
default y
|
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
|
depends on GPIO
|
||||||
help
|
help
|
||||||
Enable support for GPIO Keys input driver.
|
Enable support for GPIO Keys input driver.
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define DT_DRV_COMPAT gpio_keys
|
||||||
|
|
||||||
#include <zephyr/device.h>
|
#include <zephyr/device.h>
|
||||||
#include <zephyr/drivers/gpio.h>
|
#include <zephyr/drivers/gpio.h>
|
||||||
#include <zephyr/input/input.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, \
|
&gpio_keys_config_##i, POST_KERNEL, CONFIG_INPUT_INIT_PRIORITY, \
|
||||||
NULL);
|
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)
|
DT_INST_FOREACH_STATUS_OKAY(GPIO_KEYS_INIT)
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
# Copyright (c) 2022 Google LLC
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
compatible: "zephyr,gpio-keys"
|
|
||||||
|
|
||||||
include: [gpio-keys.yaml]
|
|
|
@ -18,7 +18,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio-keys {
|
gpio-keys {
|
||||||
compatible = "zephyr,gpio-keys";
|
compatible = "gpio-keys";
|
||||||
debounce-interval-ms = <30>;
|
debounce-interval-ms = <30>;
|
||||||
button_0 {
|
button_0 {
|
||||||
gpios = <&test_gpio 0 0>;
|
gpios = <&test_gpio 0 0>;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
buttons: gpio-keys0 {
|
buttons: gpio-keys0 {
|
||||||
compatible = "zephyr,gpio-keys";
|
compatible = "gpio-keys";
|
||||||
debounce-interval-ms = <30>;
|
debounce-interval-ms = <30>;
|
||||||
|
|
||||||
voldown_button: button_0 {
|
voldown_button: button_0 {
|
||||||
|
|
Loading…
Reference in a new issue