arm64: allwinner: a64: allow laptops to wake up from lid
authorIcenowy Zheng <icenowy@aosc.io>
Fri, 22 Jun 2018 16:06:31 +0000 (00:06 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 23 Nov 2018 19:15:55 +0000 (19:15 +0000)
commita7a018a1347b2825e28cbd1f14081c5da193575a
tree364d611ded66fa0ab86d43282ee2fab8976d7d24
parent674c46a5963ca155dc1945b95f42489417e486ec
arm64: allwinner: a64: allow laptops to wake up from lid

Currently all ARM kernels will have s2idle enabled if CONFIG_SUSPEND is
present. In this case if the lid is closed, systemd-logind will enter
s2idle mode by default; however there's no possible wakeup source
defined, so the system will enter a forever idle.

Add the lid itself as a wakeup source, thus the system can wakeup when
the lid is opened.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Gbp-Pq: Topic features/arm64/pinebook
Gbp-Pq: Name 0007-arm64-allwinner-a64-allow-laptops-to-wake-up-from-li.patch
arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts
arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts