[PATCH v2 0/4] dm: input: driver for buttons with linux, code declaration

Dzmitry Sankouski dsankouski at gmail.com
Thu Jan 19 18:18:26 CET 2023


Bootmenu requires an input device with arrows and enter key.
A common smartphone luckily has power, volume up/down buttons,
which may be used for controlling bootmenu.

Button keyboard driver relies on button driver - iterates over
all button with linux,code, checks state and sends events.
Add support for linux,code in button driver.
Fix qcom pwr-key gpio driver to work with button driver.

Dzmitry Sankouski (4):
  gpio: qcom: add direction functions for pwrkey
  dts: add missing linux,code in gpio-keys
  dm: button: add support for linux_code in button-gpio.c driver
  dm: input: add button_kbd driver

 arch/arm/dts/am3517-evm-ui.dtsi               |   2 +-
 .../dts/imx6ul-phytec-segin-peb-eval-01.dtsi  |   2 +-
 arch/arm/dts/rk3288-popmetal.dtsi             |   1 +
 arch/arm/dts/rk3288-tinker.dtsi               |   1 +
 arch/sandbox/dts/sandbox.dtsi                 |   2 +
 drivers/button/button-gpio.c                  |  16 ++-
 drivers/button/button-uclass.c                |  10 ++
 drivers/gpio/qcom_pmic_gpio.c                 |  15 +++
 drivers/input/Kconfig                         |   9 ++
 drivers/input/Makefile                        |   1 +
 drivers/input/button_kbd.c                    | 126 ++++++++++++++++++
 include/button.h                              |  16 +++
 12 files changed, 198 insertions(+), 3 deletions(-)
 create mode 100644 drivers/input/button_kbd.c

-- 
2.30.2



More information about the U-Boot mailing list