summaryrefslogtreecommitdiff
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-10 14:12:38 +0000
commitbdbbe1a6d75afdfcc86971a78b4a7dde02524c81 (patch)
treebdfeac884a2612f3a0496b3c830f7aef98e3d883
parent94087ae9465d6cbc617491ad6d318a8811186275 (diff)
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>
-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 6ae7d5f..d2cd7ef 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 {