arm64: tegra: Add gpio-keys nodes for Darcy

Add gpio-keys nodes for the power button.

Signed-off-by: Mark Zhang <markz@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
Mark Zhang 2019-01-11 10:38:47 +08:00 committed by Thierry Reding
parent dd03aeef17
commit 7152879d38
1 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include <dt-bindings/input/input.h>
#include <dt-bindings/input/gpio-keys.h>
#include "tegra210.dtsi"
/ {
@ -52,6 +54,20 @@
};
};
gpio-keys {
compatible = "gpio-keys";
status = "okay";
power {
debounce-interval = <30>;
gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_LOW>;
label = "Power";
linux,code = <KEY_POWER>;
wakeup-event-action = <EV_ACT_ASSERTED>;
wakeup-source;
};
};
cpus {
cpu@0 {
enable-method = "psci";