]> git.baikalelectronics.ru Git - kernel.git/commit
Input: sun4i-lradc-keys - add wakeup support
authorOndrej Jirman <x@xff.cz>
Mon, 25 Apr 2022 01:02:17 +0000 (18:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 25 Apr 2022 01:25:16 +0000 (18:25 -0700)
commitb243018eafeb69bf074ef013c54504632fd161ec
tree11c628d9b7dbcbab71156717f2080f8fe6586b38
parentbe8fc023ef64dcb11042aaa4bb0f29f7e0335d85
Input: sun4i-lradc-keys - add wakeup support

Allow the driver to wake the system on key press if the "wakeup-source"
property is provided in the device tree. Using the LRADC as a wakeup
source requires keeping the AVCC domain active during sleep. Since this
has a nontrivial impact on power consumption (sometimes doubling it),
disable the LRADC wakeup source by default.

Signed-off-by: Ondrej Jirman <x@xff.cz>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220424161328.61103-1-samuel@sholland.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/sun4i-lradc-keys.c