From 486b973ee9b9bd89ff53bc9d3d1cff4ada73eb36 Mon Sep 17 00:00:00 2001 From: Philippe Reynes Date: Fri, 24 Jul 2020 18:19:46 +0200 Subject: dm: button: add a driver for button driven by gpio Add a simple driver which allows use of buttons attached to GPIOs. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- drivers/button/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'drivers/button/Kconfig') diff --git a/drivers/button/Kconfig b/drivers/button/Kconfig index 83018589e57..6b3ec7e55de 100644 --- a/drivers/button/Kconfig +++ b/drivers/button/Kconfig @@ -9,4 +9,13 @@ config BUTTON can provide access to board-specific buttons. Use of the device tree for configuration is encouraged. +config BUTTON_GPIO + bool "Button gpio" + depends on BUTTON + help + Enable support for buttons which are connected to GPIO lines. These + GPIOs may be on the SoC or some other device which provides GPIOs. + The GPIO driver must used driver model. Buttons are configured using + the device tree. + endmenu -- cgit v1.3.1