]> 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)
commit0cdd327b150c278e7ed93921380c50c3fc88c9f2
tree11c628d9b7dbcbab71156717f2080f8fe6586b38
parent1d83d26c0d77e2e2d145dbbed9344becf193e0a0
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