Commit 7152879d authored by Mark Zhang's avatar Mark Zhang Committed by Thierry Reding

arm64: tegra: Add gpio-keys nodes for Darcy

Add gpio-keys nodes for the power button.
Signed-off-by: default avatarMark Zhang <markz@nvidia.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent dd03aeef
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include <dt-bindings/input/input.h>
#include <dt-bindings/input/gpio-keys.h>
#include "tegra210.dtsi" #include "tegra210.dtsi"
/ { / {
...@@ -52,6 +54,20 @@ clk32k_in: clock@0 { ...@@ -52,6 +54,20 @@ clk32k_in: clock@0 {
}; };
}; };
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 { cpus {
cpu@0 { cpu@0 {
enable-method = "psci"; enable-method = "psci";
......
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