Commit ad39fc5b authored by Samuel Holland's avatar Samuel Holland Committed by Maxime Ripard

arm64: dts: allwinner: a64: pinebook: Fix lid wakeup

By default, gpio-keys configures the pin to trigger wakeup IRQs on
either edge. The lid switch should only trigger wakeup when opening the
lid, not when closing it.
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
parent 8614a5e9
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "sun50i-a64.dtsi" #include "sun50i-a64.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/gpio-keys.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/pwm/pwm.h> #include <dt-bindings/pwm/pwm.h>
...@@ -57,6 +58,7 @@ lid_switch { ...@@ -57,6 +58,7 @@ lid_switch {
linux,code = <SW_LID>; linux,code = <SW_LID>;
linux,can-disable; linux,can-disable;
wakeup-source; wakeup-source;
wakeup-event-action = <EV_ACT_DEASSERTED>;
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment