[PATCH v2 0/3] PinePhone volume key (LRADC) wakeup support

18 views
Skip to first unread message

Samuel Holland

unread,
Jan 12, 2021, 11:05:52 PM1/12/21
to Hans de Goede, Dmitry Torokhov, Rob Herring, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec, devic...@vger.kernel.org, linux...@vger.kernel.org, linux-...@vger.kernel.org, linux...@googlegroups.com, Samuel Holland
This series allows the volume keys on the PinePhone to wake up the
device. As pointed out for v1, wakeup should only be enabled when a
"wakeup-source" property is present, so v2 requires DT and binding
changes in addition to the driver change.

Changes since v1:
- Add requisite DT binding change
- Only add wakeup capability if "wakeup-source" is present
- Warn but do not error out if setting the wake IRQ fails
- Add "wakeup-source" property to PinePhone device tree

Ondrej Jirman (1):
input: sun4i-lradc-keys - Add wakup support

Samuel Holland (2):
dt-bindings: sun4i-a10-lradc-keys: Accept wakeup-source property
arm64: dts: allwinner: pinephone: Support volume key wakeup

.../input/allwinner,sun4i-a10-lradc-keys.yaml | 2 ++
.../dts/allwinner/sun50i-a64-pinephone.dtsi | 1 +
drivers/input/keyboard/sun4i-lradc-keys.c | 22 +++++++++++++++----
3 files changed, 21 insertions(+), 4 deletions(-)

--
2.26.2

Hans de Goede

unread,
Jan 13, 2021, 3:14:09 AM1/13/21
to Samuel Holland, Dmitry Torokhov, Rob Herring, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec, devic...@vger.kernel.org, linux...@vger.kernel.org, linux-...@vger.kernel.org, linux...@googlegroups.com
Hi,

On 1/13/21 5:05 AM, Samuel Holland wrote:
> This series allows the volume keys on the PinePhone to wake up the
> device. As pointed out for v1, wakeup should only be enabled when a
> "wakeup-source" property is present, so v2 requires DT and binding
> changes in addition to the driver change.
>
> Changes since v1:
> - Add requisite DT binding change
> - Only add wakeup capability if "wakeup-source" is present
> - Warn but do not error out if setting the wake IRQ fails
> - Add "wakeup-source" property to PinePhone device tree
>
> Ondrej Jirman (1):
> input: sun4i-lradc-keys - Add wakup support
>
> Samuel Holland (2):
> dt-bindings: sun4i-a10-lradc-keys: Accept wakeup-source property
> arm64: dts: allwinner: pinephone: Support volume key wakeup

Thanks, the entire series looks good to me:

Reviewed-by: Hans de Goede <hdeg...@redhat.com>

Regards,

Hans

Maxime Ripard

unread,
Jan 13, 2021, 3:28:42 AM1/13/21
to Samuel Holland, Hans de Goede, Dmitry Torokhov, Rob Herring, Chen-Yu Tsai, Jernej Skrabec, devic...@vger.kernel.org, linux...@vger.kernel.org, linux-...@vger.kernel.org, linux...@googlegroups.com
Acked-by: Maxime Ripard <mri...@kernel.org>

I've applied patch 3

Maxime
signature.asc
Reply all
Reply to author
Forward
0 new messages