OSDN Git Service

arm64: dts: allwinner: pinephone: Support volume key wakeup
authorSamuel Holland <samuel@sholland.org>
Wed, 13 Jan 2021 04:05:42 +0000 (22:05 -0600)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jan 2021 08:28:56 +0000 (09:28 +0100)
PinePhone volume keys are connected to the LRADC in the A64. Users may
want to use them to wake the device from sleep. Support this by
declaring the LRADC as a wakeup source.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20210113040542.34247-4-samuel@sholland.org
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi

index 2dfe9ba..7f37f9f 100644 (file)
 
 &lradc {
        vref-supply = <&reg_aldo3>;
+       wakeup-source;
        status = "okay";
 
        button-200 {