summaryrefslogtreecommitdiff
path: root/Silicon/Socionext/SynQuacer/DeviceTree
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-11-07 13:52:16 +0000
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2017-11-17 18:48:12 +0000
commitdb376cd398e2132ac9cbfac5daf599e181c6d7ac (patch)
treeabdf62afe676daa4f599b5140cc3a7976eff6a93 /Silicon/Socionext/SynQuacer/DeviceTree
parentc0895cdcc80d3cb5ae9b676d3e6dc4a2491708da (diff)
downloadedk2-platforms-db376cd398e2132ac9cbfac5daf599e181c6d7ac.tar.xz
Platform/DeveloperBox: add description of power button to DT
Add the power button as a gpio-keys KEY_POWER button, and mark it as a wakeup source so it can be used under the OS both as a 'sleep' and as a 'wake' button. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'Silicon/Socionext/SynQuacer/DeviceTree')
-rw-r--r--Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts14
1 files changed, 14 insertions, 0 deletions
diff --git a/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts b/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts
index 6ae7d5f300..d2cd7ef90e 100644
--- a/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts
+++ b/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts
@@ -15,9 +15,23 @@
#include "SynQuacer.dtsi"
+#define KEY_POWER 116
+
/ {
model = "Socionext Developer Box";
compatible = "socionext,developer-box", "socionext,synquacer";
+
+ gpio-keys {
+ compatible = "gpio-keys";
+ interrupt-parent = <&exiu>;
+
+ power {
+ label = "Power Button";
+ linux,code = <KEY_POWER>;
+ interrupts = <GIC_SPI 120 IRQ_TYPE_EDGE_FALLING>;
+ wakeup-source;
+ };
+ };
};
&gpio {