]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: tegra: Fix power key interrupt type on Jetson TX2
authorThierry Reding <treding@nvidia.com>
Wed, 28 Nov 2018 16:47:25 +0000 (17:47 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 3 Dec 2018 15:31:33 +0000 (16:31 +0100)
In order for the correct interrupt type to be configured, the event
action for the power key needs to be "asserted".

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts

index bd5305a634b161dee703098a3444fe25e7f94ba2..9fc577a1ec4427f1b76057790ec54105928cd2d4 100644 (file)
@@ -2,6 +2,7 @@
 /dts-v1/;
 
 #include <dt-bindings/input/linux-event-codes.h>
+#include <dt-bindings/input/gpio-keys.h>
 
 #include "tegra186-p3310.dtsi"
 
@@ -121,6 +122,7 @@ power {
                        linux,input-type = <EV_KEY>;
                        linux,code = <KEY_POWER>;
                        debounce-interval = <10>;
+                       wakeup-event-action = <EV_ACT_ASSERTED>;
                        wakeup-source;
                };