diff options
author | Mark Zhang <markz@nvidia.com> | 2019-01-11 10:38:47 +0800 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-01-25 13:37:05 +0100 |
commit | 7152879d385d0a1ab5859e62c7619ac5668dfa22 (patch) | |
tree | 8a9e2cdd6f2bad228a643fa69179302898aded45 /arch/arm64/boot/dts/nvidia | |
parent | dd03aeef17ba00bb1b0a5fb7dec3d42125707d12 (diff) | |
download | linux-7152879d385d0a1ab5859e62c7619ac5668dfa22.tar.bz2 |
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>
Diffstat (limited to 'arch/arm64/boot/dts/nvidia')
-rw-r--r-- | arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi index ac52286ab9ab..65372263d3a8 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi @@ -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"; |