]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4a6c3ca32e431b32de9ae8c607ac65159c5a2ab
treeed33ed79b5ef1de4b56f2f95b3d9b8b9350a9165
parent89bc8e8a298f7af32b4cae345e39c0ae01101327
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]