aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-02-23 12:30:51 -0500
committerThierry Reding <treding@nvidia.com>2017-03-10 11:37:35 -0500
commit59686a92782c38e0f8bd603fcfef3c6b5f307c97 (patch)
tree9edfa8ad63b1000f94e482961046410f4b8d143c
parentb64994d18fcdb7ad5a1eedf291a0e95a44344e17 (diff)
arm64: tegra: Add GPIO keys on P2771
The P2771 has three keys (power, volume up and volume down) that are connected to pins on the AON GPIO controller. Acked-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts34
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
index b80c1c3483db..9a1d02228652 100644
--- a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
@@ -1,5 +1,7 @@
1/dts-v1/; 1/dts-v1/;
2 2
3#include <dt-bindings/input/linux-event-codes.h>
4
3#include "tegra186-p3310.dtsi" 5#include "tegra186-p3310.dtsi"
4 6
5/ { 7/ {
@@ -13,6 +15,38 @@
13 vmmc-supply = <&vdd_sd>; 15 vmmc-supply = <&vdd_sd>;
14 }; 16 };
15 17
18 gpio-keys {
19 compatible = "gpio-keys";
20
21 power {
22 label = "Power";
23 gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 0)
24 GPIO_ACTIVE_LOW>;
25 linux,input-type = <EV_KEY>;
26 linux,code = <KEY_POWER>;
27 debounce-interval = <10>;
28 wakeup-source;
29 };
30
31 volume-up {
32 label = "Volume Up";
33 gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 1)
34 GPIO_ACTIVE_LOW>;
35 linux,input-type = <EV_KEY>;
36 linux,code = <KEY_VOLUMEUP>;
37 debounce-interval = <10>;
38 };
39
40 volume-down {
41 label = "Volume Down";
42 gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 2)
43 GPIO_ACTIVE_LOW>;
44 linux,input-type = <EV_KEY>;
45 linux,code = <KEY_VOLUMEDOWN>;
46 debounce-interval = <10>;
47 };
48 };
49
16 regulators { 50 regulators {
17 vdd_sd: regulator@100 { 51 vdd_sd: regulator@100 {
18 compatible = "regulator-fixed"; 52 compatible = "regulator-fixed";