OSDN Git Service

Input: add driver for power button on Dell Wyse 3020
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 10 Dec 2020 01:45:14 +0000 (17:45 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 10 Dec 2020 01:47:39 +0000 (17:47 -0800)
commit3d82a4d736a662e352027686b8a373bf3e70820e
treeed33ed79b5ef1de4b56f2f95b3d9b8b9350a9165
parentb2cc3bfef6aa9a0d66034b48e95cf24f6a5b0e35
Input: add driver for power button on Dell Wyse 3020

This adds support for the power button attached to the Embedded Controller
on a Dell Wyse 3020 "Ariel" board.

The Embedded Controller's SPI interface is actually capable sending and
receiving the PS/2 keyboard and mouse protocol data, which looks like
a good fit for a serio driver. Howerver, I don't know of any machines where
this is actually used.

My board only has a single power button and no way to connect an actual
keyboard or a mouse. Using the atkbd driver with serio would be an overkill
and would be inconvenient for the userspace. Therefore this driver
registers an input device that is only capable of reporting the power
button presses and releases.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/20201201083533.1724287-3-lkundrak@v3.sk
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/Kconfig
drivers/input/misc/Makefile
drivers/input/misc/ariel-pwrbutton.c [new file with mode: 0644]